> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecroma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Mexican Federal Law

> One federal law's full record: consolidated-text links plus the complete reform history (every decree that amended it, newest first, with DOF dates and official decree PDFs) and the original publication. Use the `id` from `diputados-federal-laws` (e.g. `lic`, `cpeum`).



## OpenAPI

````yaml /api-reference/openapi.json post /mx/diputados/federal-law/v1
openapi: 3.1.0
info:
  title: Croma Marketplace API
  version: 1.0.0
  description: >-
    Government-data APIs for Colombia, Peru, Mexico, and global web search.
    Croma normalizes public-sector data into structured JSON for product teams
    and AI agents.
servers:
  - url: https://api.croma.run
security: []
paths:
  /mx/diputados/federal-law/v1:
    post:
      tags:
        - Mexico
        - Cámara de Diputados
      summary: Mexican Federal Law
      description: >-
        One federal law's full record: consolidated-text links plus the complete
        reform history (every decree that amended it, newest first, with DOF
        dates and official decree PDFs) and the original publication. Use the
        `id` from `diputados-federal-laws` (e.g. `lic`, `cpeum`).
      operationId: diputados_federal_law
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - law_id
              properties:
                law_id:
                  type: string
                  pattern: ^[A-Za-z0-9_]{2,60}$
                  description: Law identifier returned by the federal-laws list (`id`).
              additionalProperties: false
            example:
              law_id: lic
      responses:
        '200':
          description: Successful response
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            X-Cache:
              description: HIT or MISS. Cached hits still count against your quota.
              schema:
                type: string
                enum:
                  - HIT
                  - MISS
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiputadosFederalLawResponse'
        '400':
          description: Invalid request body
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limit exceeded
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
            X-RateLimit-Limit:
              description: Requests allowed in the current window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests left before you are throttled.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: ISO 8601 timestamp when the window resets.
              schema:
                type: string
                format: date-time
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: Upstream source returned an error
          headers:
            X-Request-Id:
              description: >-
                Unique id for the request (req_…). Include it in support
                reports.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      security:
        - bearerAuth: []
      externalDocs:
        description: Interactive documentation and examples
        url: https://docs.usecroma.com/guides/mexico/diputados
components:
  schemas:
    DiputadosFederalLawResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - found
            - law_id
            - law
          properties:
            found:
              type: boolean
            law_id:
              type: string
            law:
              oneOf:
                - allOf:
                    - $ref: '#/components/schemas/DiputadosLawSummary'
                    - type: object
                      required:
                        - original_publication
                        - reforms
                      properties:
                        original_publication:
                          oneOf:
                            - type: object
                              required:
                                - dof_date
                                - scan_pdf_url
                              properties:
                                dof_date:
                                  type:
                                    - string
                                    - 'null'
                                  format: date
                                scan_pdf_url:
                                  type:
                                    - string
                                    - 'null'
                                  format: uri
                                  description: Scan of the original DOF publication.
                            - type: 'null'
                        reforms:
                          type: array
                          description: Reform decrees, newest first.
                          items:
                            type: object
                            required:
                              - number
                              - dof_date
                              - description
                              - pdf_url
                              - doc_url
                              - errata
                            properties:
                              number:
                                type:
                                  - integer
                                  - 'null'
                              dof_date:
                                type:
                                  - string
                                  - 'null'
                                format: date
                              description:
                                type: string
                              pdf_url:
                                type:
                                  - string
                                  - 'null'
                                format: uri
                              doc_url:
                                type:
                                  - string
                                  - 'null'
                                format: uri
                              errata:
                                type: array
                                items:
                                  type: object
                                  required:
                                    - dof_date
                                    - pdf_url
                                    - doc_url
                                  properties:
                                    dof_date:
                                      type:
                                        - string
                                        - 'null'
                                      format: date
                                    pdf_url:
                                      type:
                                        - string
                                        - 'null'
                                      format: uri
                                    doc_url:
                                      type:
                                        - string
                                        - 'null'
                                      format: uri
                - type: 'null'
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
          properties:
            type:
              type: string
              description: >-
                Broad category: invalid_request_error, authentication_error,
                not_found_error, rate_limit_error, upstream_error, api_error.
            code:
              type: string
              description: Machine-readable specific code.
            message:
              type: string
              description: Human-readable explanation, safe to surface in UI.
            param:
              type: string
              description: Field that triggered the error. Present on validation errors.
            details:
              type: object
              description: Free-form structured detail.
    DiputadosLawSummary:
      type: object
      required:
        - id
        - name
        - abbreviation
        - publication_date
        - last_reform_date
        - last_reform_note
        - status_note
        - abrogated
        - reformed
        - pdf_url
        - doc_url
      properties:
        id:
          type: string
          description: Law identifier from `diputados-federal-laws` (e.g. `lic`, `cpeum`).
        name:
          type: string
        abbreviation:
          type:
            - string
            - 'null'
        publication_date:
          type:
            - string
            - 'null'
          format: date
          description: Original DOF publication date.
        last_reform_date:
          type:
            - string
            - 'null'
          format: date
          description: >-
            Latest reform per the catalog; null when unreformed or when the
            latest listed event is judicial (see `last_reform_note`).
        last_reform_note:
          type:
            - string
            - 'null'
          description: >-
            Verbatim SCJN qualifier when the latest listed event is a court
            ruling, not a reform (e.g. `Notificación 17/06/2025 Sentencia
            SCJN`).
        status_note:
          type:
            - string
            - 'null'
          description: >-
            Verbatim legal-status annotation: invalidity declarations, recovered
            validity, pending abrogation, or entry into force.
        abrogated:
          type: boolean
          description: True when the law is listed as abrogated (no longer in force).
        reformed:
          type: boolean
        pdf_url:
          type:
            - string
            - 'null'
          format: uri
          description: Official consolidated text (PDF).
        doc_url:
          type:
            - string
            - 'null'
          format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````