DOF Mexico Official Gazette & Sanctions Scraper
Pricing
from $9.23 / 1,000 results
DOF Mexico Official Gazette & Sanctions Scraper
Scrape Mexico's Diario Oficial de la Federacion (DOF), the official federal gazette, by keyword or date. Extract title, publication date, issuing body, agency, gazette ID, URL and full text for sanctions, insolvency and appointment notices. Export to JSON, CSV or Excel.
Pricing
from $9.23 / 1,000 results
Rating
5.0
(1)
Developer
Scrapers Lat
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
19 days ago
Last modified
Categories
Share
DOF Mexico Official Gazette & Sanctions Scraper
Here is one real result, with every field the actor returns (the long title is real; content, edition, section, pageStart, gazetteUrl are null here because withContent was off on this run):
{"title": "Circular por la que se comunica a las dependencias, Procuraduría General de la República, y entidades de la Administración Pública Federal … juicio de concurso mercantil en el expediente 265/2014-VI de la empresa Oceanografía, S.A. de C.V. …","publicationDate": "30-07-2014","organism": "PODER EJECUTIVO","agency": "SECRETARIA DE LA FUNCION PUBLICA","gazetteId": 259701,"id": "5354617","url": "https://sidof.segob.gob.mx/notas/5354617","edition": null,"section": null,"pageStart": null,"gazetteUrl": null,"content": null,"aiSummary": null,"aiExtract": null,"observedAt": "2026-08-10T14:40:30.407Z","error": null}
The most complete DOF scraper available. It returns every field Mexico's Diario Oficial de la Federación exposes for each gazette entry (title, publication date, issuing body, agency, gazette and note IDs, edition, section, page and URLs), plus optional full text and AI enrichment, and gives you keyword, match-mode, date-range and issuing-body filters to target exactly the notices you need.
📥 Input · 📤 Output · 💰 Pricing · ▶️ Examples
Table of contents
- What it does
- Quickstart
- Input reference
- Output reference
- Example output record
- Run via API and CLI
- Fetch results
- Billing and limits
- FAQ and troubleshooting
What it does
The actor searches Mexico's Diario Oficial de la Federación (DOF), the official federal gazette, by keyword and writes one record per gazette entry (nota). It matches your term against the title/index or the full content, supports all-words, exact-phrase or any-word matching, and can restrict a date-range search to one issuing body (organismo). With withContent enabled, it fetches the full text of each entry. Optional AI add-ons write a plain-language summary and extract structured fields (document type, parties, amounts, dates). Missing source values are returned as null, never invented.
Coverage is Mexico's federal gazette only. It is widely used to track insolvency (concurso mercantil), sanctions and debarment (inhabilitación), and appointments (nombramiento), as well as any company or person named in the gazette.
Quickstart
Open the actor, paste this into the input, and press Run. It returns the 10 most relevant insolvency (concurso mercantil) notices matched by title.
{"searchTerm": "concurso mercantil","searchIn": "title","matchType": "all","maxPublications": 10}
To narrow to a date range and fetch full text, set dateFrom and dateTo (format DD-MM-YYYY) and enable withContent.
Input reference
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
searchTerm | string | yes | concurso mercantil | Keyword or phrase to search the DOF, for example concurso mercantil, inhabilitación, nombramiento, or a company or person name. |
searchIn | enum | no | title | Where to match: title (title/index) or content (full entry content). |
matchType | enum | no | all | How multi-word terms match: all words, phrase (exact), or any word. |
maxPublications | integer | no | 10 | Maximum gazette entries to collect. Free plans are capped at 10. |
dateFrom | string | no | (empty) | Start of the publication date range, DD-MM-YYYY. Set with dateTo for a date-filtered search. |
dateTo | string | no | (empty) | End of the publication date range, DD-MM-YYYY. |
organism | enum | no | all | Restrict a date-filtered search to one issuing body: all, PE, PL, PJ, OA, EPEM, EF, OD, AV, CV, VG. |
withContent | boolean | no | false | Fetch the full text of each entry (one extra request per entry). |
withSummary | boolean | no | false | Paid add-on (requires withContent). AI writes a 2 to 3 sentence plain-language summary per notice. Billed per notice on success. |
withExtract | boolean | no | false | Paid add-on (requires withContent). AI extracts document type, parties, amounts and dates per notice. Billed per notice on success. |
Output reference
One dataset item per gazette entry. Types: string, integer, object, or null when the source value is absent.
| Field | Type | Description |
|---|---|---|
title | string | Title/index text of the gazette entry. |
publicationDate | string | Publication date in DD-MM-YYYY. |
organism | string | Issuing body (organismo), for example PODER EJECUTIVO. |
agency | string | Publishing agency, for example SECRETARIA DE LA FUNCION PUBLICA. |
gazetteId | integer | DOF gazette (edition) ID. |
id | string | DOF note ID (unique per entry). |
url | string | Canonical URL of the note on the DOF site. |
edition | string | Gazette edition label, or null. |
section | string | Gazette section, or null. |
pageStart | integer | Starting page of the entry, or null. |
gazetteUrl | string | URL of the full gazette PDF, or null. |
content | string | Full text of the entry when withContent is enabled, else null. |
aiSummary | string | AI summary of the notice (summary add-on), else null. |
aiExtract | object | AI-extracted structured fields (extract add-on), else null. |
observedAt | string | ISO 8601 timestamp of when the record was collected. |
error | string | Present only on a failed run: a single item with a populated error field is written instead. |
Example output record
Real record from a live run (input {"searchTerm":"concurso mercantil","searchIn":"title","maxPublications":10}), title trimmed:
{"title": "Circular … juicio de concurso mercantil en el expediente 265/2014-VI de la empresa Oceanografía, S.A. de C.V. …","publicationDate": "30-07-2014","organism": "PODER EJECUTIVO","agency": "SECRETARIA DE LA FUNCION PUBLICA","gazetteId": 259701,"id": "5354617","url": "https://sidof.segob.gob.mx/notas/5354617","content": null,"observedAt": "2026-08-10T14:40:30.407Z","error": null}
Run via API and CLI
Start a run and wait for it to finish, then read the dataset. Replace <TOKEN> with your Apify API token.
Run synchronously and get dataset items in one call:
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~dof-scraper/run-sync-get-dataset-items?token=<TOKEN>" \-H "Content-Type: application/json" \-d '{"searchTerm":"concurso mercantil","searchIn":"title","maxPublications":10}'
Start a run asynchronously:
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~dof-scraper/runs?token=<TOKEN>" \-H "Content-Type: application/json" \-d '{"searchTerm":"inhabilitación","dateFrom":"01-01-2026","dateTo":"30-06-2026","withContent":true,"maxPublications":100}'
Apify CLI:
apify call scrapers_lat/dof-scraper \--input '{"searchTerm":"nombramiento","searchIn":"content","matchType":"phrase"}'
Fetch results
Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing format:
# JSONcurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"# CSVcurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"# Paginate large datasetscurl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"
<DATASET_ID> is returned as defaultDatasetId in the run object. Use offset and limit to page through large result sets. clean=true drops empty and internal fields.
Billing and limits
- Pay per result. You are charged per gazette entry returned (
resultevent). See the pricing tab for the current per-result price. - AI add-ons.
withSummaryandwithExtracteach bill per notice enriched, only on success, and requirewithContent. They are disabled by default. - No charge on failure. If a run errors before any entry is collected, the actor writes a single item with a populated
errorfield and does not charge for it. Empty runs cost nothing. - Spend cap respected. Set
maxTotalChargeUsdon the run; once reached, the actor stops emitting and charging further billable results. - Free Apify plans are capped at 10 entries per run. Upgrade for higher
maxPublications.
FAQ and troubleshooting
A run returned 0 records. Why?
The search term matched nothing under the chosen searchIn and matchType. Try searchIn: content, matchType: any, or a broader term. Zero-result runs are not charged.
How do I filter by date?
Set both dateFrom and dateTo in DD-MM-YYYY format. A search term is still required. You can also restrict a date-filtered search to one issuing body with organism.
Why is content null?
Full text is only fetched when withContent is enabled. The AI add-ons also require withContent.
What is the difference between title and content search?
title matches the entry index headline; content matches the full body text. Content search is broader but slower.
Is this an official government tool? No. This actor is independent and has no affiliation with the DOF, SEGOB or the Mexican government. It reads only data that is publicly available on the DOF site. Use it in accordance with the DOF terms of service.
Related scrapers
- Boletín Oficial Argentina Scraper: Argentina's official gazette notices.
- Mexico Companies Directory Scraper: Mexican company records.
- SAT 69-B Scraper: Mexican taxpayers flagged by SAT article 69-B.
- OFAC Sanctions List Scraper: US Treasury OFAC SDN and Consolidated lists.
- CompraNet Mexico Scraper: Mexican public procurement tenders.
More scrapers at scrapers.lat
Built and maintained by scrapers.lat, where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at scrapers.lat.
Independent tool, not affiliated with the DOF, SEGOB or the Mexican government. Accesses only publicly available DOF data. Use in accordance with the DOF terms of service.
