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

# DOF Publications by Date

> Everything published in Mexico's official federal gazette (Diario Oficial de la Federación) on a given date: decrees, law reforms, and regulator disposiciones across the morning, evening, and extraordinary editions, each with its issuing branch and agency. History reaches back to 1995. `has_text: true` marks publications whose full text is retrievable with `dof-publication`.



## OpenAPI

````yaml /api-reference/openapi.json post /mx/dof/publications-by-date/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/dof/publications-by-date/v1:
    post:
      tags:
        - Mexico
        - DOF
      summary: DOF Publications by Date
      description: >-
        Everything published in Mexico's official federal gazette (Diario
        Oficial de la Federación) on a given date: decrees, law reforms, and
        regulator disposiciones across the morning, evening, and extraordinary
        editions, each with its issuing branch and agency. History reaches back
        to 1995. `has_text: true` marks publications whose full text is
        retrievable with `dof-publication`.
      operationId: dof_publications_by_date
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - date
              properties:
                date:
                  type: string
                  format: date
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: >-
                    Gazette date (yyyy-mm-dd). History reaches back to at least
                    1995.
              additionalProperties: false
            example:
              date: '2026-07-16'
      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/DofPublicationsByDateResponse'
        '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/dof
components:
  schemas:
    DofPublicationsByDateResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - date
            - published
            - total
            - publications
          properties:
            date:
              type: string
              format: date
            published:
              type: boolean
              description: False on days with no gazette (weekends/holidays).
            total:
              type: integer
            publications:
              type: array
              items:
                $ref: '#/components/schemas/DofPublicationSummary'
    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.
    DofPublicationSummary:
      type: object
      required:
        - id
        - title
        - edition
        - section
        - page
        - page_end
        - branch
        - agency
        - has_text
        - has_pdf
      properties:
        id:
          type: string
        title:
          type:
            - string
            - 'null'
          description: Null for image-only publications, which carry no title.
        edition:
          type: string
          enum:
            - morning
            - evening
            - extraordinary
        section:
          type:
            - string
            - 'null'
        page:
          type:
            - integer
            - 'null'
        page_end:
          type:
            - integer
            - 'null'
          description: Last page when the entry spans several; null for one page.
        branch:
          type:
            - string
            - 'null'
          description: >-
            Gazette section heading, a stable vocabulary safe for exact-match
            filtering: PODER EJECUTIVO, PODER LEGISLATIVO, PODER JUDICIAL,
            ORGANISMOS AUTONOMOS, ORGANISMOS DESCONCENTRADOS O DESCENTRALIZADOS,
            AVISOS JUDICIALES Y GENERALES, and the two CONVOCATORIAS headings.
        agency:
          type:
            - string
            - 'null'
          description: >-
            Publishing agency as the gazette prints it (uppercase, unaccented,
            e.g. SECRETARIA DE HACIENDA Y CREDITO PUBLICO); stable for
            exact-match filtering.
        has_text:
          type: boolean
          description: Whether the full text is machine-readable via `dof-publication`.
        has_pdf:
          type: boolean
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Use Authorization: Bearer YOUR_API_KEY'

````