DOF Publication
Retrieve one publication from Mexico's official federal gazette (DOF) by id, including its plain text when the publication is machine-readable. Publications range from a few hundred characters to entire decrees, so the text is returned in character ranges: content.total_length is the full size, and when content.has_more is true request the next range with offset: content.next_offset. Anything published before the 1973 volume is held only as a scan and returns is_image_only: true with content: null, its metadata, and scan_url for the official scanned page. This returns one gazette publication, not the consolidated text of a law; for that use diputados-federal-law.
Request
- Base URL: https://api.croma.run
- URL: https://api.croma.run/mx/dof/publication/v1
- Auth: HTTP bearer
Headers
Optional client-chosen key for this request (any string up to 255 characters, e.g. a UUID). Every Croma operation is an idempotent lookup: repeating a request with the same body returns the same result and creates nothing, so retrying after a timeout or network failure is always safe. The key is echoed back in the Idempotency-Key response header so you can correlate a retry with its first attempt. Each attempt that reaches the API counts against the rate limit.
Request body
Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.