Mexico DOF Scraper: Diario Oficial de la Federación API avatar

Mexico DOF Scraper: Diario Oficial de la Federación API

Pricing

from $2.00 / 1,000 dof notes

Go to Apify Store
Mexico DOF Scraper: Diario Oficial de la Federación API

Mexico DOF Scraper: Diario Oficial de la Federación API

DOF Mexico scraper: every publication of the Diario Oficial de la Federación (DOF hoy) as JSON. Decretos, acuerdos, NOM, aranceles, SAT rules, plus tipo de cambio FIX, UDIS and TIIE. Daily alerts, keyword filters. No login.

Pricing

from $2.00 / 1,000 dof notes

Rating

0.0

(0)

Developer

Daniel Pena

Daniel Pena

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

Mexico DOF Scraper: Diario Oficial de la Federacion API

Get every publication from Mexico's Diario Oficial de la Federacion (DOF) as clean JSON, CSV or Excel. Decrees, agreements, NOMs (Normas Oficiales Mexicanas), tariff changes, SAT and Hacienda resolutions, Banxico circulars and more. You can also pull the official daily exchange rate (tipo de cambio FIX), UDIS and TIIE published in the DOF.

Data comes from the official public SIDOF open data service of the Secretaria de Gobernacion. No login, no cookies, no proxy, no browser. Runs in seconds and costs very little.

Extrae el Diario Oficial de la Federacion (DOF) en JSON. Decretos, acuerdos, NOM, resoluciones, tipo de cambio, UDIS y TIIE. Filtra por fecha, palabra clave, dependencia y tipo de documento. Ideal para alertas diarias.

What you can do with it

  • Daily regulatory alerts. Schedule it every morning with "Only new notes" on and send new DOF items to Slack, email, Google Sheets or a webhook.
  • Trade and customs monitoring. Track tariff (arancel) changes, import and export rules, cupos and anti-dumping resolutions from Secretaria de Economia.
  • NOM tracking. Every note gets a nomCodes list (for example PROY-NOM-018-SSA-2026) and a docType like NOM or PROYECTO_NOM, so you can follow new standards and public consultations.
  • Tax and compliance. Follow SAT Resolucion Miscelanea Fiscal changes, IEPS fuel stimulus updates and Hacienda agreements.
  • Finance data. Get the official DOF values for DOLAR FIX, UDIS, TIIE 28, 91 and 182 days and TIIE de fondeo for any date range.
  • Legal research and AI. Turn on full text to feed DOF publications to an LLM, a search index or a RAG pipeline.

Input

FieldWhat it does
dateFrom / dateToDate range (YYYY-MM-DD or "7 days"). Max 366 days per run.
daysBackIf no From date, how many days back from To date (default 7).
keywordsMatch words in the title or agency. Accents and case are ignored.
keywordModeany or all.
excludeKeywordsDrop notes with these words.
agenciesPartial match on the issuing agency, like SECRETARIA DE ECONOMIA.
powersPE Ejecutivo, PL Legislativo, PJ Judicial, OA Organismos Autonomos.
docTypesDECRETO, ACUERDO, NOM, PROYECTO_NOM, RESOLUCION, CIRCULAR, CONVOCATORIA and more.
editionsMAT morning, VES evening, EXT extraordinary.
includeFullTextAdds the plain text of each note.
includeIndicatorsAdds daily DOLAR, UDIS and TIIE values.
includeAvisosAdds the "Avisos judiciales y generales" section (off by default).
onlyNew + stateKeyAlerts mode. Skips notes you already got in earlier runs.
maxItemsStop after this many notes. Newest days go first.

Example input

{
"daysBack": 30,
"keywords": ["arancel", "importacion", "norma oficial mexicana"],
"agencies": ["SECRETARIA DE ECONOMIA"],
"includeIndicators": true,
"maxItems": 200
}

Output

One row per DOF note:

{
"type": "nota",
"id": 5802610,
"date": "2026-10-30",
"edition": "Matutina",
"title": "Aviso de consulta publica del Proyecto de Norma Oficial Mexicana PROY-NOM-018-SSA-2026, Para la practica de terapias dialiticas.",
"docType": "PROYECTO_NOM",
"nomCodes": ["PROY-NOM-018-SSA-2026"],
"power": "Poder Ejecutivo",
"powerCode": "PE",
"agency": "SECRETARIA DE SALUD",
"page": 44,
"order": 15,
"isAviso": false,
"hasPdf": true,
"hasWordDoc": true,
"url": "https://dof.gob.mx/nota_detalle.php?codigo=5802610&fecha=30/10/2026",
"sidofUrl": "https://sidof.segob.gob.mx/notas/5802610",
"fullText": null
}

And, if you turn on indicators, one row per indicator per day:

{ "type": "indicador", "date": "2026-10-30", "indicator": "DOLAR", "value": 18.8148, "unit": "MXN per USD", "rawValue": "18.8148" }

The dataset has two views in the Console: DOF notes and Indicators.

Pricing

Pay per event. You only pay for rows you get.

EventPrice
DOF note$0.002 ($2 per 1,000)
DOF note with full text$0.005 ($5 per 1,000), charged instead of the normal note
Financial indicator$0.001 ($1 per 1,000)

A normal weekday has about 15 to 30 notes (without the paid avisos section). A daily alert for one topic usually costs a few cents a month. You can set a max cost per run in Apify and the Actor stops cleanly when it is reached.

What it costs for common jobs

You pay per row you get. Filters run before charging, so notes you filter out are free.

JobSettingsRows per month (approx.)Cost per month
Daily alert on one topic (for example tariffs)onlyNew, 2 or 3 keywords, daily schedule20 to 60 notes$0.04 to $0.12
Whole DOF every day, titles and linksonlyNew, no filters, daily schedule330 to 660 notes$0.66 to $1.32
Whole DOF every day with full text (for AI or search)onlyNew, includeFullText330 to 660 notes$1.65 to $3.30
FIX, UDIS and TIIE for one full yearincludeIndicators, 366 day rangeabout 1,500 valuesabout $1.50, one time
One year of NOM publicationsdocTypes: ["NOM", "PROYECTO_NOM"], 366 day rangedepends on the year$0.002 per note

How we got these numbers: a normal weekday has about 15 to 30 notes without the paid avisos section, and the DOF publishes about 22 days a month. Apify also adds its small default fee for each run start. Set a max cost per run and the Actor stops cleanly at that limit.

How it compares

This ActorReading dof.gob.mx by handCalling the SIDOF service yourself
Time per dayNone after setup10 to 30 minutesNone after you build it
SetupClick StartNoneWrite and maintain code for dates, editions, header rows and avisos
Filters by keyword, agency, type, editionYes, accents ignoredBrowser search onlyYou build them
Only new notes (alerts)Yes, built inNoYou build it
NOM codes pulled out of titlesYesNoYou build it
FIX, UDIS and TIIE in the same runYesSeparate pageSeparate calls
Export to Sheets, Slack, Zapier, Make, n8nYes, Apify integrationsCopy and pasteYou build it
PriceFrom $2 per 1,000 notesFreeFree, plus your time and server

When something else is a better fit

  • You only need the exchange rate and nothing from the DOF. Banxico's own SIE API is free and is the original source for FIX. It asks you to request a token first.
  • You read one or two notes a week. Reading dof.gob.mx by hand is free and fast enough.
  • You need a legal opinion about a publication. This Actor gives you the data, not legal advice.

Use it from AI agents (MCP)

This Actor works as a tool for Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server. Prompts that work well:

  • "List every NOM and PROYECTO_NOM published in the DOF in the last 30 days, with links."
  • "What did Secretaria de Economia publish in the DOF this week about aranceles or importacion?"
  • "Give me the DOLAR FIX, UDIS and TIIE 28 values from the DOF for every day of October 2026."

Inputs are dates, keywords and agencies, outputs are flat JSON with links to the official note, and filtered out notes are free, so agents can call it without running up a bill.

Schedule it

Create a daily schedule in Apify (for example 8:00 Mexico City time, Monday to Friday) with "Only new notes" on. Each morning you get only the new DOF publications for your topics, and Apify integrations can send them to Slack, email, Google Sheets, Zapier, Make or n8n.

How it works

  1. For each day in your range (newest first) it reads the official SIDOF day index.
  2. It skips agency header rows, robots.txt blocked notes and, by default, the paid avisos section.
  3. It applies your filters, then saves each matching note. Full text and indicators are optional extra requests.
  4. In alerts mode it remembers note IDs in a named key-value store so the next run only returns new items.

Good to know

  • The DOF usually does not publish on Saturdays, Sundays and some holidays. Empty days are normal.
  • Dates use Mexico City time.
  • docType is detected from the title, so treat it as a helpful label, not a legal classification.
  • Full text is never downloaded for the avisos section, because it is mostly court edicts that name private people.
  • The Actor reads robots.txt on sidof.segob.gob.mx and skips any note listed there. If robots.txt cannot be read, the run stops with no results and no charge.

This Actor only reads public government publications from Mexico's official gazette, which is published for anyone to read. It does not log in, does not bypass any protection and respects robots.txt. You are responsible for how you use the data, including any personal data that may appear in official texts. This is not legal advice and this Actor is not affiliated with the Gobierno de Mexico, Segob or the DOF.

How to get today's DOF (DOF hoy)

Set Days back to 1 and click Start. You get every note published in today's Diario Oficial de la Federacion with title, agency, document type, NOM codes and direct links. Schedule it every morning with "Only new notes" on for a daily DOF alert.

How to monitor NOMs and tariff changes in the DOF

Filter by keywords like NOM, arancel, cupo or importacion and by agency (Secretaria de Economia, SAT, Hacienda). Each matching publication arrives once, ready for Slack, email or Google Sheets.

Como obtener el tipo de cambio FIX, UDIS y TIIE del DOF

Activa los indicadores y elige un rango de fechas. Recibes el tipo de cambio FIX (dolar), UDIS y TIIE de 28, 91 y 182 dias publicados en el DOF, una fila por dia.

FAQ

Is there an official DOF API? The SIDOF service used here is public, but it is not documented for developers and it is easy to get wrong (date formats, editions, header rows, avisos). This Actor gives you a clean, stable output and filters.

Can I get older years? Yes, any date the SIDOF service has. Split long ranges into runs of up to 366 days.

Can I get only Diario Oficial tariff changes? Use agencies: ["SECRETARIA DE ECONOMIA"] with keywords: ["arancel", "cupo", "importacion"].

Something is broken? Open an issue on the Issues tab with your input and the date. I usually reply within 1 to 2 business days.

Related searches: DOF, DOF hoy, Diario Oficial de la Federacion, Diario Oficial de la Federacion API, DOF Mexico scraper, Mexico official gazette, NOM Norma Oficial Mexicana, tipo de cambio FIX DOF, UDIS hoy, TIIE, aranceles Mexico, Resolucion Miscelanea Fiscal, monitoreo regulatorio Mexico, tipo de cambio dof hoy, tipo de cambio dof api, dof tipo de cambio, dof publicaciones, dof nom 035, dof sat, dof udis, dof usd mxn.