Public records provider · 3 capabilities
ComprasMX API for AI agents and assistants
ComprasMX, the Mexican federal government's procurement platform (successor to CompraNet): search procedures and call-for-bids projects by keyword, number, agency, status, law and publication or opening dates; read a procedure with its annex documents, requested items, awarded contracts (supplier, amounts, dates) and public contract versions; and look up agency ids. Available to your AI agents via Firecrawl Alexandria.
Try ComprasMX with
Firecrawl Alexandria
Choose an example or ask your own question.
Capabilities
ComprasMX API capabilities via Firecrawl Alexandria
3 capabilities your agent can call with one Firecrawl API key. Open one to try it below.
- Get procedureOne ComprasMX procedure or call-for-bids project in full: identifiers, status, type, law, agency, buying unit, dates (publication, clarification meeting, opening, award act), exception basis, flags, requested line items, awarded contracts with supplier, amounts and dates, annex documents (names, types, sizes, ids) and public contract versions, plus the raw detail record.5 credits
- List agenciesThe ComprasMX agency catalog (dependencias y entidades, about 3,000 federal, state and municipal buyers): id_dependencia, acronym, name, clave, ramo and type, filtered by words and paginated.5 credits
- Search proceduresSearch ComprasMX procurement procedures (or call-for-bids projects) with the sitio publico filters: name keyword, procedure number, expediente, stage tab, exact statuses, agency ids, law, character, publication and opening date ranges; sorted and paginated (up to 100 rows a page) with the total count.5 credits · 100% quality
Playground
Try the ComprasMX API via Firecrawl Alexandria
Pick a capability, fill in its inputs and run it, or copy the JavaScript, Python, cURL or CLI code.
const result = await firecrawl.scrape({
alexandria: {
provider: "comprasmx-buengobierno-gob-mx",
capability: "public-tenders/get_procedure",
options: {
procedure_number: "AA-12-NEF-012NEF001-T-25-2024",
},
},
});This is a sample shape. Press Run to see live data from ComprasMX.
{
"agency": "012NEF - LABORATORIOS DE BIOLÓGICOS Y REACTIVOS DE MÉXICO, S.A. DE C.V.",
"award_act_at": null,
"awards": [
{
"amount": 42383.2,
"amount_with_tax": 42383.2,
"contract_code": "C-2024-00038948",
"currency": "MXN",
"end_date": "2024-12-31T00:00:00",
"institution": "INSTITUTO DE SEGURIDAD Y SERVICIOS SOCIALES DE LOS TRABAJADORES DEL ESTADO",
"internal_reference": "240066 ME",
"joint_participants": [],
"max_amount": 105923.82,
"max_amount_with_tax": 105923.82,
"published_at": "2024-04-10T14:31:00",
"start_date": "2024-04-02T00:00:00",
"status": "CONFIRMADA",
"supplier": "GABAME SA DE CV",
"title": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS)."
},
{
"amount": 60060,
"amount_with_tax": 60060,
"contract_code": "C-2024-00038903",
"currency": "MXN",
"end_date": "2024-12-31T00:00:00",
"institution": "INSTITUTO DE SEGURIDAD Y SERVICIOS SOCIALES DE LOS TRABAJADORES DEL ESTADO",
"internal_reference": "240063 ME",
"joint_participants": [],
"max_amount": 150020,
"max_amount_with_tax": 150020,
"published_at": "2024-04-10T13:30:00",
"start_date": "2024-04-02T00:00:00",
"status": "CONFIRMADA",
"supplier": "EXELTIS PHARMA MEXICO SA DE CV",
"title": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS)."
},
{
"amount": 112200,
"amount_with_tax": 112200,
"contract_code": "C-2024-00038956",
"currency": "MXN",
"end_date": "2024-12-31T00:00:00",
"institution": "INSTITUTO DE SEGURIDAD Y SERVICIOS SOCIALES DE LOS TRABAJADORES DEL ESTADO",
"internal_reference": "240070 ME",
"joint_participants": [],
"max_amount": 280500,
"max_amount_with_tax": 280500,
"published_at": "2024-04-10T14:36:00",
"start_date": "2024-04-02T00:00:00",
"status": "CONFIRMADA",
"supplier": "PROQUIGAMA SA DE CV",
"title": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS)."
}
],
"branch": "12 - SALUD",
"budget_items": [
{
"code": "25301",
"description": "MEDICINAS Y PRODUCTOS FARMACÉUTICOS"
}
],
"budget_year": 2024,
"buyer_unit": "012NEF001 - DIRECCION GENERAL",
"character": "INTERNACIONAL BAJO LA COBERTURA DE TRATADOS",
"clarification_meeting_at": null,
"comments_deadline_at": null,
"consolidated_purchase": true,
"contract_documents": [
{
"contract_code": "C-2024-00038872",
"contract_number": "240055 ME",
"document_type": "CONTRATO",
"end_date": "2024-12-31T18:00:00",
"file_id": "cdb78226-86c0-403c-8df5-ab8eb79c0694",
"file_name": "240055 ME_Censurado.pdf",
"mime_type": "application/pdf",
"start_date": "2024-04-02T18:00:00"
},
{
"contract_code": "C-2024-00038881",
"contract_number": "240056 ME",
"document_type": "CONTRATO",
"end_date": "2024-12-31T18:00:00",
"file_id": "a02f472a-4c23-4760-9985-baa643dfdb26",
"file_name": "240056 ME_Censurado.pdf",
"mime_type": "application/pdf",
"start_date": "2024-04-02T18:00:00"
},
{
"contract_code": "C-2024-00038881",
"contract_number": "0001",
"document_type": "CONVENIO",
"end_date": "2024-12-31T18:00:00",
"file_id": "a02f472a-4c23-4760-9985-baa643dfdb26",
"file_name": "ME 25424_Censu.pdf",
"mime_type": "application/pdf",
"start_date": "2024-04-02T18:00:00"
}
],
"contract_documents_total": 100,
"contracting_type": "ADQUISICIONES",
"currency": "PESO MEXICANO",
"description": "ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (MEDICAMENTOS GENÉRICOS).",
"detail_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/1766347fe7dd46c89df77ded0f146262/procedimiento",
"documents": [
{
"annex_description": "ANEXO TÉCNICO",
"annex_number": 1,
"created_at": "2024-03-26T19:17:07",
"document_type": "ANEXO TÉCNICO",
"document_uuid": "2874de18-b1b1-48a6-a4ce-6013fb12733d",
"file_name": "ANEXOS TEÿ CNICOS FINAL 01.03.24 AD.docx",
"modified_at": "2024-04-08T06:58:17",
"size_bytes": 239152
},
{
"annex_description": "JUSTIFICACIÓN DE EXCEPCIÓN",
"annex_number": 1,
"created_at": "2024-04-07T12:01:00",
"document_type": "JUSTIFICACIÓN DE EXCEPCIÓN",
"document_uuid": "454966f0-c677-48e0-b57c-e32920016d3f",
"file_name": "JUSTIFICACION ADQUISICION DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÿRICOS).pdf",
"modified_at": "2024-04-08T06:58:17",
"size_bytes": 21665180
},
{
"annex_description": "ACTA DE HECHOS AA-12-NEF-012NEF001-T-25-2024 1",
"annex_number": 5,
"created_at": "2024-07-31T19:01:13",
"document_type": "AVISO",
"document_uuid": "4d8b69f0-1f5a-4bee-ab05-f8fb7aaa7642",
"file_name": "ACTA DE HECHOS AA-12-NEF-012NEF001-T-25-2024 1.pdf",
"modified_at": "2024-07-31T19:01:13",
"size_bytes": 2393174
}
],
"documents_total": 3,
"emergency": false,
"estimated_contract_date": null,
"evaluation_criterion": "BINARIO",
"exemption_article": "Art. 41 fr. III",
"exemption_reason": "Pérdidas o costos adicionales, cuantificados y justificados, o entre otros supuestos, se trate de proveedor que tenga contrato vigente adjudicado por licitación pública.",
"expediente_code": "E-2024-00029216",
"languages": [],
"law": "LEY DE ADQUISICIONES, ARRENDAMIENTOS Y SERVICIOS DEL SECTOR PÚBLICO",
"line_items": [
{
"budget_item": "25301",
"cucop_code": "25301-4464",
"cucop_description": "MEDICINAS Y PRODUCTOS FARMACÉUTICOS",
"description": "BUDESONIDA -FORMOTEROL POLVO CADA GRAMO CONTIENE: BUDESONIDA 180 MG FUMARATO DE FORMOTEROL DIHIDRATADO 5 MG ENVASE CON FRASCO INHALADOR DOSIFICADOR CON 60 DOSIS CON 160 MICROGRAMOS /4.5MICROGRAMOS CADA UNA",
"group": "PARTIDA SOLA",
"max_amount": null,
"max_quantity": 286004,
"min_amount": null,
"min_quantity": 114403,
"quantity": 114403,
"unit": "PIEZA"
},
{
"budget_item": "25301",
"cucop_code": "25301-4464",
"cucop_description": "MEDICINAS Y PRODUCTOS FARMACÉUTICOS",
"description": "PARICALCITOL. CAPSULA CADA CAPSULA CONTIENE: PARICALCITOL 2MICROGRAMOS. ENVASECON 30 CAPSULAS.",
"group": "PARTIDA SOLA",
"max_amount": null,
"max_quantity": 583,
"min_amount": null,
"min_quantity": 233,
"quantity": 233,
"unit": "PIEZA"
},
{
"budget_item": "25301",
"cucop_code": "25301-4464",
"cucop_description": "MEDICINAS Y PRODUCTOS FARMACÉUTICOS",
"description": "ESTRADIOL DROSPIRENONA. COMPRIMIDO CADA COMPRIMIDO CONTIENE: ESTRADIOL HEMIHIDRATADO EQUIVALENTE A 1 MG DE ESTRADIOL DROSPIRENONA 2 MG ENVASE CON 28 COMPRIMIDOS.",
"group": "PARTIDA SOLA",
"max_amount": null,
"max_quantity": 1924,
"min_amount": null,
"min_quantity": 769,
"quantity": 769,
"unit": "PIEZA"
}
],
"line_items_total": 73,
"mipyme_exclusive": false,
"multi_year": false,
"observed_at_ms": 1793226111465,
"open_contract": true,
"open_contract_type": "Cantidad",
"opening_at": null,
"participation_mode": null,
"procedure_id": 170083,
"procedure_number": "AA-12-NEF-012NEF001-T-25-2024",
"procedure_type": "ADJUDICACIÓN DIRECTA",
"project_code": null,
"published_at": null,
"record": {
"abastecimiento_simultaneo": 0,
"anio_ejercicio_presupuestal": 2024,
"anticipo": 0,
"aplica_visita": null,
"caracter": "INTERNACIONAL BAJO LA COBERTURA DE TRATADOS",
"clave_grupo": "012NEF001",
"cobertura_tratado": 0,
"cod_expediente": "E-2024-00029216",
"cod_proy_convovatoria": null,
"codigo_contrato_marco": null,
"compra_consolidada": 1,
"contratacion_emergencia": "NO",
"contrato_abierto": 1,
"credito_externo": 0,
"dependencia": "012NEF - LABORATORIOS DE BIOLÓGICOS Y REACTIVOS DE MÉXICO, S.A. DE C.V.",
"descripcion": "ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (MEDICAMENTOS GENÉRICOS).",
"descripcion_condicion": null,
"descripcion_corta": "Pérdidas o costos adicionales, cuantificados y justificados, o entre otros supuestos, se trate de proveedor que tenga contrato vigente adjudicado por licitación pública.",
"descripcion_grupo": "DIRECCIÓN DE ADMINISTRACIÓN Y FINANZAS",
"descripcion_moneda": "PESO MEXICANO",
"descripcion_otros_seguros": null,
"email_uc": "compras@example.gob.mx",
"entidad_federativa_contratacion": "MÉXICO",
"estatus": "ADJUDICADO",
"estatus_alterno": "ADJUDICADO",
"excepcion_fraccion": "Art. 41 fr. III",
"exclusivo_mipyme": 0,
"fecha_acto_fallo": null,
"fecha_apertura": null,
"fecha_entrega_gar_cumpl": null,
"fecha_estimada_contrato": null,
"fecha_estimada_inicio_obra": null,
"fecha_junta_aclaracion": null,
"fecha_limite_aclaracion": null,
"fecha_limite_envio_aclaracion": null,
"fecha_publicacion": null,
"fecha_visita": null,
"forma_pago": "se efectuarán en moneda nacional al proveedor una vez entregado el bien, de conf",
"forma_participacion": null,
"garantia_bien_servicio": 1,
"garantia_cumplimiento": 1,
"id_entidad_federativa": 17,
"id_fundamento_legal": 24,
"id_ley": 1,
"id_procedimiento": 170083,
"id_tipo_contratacion": 1,
"id_tipo_procedimiento": 2,
"idioma_presentacion_proposiciones": "idioma data",
"just_red_gar_cumpl": null,
"justificacion_no_part_conjunta": null,
"justificacion_plazo": null,
"ley": "LEY DE ADQUISICIONES, ARRENDAMIENTOS Y SERVICIOS DEL SECTOR PÚBLICO",
"lugar_acto_fallo": null,
"lugar_apertura": null,
"lugar_junta_aclaracion": null,
"lugar_visita_instalacion": null,
"meses_cumplimiento_garantia": 12,
"no_control_interno": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS).",
"no_edicion": null,
"no_fuente_abastecimiento": null,
"no_meses_involucrados": null,
"no_prestamo": null,
"nombre_agente_financiero": null,
"nombre_condicion": null,
"nombre_condicion_credito": null,
"nombre_contrato": null,
"nombre_contrato_marco": null,
"nombre_criterio": "BINARIO",
"nombre_de": "TESORERÍA DE LA FEDERACIÓN y/o entidad",
"nombre_dependencia": "LABORATORIOS DE BIOLÓGICOS Y REACTIVOS DE MÉXICO, S.A. DE C.V.",
"nombre_organismo_financiero": null,
"nombre_procedimiento": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS).",
"nombre_proyecto": null,
"numero_procedimiento": "AA-12-NEF-012NEF001-T-25-2024",
"osd": 0,
"otro_criterio_evaluacion": null,
"otros_seguros": 0,
"partes_trabajo_subcontratado": null,
"participacion_conjunta": 0,
"plazo_ejecucion_dias": null,
"plazo_entrega_garantia": 10,
"plazo_proc_contratacion": "Recortado",
"plurianual": 0,
"porcentaje_anticipo": null,
"porcentaje_monto_gar": null,
"porcentaje_monto_proveedor": 10,
"ramo": "12 - SALUD",
"reduccion_cumpl": null,
"responsable": "SERVIDOR PUBLICO RESPONSABLE",
"serv_consultoria": null,
"subcontrata_partes_trabajo": null,
"testigo_social": 1,
"tipo_contratacion": "ADQUISICIONES",
"tipo_contrato_abierto": "Cantidad",
"tipo_procedimiento": "ADJUDICACIÓN DIRECTA",
"total_punto_economico": null,
"total_punto_tecnico": null,
"ubicacion_sitio_trabajo": null,
"unidad_compradora": "012NEF001 - DIRECCION GENERAL",
"unidad_requiriente": "unidad requiriente data",
"uuid_procedimiento": "1766347fe7dd46c89df77ded0f146262"
},
"record_type": "procedure",
"requesting_units": [
{
"code": "012NEF001",
"name": "DIRECCION GENERAL"
}
],
"social_witness": true,
"source_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/1766347fe7dd46c89df77ded0f146262/procedimiento",
"state": "MÉXICO",
"status": "ADJUDICADO",
"time_zone": "America/Mexico_City",
"title": "25, ADQUISICIÓN DE MEDICAMENTOS E INSUMOS PARA LA SALUD 2024 (GENÉRICOS).",
"treaties": [
{
"code": "T- MEC",
"name": "TRATADO ENTRE LOS ESTADOS UNIDOS DE AMÉRICA, LOS ESTADOS UNIDOS MEXICANOS Y CANADÁ"
},
{
"code": "TLC MÉXICO-COLOMBIA",
"name": "TRATADO DE LIBRE COMERCIO MÉXICO-COLOMBIA"
},
{
"code": "TLC MÉXICO CHILE",
"name": "TRATADO DE LIBRE COMERCIO ENTRE LOS ESTADOS UNIDOS MEXICANOS Y LA REPÚBLICA DE CHILE"
}
],
"uuid": "1766347fe7dd46c89df77ded0f146262"
}Connect
Use the ComprasMX API in your agent via Firecrawl Alexandria
Connect Firecrawl once and your agent can call ComprasMX and every other provider in Alexandria.
01
Connect your agent to Firecrawl Alexandria
Add Firecrawl to Claude, ChatGPT, Cursor or your own agent, signed in on a team with Alexandria enabled. One API key from that team reaches ComprasMX and every other provider in Alexandria.
02
Ask in plain language
Tell your agent what you need from ComprasMX. Alexandria finds the capability that fits, and your agent runs it.
Get procedure5 credits
List agencies5 credits
Search procedures5 credits
One Firecrawl billFirecrawl credits03
Pay per use
Each ComprasMX call costs Firecrawl credits, all on one Firecrawl bill, so you pay only for what your agent uses.
Why Alexandria
Why use Firecrawl Alexandria
What you get when your agent calls ComprasMX through Alexandria instead of a one-off integration.
- 01
One key for every provider
- No separate ComprasMX account, contract or API key. Calls are billed in Firecrawl credits.
- The same key reaches Alexandria's data providers plus Firecrawl's web search and scraping.
- 02
Built for agents
- Every capability has documented inputs and outputs your agent can read before it calls.
- Searching Alexandria for the capability that fits is free, through MCP, the CLI or the API.
- 03
Measured in public
- Quality, speed and cost benchmarks come from real agent calls across every Alexandria user.
- Category benchmarks compare providers side by side, so you can see which one works best.
- 04
Secure by default
- Firecrawl is SOC 2 Type II compliant, and the annual renewal audit is in progress.
- Zero data retention on Firecrawl's side is available on supported ComprasMX capabilities when a request opts in; ComprasMX's own retention policy still applies. ZDR searches leave out Alexandria provider results, so call the capability directly.
Benchmarks
ComprasMX API benchmarks via Firecrawl Alexandria
Quality, speed and cost, last 24 hours, across every agent call to ComprasMX through Alexandria.
- Quality
- 92.2%
- Calls answered without a tool error
- Speed
- 13.0 s
- 95% of successful calls finish faster
- Cost
- 5 credits
- Firecrawl credits per call
- Calls
- 51
- Last 24 hours, every Alexandria user
FAQ
ComprasMX API via Firecrawl Alexandria FAQs
- What is Firecrawl Alexandria?
- Firecrawl Alexandria is Firecrawl's library of data providers for AI agents, ComprasMX among them. Each provider returns structured data through documented capabilities, and your agent reaches all of them, along with Firecrawl's web search and scraping, from Claude, ChatGPT, Cursor, the MCP server, the CLI or the API. Alexandria needs a Firecrawl account on a team with Alexandria enabled, or an API key from one; keyless connections don't include it.
- How do I use the ComprasMX API with Firecrawl Alexandria?
- Connect Firecrawl to Claude, ChatGPT, Cursor or another AI tool, signed in on a team with Alexandria enabled, and ask for what you need: your agent searches Alexandria, finds ComprasMX and calls it. From your own code, search Alexandria for the ComprasMX capability you need with the Firecrawl API, SDKs or CLI, then call it with your API key. Either way you don't write any ComprasMX integration code.
- Do I need a ComprasMX account or API key?
- No. Calls to ComprasMX run through Alexandria and are billed in Firecrawl credits, so you don't need a separate ComprasMX account, contract or API key.
- How much does the ComprasMX API cost through Alexandria?
- Each call costs 5 Firecrawl credits. The capabilities list on this page shows the price of each one, and finding the right capability is free.
- Can I combine ComprasMX with other data providers?
- Yes. Your agent can call ComprasMX alongside the live web and any other provider in Alexandria, with the same Firecrawl account.
- How reliable is the ComprasMX API through Alexandria?
- In the last 24 hours, 92.2% of 51 calls to ComprasMX were answered without a tool error, and 95% of successful calls finished within 13.0 s. These numbers cover every Alexandria user and update continuously.
- Does ComprasMX support zero data retention?
- Yes. Every ComprasMX capability can run under zero data retention on Firecrawl's side when a request opts in. That covers Firecrawl's retention only: ComprasMX's own retention policy still applies, and requests that don't opt in are retained as usual. ZDR searches leave out Alexandria provider results, so call the capability directly.
Related
Related providers in Alexandria
Other Public records providers, on the same Firecrawl API key.