---
type: "firecrawl-provider"
description: "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."
use_when: "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."
categories: "Public records"
capabilities: 3
credits_per_call: 5
---
# ComprasMX on Firecrawl Alexandria

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.

- Categories: Public records
- Category index: [Public records category](https://alexandria.firecrawl.dev/agents/categories/public-records)
- Provider key: `comprasmx-buengobierno-gob-mx`
- Access: Firecrawl credits
- Cost: 5 credits per call

## More

- [Human guide](https://www.firecrawl.dev/app/alexandria/comprasmx-buengobierno-gob-mx)
- [OpenAPI spec](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/openapi.json)

## Capabilities

- [Get procedure](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/get_procedure): One 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.
- [List agencies](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/list_agencies): The 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.
- [Search procedures](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/search_procedures): Search 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.

## 1. Choose this provider when

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.

## 2. Minimal request

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: { provider, capability, options } }`. For a batch, send `{ alexandria: [...] }` with up to 10 calls.

```json
{
  "provider": "comprasmx-buengobierno-gob-mx",
  "capability": "public-tenders/get_procedure",
  "options": {
    "procedure_number": "AA-12-NEF-012NEF001-T-25-2024"
  }
}
```

## 3. Add provider options

Use only the options needed for the task:

- `procedure_number` (string): Exact procedure number, e.g. AA-12-NEF-012NEF001-T-25-2024, or a PC-... project code. Example: `<procedure_number>`
- `record_type` (string): With uuid only; when omitted the procedure view is tried first, then the project view. Example: `procedure`
- `url` (string): A pasted sitio publico detail link, .../sitiopublico/#/sitiopublico/detalle/{uuid}/procedimiento (or /proyecto). Example: `<url>`
- `uuid` (string): uuid_procedimiento from a search row (32 hex digits). Example: `<uuid>`

## 4. Request through your preferred interface

### JavaScript

```javascript
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",
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "comprasmx-buengobierno-gob-mx",
  "capability": "public-tenders/get_procedure",
  "options": {
    "procedure_number": "AA-12-NEF-012NEF001-T-25-2024"
  }
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "comprasmx-buengobierno-gob-mx",
    "capability": "public-tenders/get_procedure",
    "options": {
      "procedure_number": "AA-12-NEF-012NEF001-T-25-2024"
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'comprasmx-buengobierno-gob-mx/public-tenders/get_procedure' \
  --options '{"procedure_number":"AA-12-NEF-012NEF001-T-25-2024"}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "comprasmx-buengobierno-gob-mx",
  "capability": "public-tenders/get_procedure",
  "options": {
    "procedure_number": "AA-12-NEF-012NEF001-T-25-2024"
  }
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "comprasmx-buengobierno-gob-mx",
  "capability": "public-tenders/get_procedure",
  "options": {
    "procedure_number": "AA-12-NEF-012NEF001-T-25-2024"
  }
}
```

## 6. Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. This example shows the provider payload in `data`:

```json
{
  "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"
}
```

## API reference-derived contract

The following capability contract is generated from the same normalized Alexandria API reference exposed in the API spec.

### Get procedure

- Capability: `public-tenders/get_procedure`
- Description: One 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.
- Instructions: Pass a search row's uuid, a pasted sitio publico detail URL, or an exact procedure number such as AA-12-NEF-012NEF001-T-25-2024. File downloads need a CAPTCHA on ComprasMX, so documents come back as metadata with the detail_url. An unknown uuid or number is not_found.
- Cost: 5 credits per call
- Capability file: [Get procedure](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/get_procedure)

Accepted options:
- `procedure_number` (string): Exact procedure number, e.g. AA-12-NEF-012NEF001-T-25-2024, or a PC-... project code. Example: `<procedure_number>`
- `record_type` (string): With uuid only; when omitted the procedure view is tried first, then the project view. Example: `procedure`
- `url` (string): A pasted sitio publico detail link, .../sitiopublico/#/sitiopublico/detalle/{uuid}/procedimiento (or /proyecto). Example: `<url>`
- `uuid` (string): uuid_procedimiento from a search row (32 hex digits). Example: `<uuid>`

Response schema example:
```json
{
  "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"
}
```

### List agencies

- Capability: `public-tenders/list_agencies`
- Description: The 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.
- Instructions: Find the agency_ids that search_procedures filters by, e.g. query 'IMSS' returns id 407. Inactive agencies are hidden unless include_inactive is true.
- Cost: 5 credits per call
- Capability file: [List agencies](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/list_agencies)

Accepted options:
- `cursor` (string): continuation cursor (the next page number). Example: `<cursor>`
- `include_inactive` (boolean): include_inactive Example: `false`
- `page` (number): page Example: `1`
- `page_size` (number): page_size Example: `50`
- `query` (string): Words matched (accent-insensitive, all must appear) against acronym, name and clave, e.g. 'IMSS' or 'seguro social'. Example: `<query>`

Response schema example:
```json
{
  "count": 2,
  "has_next": false,
  "include_inactive": false,
  "observed_at_ms": 1793226112658,
  "page": 1,
  "page_size": 50,
  "query": "IMSS",
  "results": [
    {
      "acronym": "IMSS",
      "active": true,
      "agency_id": 407,
      "branch_id": 50,
      "code": "050GYR",
      "name": "INSTITUTO MEXICANO DEL SEGURO SOCIAL",
      "type_id": 1
    },
    {
      "acronym": "IMSS-BIENESTAR",
      "active": true,
      "agency_id": 6448,
      "branch_id": 56,
      "code": "056AYO",
      "name": "SERVICIOS DE SALUD DEL INSTITUTO MEXICANO DEL SEGURO SOCIAL PARA EL BIENESTAR (IMSS-BIENESTAR)",
      "type_id": 1
    }
  ],
  "source_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/",
  "total": 2
}
```

### Search procedures

- Capability: `public-tenders/search_procedures`
- Description: Search 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.
- Instructions: Find tenders and direct awards of the Mexican federal government and its entities, e.g. open IMSS tenders or concluded medicine purchases. Get agency ids from list_agencies; pass a row's uuid to get_procedure for documents and awards. Timestamps are Mexico City local time. An unmatched search is an empty page, not an error.
- Cost: 5 credits per call
- Capability file: [Search procedures](https://alexandria.firecrawl.dev/agents/providers/comprasmx-buengobierno-gob-mx/public-tenders/search_procedures)

Accepted options:
- `agency_ids` (number[]): id_dependencia values from list_agencies (dependencia or entidad). Example: `[]`
- `character` (string): character Example: `national`
- `cursor` (string): continuation cursor from a previous page (the next page number). Example: `<cursor>`
- `expediente_code` (string): Expediente code, e.g. E-2024-00029216. Example: `<expediente_code>`
- `keyword` (string): Words in the procedure name (the site's Nombre filter; uppercased, every word must appear). Example: `<keyword>`
- `law` (string): Governing law: LAASSP goods and services, LOPSRM public works, LAPP public-private partnerships, CREDEX external credit, CEEP contracts between public entities. Example: `LAASSP`
- `opening_from` (string): Proposal opening date, YYYY-MM-DD. Pattern: ^\d{4}-\d{2}-\d{2}$. Example: `<opening_from>`
- `opening_to` (string): Proposal opening date, YYYY-MM-DD. Pattern: ^\d{4}-\d{2}-\d{2}$. Example: `<opening_to>`
- `page` (number): page Example: `1`
- `page_size` (number): page_size Example: `20`
- `procedure_number` (string): Procedure number or a fragment of it. Example: `<procedure_number>`
- `published_from` (string): YYYY-MM-DD, inclusive. Pattern: ^\d{4}-\d{2}-\d{2}$. Example: `<published_from>`
- `published_to` (string): YYYY-MM-DD, inclusive. Pattern: ^\d{4}-\d{2}-\d{2}$. Example: `<published_to>`
- `record_type` (string): procedure: contracting procedures. project: proyectos de convocatoria (draft calls open for public comments). Example: `procedure`
- `sort` (string): newest_first: by expediente code, newest first (stable paging). opening_soonest: by proposal opening date, meant for stage=open. Example: `newest_first`
- `stage` (string): The site's tabs: open = vigentes, in_progress = en proceso, concluded = adjudicados, cancelados, desiertos. Example: `all`
- `statuses` (string[]): Exact estatus_alterno values. Example: `["EN ACLARACIONES"]`

Response schema example:
```json
{
  "count": 3,
  "has_next": true,
  "observed_at_ms": 1793226105507,
  "page": 1,
  "page_size": 3,
  "results": [
    {
      "agency_acronym": "IMSS",
      "buyer_unit": "050GYR007 - COORDINACIÓN DE ABASTECIMIENTO Y EQUIPAMIENTO",
      "character": "INTERNACIONAL BAJO LA COBERTURA DE TRATADOS",
      "clarification_meeting_at": null,
      "comments_deadline_at": null,
      "contracting_type": "ADQUISICIONES",
      "detail_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/5e87a59a4ab2ad05e063a61200a970f5/procedimiento",
      "expediente_code": "E-2026-00112455",
      "opening_at": "2026-10-20T10:00:00",
      "procedure_id": 502136,
      "procedure_number": "AA-50-GYR-050GYR007-T-259-2026",
      "procedure_type": "ADJUDICACIÓN DIRECTA",
      "record_type": "procedure",
      "state": "MORELOS",
      "status": "ADJUDICADO",
      "title": "S18/AD/076/2026 BIENES DE CONSUMO DEL GRUPO 010 R28 MEDICAMENTOS.2026 MOR 2DAV",
      "uuid": "5e87a59a4ab2ad05e063a61200a970f5"
    },
    {
      "agency_acronym": "ISSSTE",
      "buyer_unit": "051GYN060 - DEPARTAMENTO DE RECURSOS MATERIALES Y OBRAS",
      "character": "NACIONAL",
      "clarification_meeting_at": null,
      "comments_deadline_at": null,
      "contracting_type": "ADQUISICIONES",
      "detail_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/02dbe658dab745598402b793cc4c1b01/procedimiento",
      "expediente_code": "E-2026-00112403",
      "opening_at": null,
      "procedure_id": 499173,
      "procedure_number": "AA-51-GYN-051GYN060-N-143-2026",
      "procedure_type": "ADJUDICACIÓN DIRECTA",
      "record_type": "procedure",
      "state": "DURANGO",
      "status": "ADJUDICADO",
      "title": "ADQUISICION DE MEDICAMENTOS CLAVES EN CERO EN CENADI (0172)",
      "uuid": "02dbe658dab745598402b793cc4c1b01"
    },
    {
      "agency_acronym": "ISSSTE",
      "buyer_unit": "051GYN022 - DEPARTAMENTO DE RECURSOS MATERIALES Y OBRAS",
      "character": "INTERNACIONAL BAJO LA COBERTURA DE TRATADOS",
      "clarification_meeting_at": null,
      "comments_deadline_at": null,
      "contracting_type": "ADQUISICIONES",
      "detail_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/2f40ffe4d93949e0b157203d056b99a2/procedimiento",
      "expediente_code": "E-2026-00112122",
      "opening_at": null,
      "procedure_id": 498820,
      "procedure_number": "AA-51-GYN-051GYN022-T-84-2026",
      "procedure_type": "ADJUDICACIÓN DIRECTA",
      "record_type": "procedure",
      "state": "TLAXCALA",
      "status": "ADJUDICADO",
      "title": "ADQUISICION DE MEDICAMENTOS PARA EL HOSPITAL GENERAL",
      "uuid": "2f40ffe4d93949e0b157203d056b99a2"
    }
  ],
  "sort": "newest_first",
  "source_url": "https://comprasmx.buengobierno.gob.mx/sitiopublico/",
  "time_zone": "America/Mexico_City",
  "total": 4689
}
```
