ComprasMX Scraper: Mexico Public Tenders & Contracts avatar

ComprasMX Scraper: Mexico Public Tenders & Contracts

Pricing

from $1.00 / 1,000 results

Go to Apify Store
ComprasMX Scraper: Mexico Public Tenders & Contracts

ComprasMX Scraper: Mexico Public Tenders & Contracts

Get Mexico's federal public tenders (licitaciones) and contracts from ComprasMX official open data. Open tenders with opening dates, draft calls, awards with suppliers and amounts, filters by keyword, state, institution, type and CUCoP budget item, a PROCUREMENT_REPORT and a daily monitor.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Karen Gisela Gallegos Aguilar

Karen Gisela Gallegos Aguilar

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

ComprasMX Scraper: Mexico public tenders and contracts

Get Mexico's federal public procurement from ComprasMX (comprasmx.buengobierno.gob.mx, the system that replaced CompraNet), using the government's official open data files (Datos Abiertos). Find open licitaciones you can still bid on, with their opening (deadline) dates, draft calls (proyectos de convocatoria) before they are published, and awards: who won, for how much, and when.

Two outputs:

  • Procedures: licitaciones públicas, invitaciones a cuando menos tres personas and adjudicaciones directas, with status, dates, institution, state and CUCoP budget item. Awarded procedures also get the number of contracts, the awarded amount and the winning companies.
  • Contracts: one row per contract, with supplier company, RFC, size (MIPYME), amount, currency, signing and start/end dates.

Each run also saves a PROCUREMENT_REPORT with totals by status, procedure type, contract type, state, government level, institution and budget item, the procedures opening in the next 7 days and the top suppliers.

Fast and light: no browser

The Actor reads the official CSV files directly. It does not open a browser or the ComprasMX search page.

  • About 2–4 seconds per file (each year's file has 85,000–130,000 rows and 90–150 MB).
  • Open tenders for a keyword: about 5 seconds. With awards: about 7 seconds.
  • 20,000 procedures from 2 years with awards: about 20 seconds.
  • Runs at 512 MB for up to 10,000 results. For more than 10,000 results, use 1024 MB.

What you get

Field groupFields
Procedureid, procedure_number, expediente_code, title, description, expediente_title, element_type (procedure / draft_call), url
Typeprocedure_type, procedure_group, law, contract_type, contract_group, character (nacional / internacional), participation, exception_article, consolidated_purchase
Status and datesstatus, status_group, is_open, published_at, clarification_meeting_at, opening_at, days_to_opening, award_date (Mexico City time)
Buyerinstitution, institution_acronym, institution_code, government_level (federal / state_municipal), ramo, buying_unit, state, budget_item (partida específica)
Awards (procedures)contracts_count, awarded_amount_mxn, awarded_other_currency, suppliers[] (name, RFC, size, contracts, amount), first_contract_signed_at
Contractscontract_code, amount, currency, amount_band, min/max_amount_no_tax, contract_kind, contract_status, has_amendment, signed_at, start_date, end_date, supplier_name, supplier_rfc, supplier_size, supplier_country

Why this Actor is different

  • Official open data, not a fragile page scraper: the same files the government publishes for download, updated every day.
  • Open now. is_open is true only when the status is open (Vigente, En aclaraciones, En repreguntas...) and the opening date has not passed. days_to_opening shows the time left.
  • Draft calls. Proyectos de convocatoria are an early warning for big licitaciones.
  • Awards and suppliers. Procedures are joined with the contracts file: amount awarded and winning companies.
  • Contracts mode. Search contracts by keyword, institution, supplier name or RFC, amount and signing date. Great for competitor and market research.
  • Monitor mode. Schedule it daily and get only new procedures, plus status changes (for example Vigente → Adjudicado).
  • No personal data. The files name the official who published each announcement and their e-mail; this Actor does not keep them. Suppliers who are people (RFC of 13 characters) are shown as PERSONA FÍSICA, without name or RFC.

How to use it

  1. Choose What to get: procedures (default) or contracts.
  2. Type keywords (software, medicamentos, limpieza, vigilancia, obra...). They are searched in the title and description. Leave empty for everything.
  3. Choose status (default: open now) and any filters: procedure type, contract type, states, institutions (IMSS, ISSSTE, CFE, PEMEX, SEDENA...), CUCoP budget items, government level, international only, published in the last N days, opening within N days.
  4. Set Max results (newest first).
  5. Run it and download JSON, CSV or Excel. Open PROCUREMENT_REPORT in the key-value store for the summary.

Input example: open tenders

{
"keywords": ["software", "licencias"],
"match_mode": "phrase",
"status": "open",
"procedure_types": ["licitacion_publica", "invitacion_3"],
"states": ["CDMX", "Jalisco", "Nuevo León"],
"opening_within_days": 10,
"max_items": 200
}

Input example: contracts won by companies

{
"output": "contracts",
"keywords": ["medicamento"],
"institutions": ["IMSS"],
"contract_types": ["adquisiciones"],
"min_amount_mxn": 1000000,
"signed_within_days": 60,
"max_items": 500
}

Output example (procedure, shortened)

{
"id": "E-2026-00121573/LA-63-015-904049978-N-27-2026",
"title": "RENOVACIÓN DE LICENCIAS Y SUSCRIPCIONES DE SOFTWARE DIVERSO",
"procedure_type": "LICITACIÓN PÚBLICA",
"contract_type": "SERVICIOS",
"status": "VIGENTE",
"is_open": true,
"published_at": "2026-11-17T10:45",
"clarification_meeting_at": "2026-11-25T11:00",
"opening_at": "2026-12-02T13:00",
"days_to_opening": 13,
"institution": "UNIVERSIDAD AUTÓNOMA DEL CARMEN",
"institution_acronym": "UNACAR",
"government_level": "state_municipal",
"state": "CAMPECHE",
"budget_item": "32701",
"url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/3664aee159e04e0b81cab5b0d32e3716/procedimiento"
}

Output example (contract, shortened)

{
"contract_code": "C-2026-…",
"title": "ADQUISICIÓN DE MEDICAMENTO INSULINA GLARGINA …",
"amount": 23503149.45,
"currency": "MXN",
"supplier_name": "IARE DE OCCIDENTE SA DE CV",
"supplier_rfc": "IOC1906149F0",
"supplier_size": "GRANDE",
"signed_at": "2026-11-11T12:31",
"start_date": "2026-10-29",
"end_date": "2026-12-31",
"institution_acronym": "IMSS-BIENESTAR"
}

Monitor mode (tender alerts)

Turn on Monitor mode and give it a Monitor name (for example software-cdmx). The first run remembers every matching result and saves the newest ones. Later runs save only new results. With Also report status changes on (default), it also saves known procedures whose status changed, with previous_status. Tip: to follow a tender until it is awarded, use status in_process or all, because "open now" stops showing a tender once its opening date has passed. Schedule it daily and connect it to e-mail, Slack or a webhook with Apify integrations.

Filters

InputWhat it does
outputprocedures or contracts.
keywords, match_mode, exclude_wordsSearched in the title and description (accents and case do not matter). Phrase, all words or any word.
statusopen (you can still bid), in_process, awarded, failed (desierto, cancelado, expirado), all.
include_draft_callsInclude proyectos de convocatoria (default on).
procedure_typeslicitacion_publica, invitacion_3, adjudicacion_directa, acuerdo_marco, entes_publicos.
contract_typesadquisiciones, servicios, obra_publica, servicios_obra, arrendamientos.
statesState of the buying unit (CDMX, Jalisco, Edomex...). Procedures only.
institutionsAcronym, name, code or buying unit text.
budget_itemsCUCoP partida específica codes or prefixes (e.g. 25301, 33).
government_levels, international_onlyFederal or state/municipal; only international procedures.
published_within_days, opening_within_daysRecent; deadline soon.
supplier_keywords, min_amount_mxn, max_amount_mxn, signed_within_daysContracts mode.
yearsFiles to read (2025, 2026...). Default: the current year, plus last year when needed.

Who uses this data

  • Companies that sell to the Mexican government (B2G): daily alerts of new licitaciones for your products.
  • Bid consultants: filtered open tenders and deadlines for your clients.
  • Sales and market research teams: who buys what, who wins, for how much; competitor tracking by RFC.
  • Journalists and analysts: direct awards, supplier concentration and spending by institution.

Limitations

  • Federal system only: ComprasMX covers the federal government and state/municipal purchases with federal money. Most state and municipal purchases with their own money are on state portals.
  • The open data files are updated about once a day, so very new announcements can take a day to appear.
  • The files have no estimated value for open tenders. Amounts come from contracts, after the award.
  • About 12% of procedures have no opening date (mostly direct awards and invitations in some stages).
  • Contracts in other currencies (USD, EUR) are kept in their currency and not converted.
  • ComprasMX files start in 2025. Earlier CompraNet years use other files and are not read.
  • Supplier people (personas físicas) are hidden by design.

Input and output details

Input reference

ParameterTypeRequiredDefaultDescription
outputstringNoproceduresProcedures = licitaciones, invitaciones and adjudicaciones with status and dates. Contracts = one row per signed contract with supplier and amount.
keywordsarrayNo—Words to find in the title or description (e.g. software, medicamentos, limpieza, obra). Accents and case do not matter. Empty = all.
match_modestringNophrasephrase = the words together, in order ("material de curación"). all_words = all words anywhere. any_word = at least one word.
exclude_wordsarrayNo—Drop results whose title or description has any of these words (e.g. arrendamiento).
statusstringNoopenOpen now = status Vigente, Pendiente de apertura, En aclaraciones or En repreguntas, and the opening date has not passed.
include_draft_callsbooleanNoTrueDraft calls are published before the real tender. They are an early warning for big licitaciones.
procedure_typesarrayNo—Optional procedure types to keep. Leave empty for all types.
contract_typesarrayNo—Optional contract types to keep. Leave empty for all.
statesarrayNo—Mexican states, e.g. Jalisco, CDMX, Nuevo León, Estado de México. It is the state of the buying unit. Procedures only.
institutionsarrayNo—Acronym, name, code or buying unit text, e.g. IMSS, ISSSTE, CFE, PEMEX, SEDENA, Secretaría de Salud.
budget_itemsarrayNo—CUCoP budget item codes or prefixes, e.g. 25301 (medicines) or 33 (professional services).
government_levelsarrayNo—Optional government levels to keep, for example federal or state. Leave empty for both.
international_onlybooleanNoFalseKeep only Internacional abierto and Internacional bajo tratados.
published_within_daysintegerNo—Only keep results published in the last N days, for example 30. Leave empty for no date limit.
opening_within_daysintegerNo—Only procedures whose proposal opening date is in the next N days.
include_awardsbooleanNoTrueFor awarded procedures, add the number of contracts, the awarded amount and the suppliers (companies only). Reads the contracts file too.
supplier_keywordsarrayNo—Contracts mode: keep contracts won by companies matching these words or RFCs.
min_amount_mxnintegerNo—Minimum amount in Mexican pesos (used in contracts mode), for example 100000. Leave empty for no minimum.
max_amount_mxnintegerNo—Maximum amount in Mexican pesos (used in contracts mode), for example 5000000. Leave empty for no maximum.
signed_within_daysintegerNo—Contracts mode. Uses the signing date, or the award date when there is no signing date.
yearsarrayNo—Files to read, e.g. [2026] or [2026, 2025]. Empty = the current year (plus last year when your 'last N days' needs it). ComprasMX files start in 2025.
max_itemsintegerNo100Maximum number of dataset rows to save, newest first, for example 20.
monitor_modebooleanNoFalseSave only results not seen in earlier runs with the same monitor name. Schedule it daily for alerts.
monitor_keystringNo—Any name, e.g. software-cdmx. Each name has its own memory.
monitor_track_status_changesbooleanNoTrueMonitor mode, procedures: also save known procedures whose status changed (e.g. Vigente → Adjudicado), with previous_status.
proxyConfigurationobjectNo—Optional. Not needed: the official ComprasMX files are public downloads.

Output fields

FieldDescription
titleAnnouncement or contract title.
institution_acronymInstitution acronym (IMSS, CFE...).
stateState of the buying unit.
procedure_typeTipo de procedimiento as published.
statusEstatus procedimiento as published.
is_openTrue if you can still take part: open status and the opening date has not passed (draft calls: comment period open).
opening_atProposal opening date-time (presentación y apertura): the bid deadline.
days_to_openingDays until the opening date.
published_atPublication date-time (Mexico City).
awarded_amount_mxnProcedures: total contract amount in MXN.
contracts_countProcedures: number of contracts signed.
urlPage on the ComprasMX public site.
idUnique id: expediente code / procedure number (procedures) or contract code (contracts).
currencyCurrency.
monitor_statusMonitor mode: new or status_changed.
scraped_atWhen this row was saved.

The dataset also includes 59 further fields. Open the Output tab in the Actor for the full list.

FAQ

Is there an official ComprasMX API? No public API. The search page uses protected internal services. The government publishes the data as open data files, and this Actor reads those files.

Can I use the data commercially? The files are published as open data. Mexico's open data rules (Decreto de Datos Abiertos, 2015, and the Términos de Libre Uso MX) allow use, redistribution and commercial use with attribution. Cite the source: "ComprasMX Datos Abiertos, Secretaría Anticorrupción y Buen Gobierno, https://comprasmx.buengobierno.gob.mx/datos-abiertos, date of download". The gob.mx portal terms also apply to the website itself; check them for your use case.

Do I need a proxy? No.

Does it collect personal data? It does not keep officials' names or e-mails, and it hides suppliers who are people.

Something is wrong? Open an issue on the Actor's Issues tab with your run ID.

More public-tender extractors by kareninatech: