Government
Compras MX logo

Compras MX API

comprasmx.buengobierno.gob.mx

Mexico federal public procurement portal (ComprasMX / CompraNet)

Actions
1
Category
Government
Login
Not required
Output
JSON

Call the Compras MX API

Submit a task, then poll the job until it settles. This example runs act_comprasmx_buengobierno_gob_mx_list_procedures.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_comprasmx_buengobierno_gob_mx_list_procedures",
    "params": {
      "agency": "",
      "date_from": ""
    }
  }'

1 action on comprasmx.buengobierno.gob.mx

Read

  • List procedures by agency and date

    act_comprasmx_buengobierno_gob_mx_list_proceduresread1 credit / call

    List open or recent Compras MX procurement procedures, optionally filtered by agency (dependencia) and publication date range.

    agency
    string
    date_from
    string
    date_to
    string

Compras MX API questions

Is there an API for Compras MX?
Compras MX does not offer a public data API for this, but Anakin Wire provides 1 maintained endpoint for comprasmx.buengobierno.gob.mx. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Compras MX data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when comprasmx.buengobierno.gob.mx changes its markup, Anakin updates the action.
Do I need a Compras MX account?
No. Every Compras MX action listed here runs anonymously — no account and no credentials required.
What does the Compras MX API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Government APIs

All Government sites