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.

Sign up to use ComprasMX
Sign in

Try ComprasMX with
Firecrawl Alexandria

Choose an example or ask your own question.

ComprasMX
TRY ASKING

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.

1Request
number[]

id_dependencia values from list_agencies (dependencia or entidad). Separate values with commas.

string

character

string

continuation cursor from a previous page (the next page number).

string

Words in the procedure name (the site's Nombre filter; uppercased, every word must appear).

number

page_size

string

The site's tabs: open = vigentes, in_progress = en proceso, concluded = adjudicados, cancelados, desiertos.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "comprasmx-buengobierno-gob-mx",
    capability: "public-tenders/search_procedures",
    options: {
      keyword: "medicamentos",
      page_size: 3,
      stage: "concluded",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from ComprasMX.

count
3
has_next
true
observed_at_ms
1793226105507
page
1
page_size
3
sort
newest_first
source_url
https://comprasmx.buengobierno.gob.mx/sitiopublico/
time_zone
America/Mexico_City
total
4689
agency_acronymbuyer_unitcharacterclarification_meeting_atcomments_deadline_atcontracting_typedetail_urlexpediente_codeopening_atprocedure_idprocedure_numberprocedure_typerecord_typestatestatustitleuuid
IMSS050GYR007 - COORDINACIÓN DE ABASTECIMIENTO Y EQUIPAMIENTOINTERNACIONAL BAJO LA COBERTURA DE TRATADOSADQUISICIONEScomprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/5e87a59a4ab2ad05e063a61200a970f5/procedimientoE-2026-00112455502136AA-50-GYR-050GYR007-T-259-2026ADJUDICACIÓN DIRECTAprocedureMORELOSADJUDICADO5e87a59a4ab2ad05e063a61200a970f5
ISSSTE051GYN060 - DEPARTAMENTO DE RECURSOS MATERIALES Y OBRASNACIONALADQUISICIONEScomprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/02dbe658dab745598402b793cc4c1b01/procedimientoE-2026-00112403499173AA-51-GYN-051GYN060-N-143-2026ADJUDICACIÓN DIRECTAprocedureDURANGOADJUDICADO02dbe658dab745598402b793cc4c1b01
ISSSTE051GYN022 - DEPARTAMENTO DE RECURSOS MATERIALES Y OBRASINTERNACIONAL BAJO LA COBERTURA DE TRATADOSADQUISICIONEScomprasmx.buengobierno.gob.mx/sitiopublico/#/sitiopublico/detalle/2f40ffe4d93949e0b157203d056b99a2/procedimientoE-2026-00112122498820AA-51-GYN-051GYN022-T-84-2026ADJUDICACIÓN DIRECTAprocedureTLAXCALAADJUDICADO2f40ffe4d93949e0b157203d056b99a2

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.

  1. Setup guide for

    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.

  2. 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 credits

    03

    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.

  • API KEYfc-••••3f2aComprasMXWeb searchScrapeData providers
    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.
  • CAPABILITYpublic-tenders/get_proced…INprocedure_numberstringINrecord_typestringOUTresponsejson
    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.
  • QUALITY BY TOOL, REAL AGENT CALLSSearch procedures100%
    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.
  • SOC 2 TYPE IIOPT-IN ZERO DATA RETENTION
    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

Other Public records providers, on the same Firecrawl API key.

//
Get started
//
Give your agent ComprasMX.
One API key for the live web and every provider in Alexandria.
Are you an AI agent? See setup options