DOF Mexico Official Gazette & Sanctions Scraper avatar

DOF Mexico Official Gazette & Sanctions Scraper

Pricing

from $9.23 / 1,000 results

Go to Apify Store
DOF Mexico Official Gazette & Sanctions Scraper

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

Scrapers Lat

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

19 days ago

Last modified

Share

DOF Mexico Official Gazette & Sanctions Scraper

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

Apify Coverage Output Billing

Table of contents

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

FieldTypeRequiredDefaultDescription
searchTermstringyesconcurso mercantilKeyword or phrase to search the DOF, for example concurso mercantil, inhabilitación, nombramiento, or a company or person name.
searchInenumnotitleWhere to match: title (title/index) or content (full entry content).
matchTypeenumnoallHow multi-word terms match: all words, phrase (exact), or any word.
maxPublicationsintegerno10Maximum gazette entries to collect. Free plans are capped at 10.
dateFromstringno(empty)Start of the publication date range, DD-MM-YYYY. Set with dateTo for a date-filtered search.
dateTostringno(empty)End of the publication date range, DD-MM-YYYY.
organismenumnoallRestrict a date-filtered search to one issuing body: all, PE, PL, PJ, OA, EPEM, EF, OD, AV, CV, VG.
withContentbooleannofalseFetch the full text of each entry (one extra request per entry).
withSummarybooleannofalsePaid add-on (requires withContent). AI writes a 2 to 3 sentence plain-language summary per notice. Billed per notice on success.
withExtractbooleannofalsePaid 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.

FieldTypeDescription
titlestringTitle/index text of the gazette entry.
publicationDatestringPublication date in DD-MM-YYYY.
organismstringIssuing body (organismo), for example PODER EJECUTIVO.
agencystringPublishing agency, for example SECRETARIA DE LA FUNCION PUBLICA.
gazetteIdintegerDOF gazette (edition) ID.
idstringDOF note ID (unique per entry).
urlstringCanonical URL of the note on the DOF site.
editionstringGazette edition label, or null.
sectionstringGazette section, or null.
pageStartintegerStarting page of the entry, or null.
gazetteUrlstringURL of the full gazette PDF, or null.
contentstringFull text of the entry when withContent is enabled, else null.
aiSummarystringAI summary of the notice (summary add-on), else null.
aiExtractobjectAI-extracted structured fields (extract add-on), else null.
observedAtstringISO 8601 timestamp of when the record was collected.
errorstringPresent 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:

# JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"
# CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"
# Paginate large datasets
curl "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 (result event). See the pricing tab for the current per-result price.
  • AI add-ons. withSummary and withExtract each bill per notice enriched, only on success, and require withContent. 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 error field and does not charge for it. Empty runs cost nothing.
  • Spend cap respected. Set maxTotalChargeUsd on 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.

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.