> ## 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 Regulations

> The catalog of federal reglamentos in force (135+), each with its DOF publication date, consolidated-text links, and inline amendment history (original, reforms, and annual amount updates). Optional `query` filters by name. Paged, 50 per page.



## OpenAPI

````yaml /api-reference/openapi.json post /mx/diputados/federal-regulations/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-regulations/v1:
    post:
      tags:
        - Mexico
        - Cámara de Diputados
      summary: Mexican Federal Regulations
      description: >-
        The catalog of federal reglamentos in force (135+), each with its DOF
        publication date, consolidated-text links, and inline amendment history
        (original, reforms, and annual amount updates). Optional `query` filters
        by name. Paged, 50 per page.
      operationId: diputados_federal_regulations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                query:
                  type: string
                  maxLength: 200
                  default: ''
                  description: >-
                    Optional name filter (case- and accent-insensitive
                    substring).
                page:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 1
                  description: 1-based page number for paginated results.
              additionalProperties: false
            example:
              query: ley aduanera
      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/DiputadosRegulationsResponse'
        '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:
    DiputadosRegulationsResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - regulations
            - pagination
          properties:
            pagination:
              type: object
              required:
                - total
                - page_size
                - total_pages
                - page
              properties:
                total:
                  type: integer
                page_size:
                  type: integer
                total_pages:
                  type: integer
                page:
                  type: integer
            regulations:
              type: array
              items:
                type: object
                required:
                  - name
                  - abrogated
                  - publication_date
                  - pdf_url
                  - doc_url
                  - history
                properties:
                  name:
                    type: string
                  abrogated:
                    type: boolean
                    description: True for reglamentos no longer in force.
                  publication_date:
                    type:
                      - string
                      - 'null'
                    format: date
                  pdf_url:
                    type:
                      - string
                      - 'null'
                    format: uri
                  doc_url:
                    type:
                      - string
                      - 'null'
                    format: uri
                  history:
                    type: array
                    items:
                      type: object
                      required:
                        - kind
                        - dof_date
                        - doc_url
                      properties:
                        kind:
                          type: string
                          enum:
                            - original
                            - reform
                            - amounts
                            - erratum
                            - clarification
                            - validity
                          description: >-
                            amounts covers the annual amount/fee updates;
                            erratum, clarification and validity map the Fe de
                            erratas, Aclaración and Disposición de vigencia
                            notices.
                        dof_date:
                          type:
                            - string
                            - 'null'
                          format: date
                        doc_url:
                          type:
                            - string
                            - 'null'
                          format: uri
    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.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````