gob.mx (Gobierno de México) · List archive
gob-mx/government-content/list_archiveGet news and media data with gob.mx (Gobierno de México) · List archive from Alexandria through one Spiral API key. Discover content of one agency: galleries of road projects (agency sict, section galerias), press releases mentioning a keyword in a date range (section prensa with q/from/to). Follow with get_gallery, get_press_release or get_content using the returned slug. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
agency required | text | — | Agency slug from list_agencies (for example |
section required | one of prensa, galerias, articulos, documentos, videos, acciones_y_programas, multimedia | — | Archive section. |
q | text | — | Keyword filter (the archive's advanced search). The site's UI offers it for prensa; other sections accept the parameter but may ignore it. |
to | text | — | Latest publication date, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
from | text | — | Earliest publication date, YYYY-MM-DD (sent to the site as dd/mm/yyyy). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
page | number 1 to 100000 | 1 | 1-based page number, 9 cards per page. Use |
order | one of DESC, ASC | DESC | Publication order; DESC is newest first. |
category | text | — | Category tag as displayed on prensa cards (for example |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "alexandria",
"model": "gob-mx/government-content/list_archive",
"input": {
"agency": "<agency>",
"section": "prensa"
}
}'Frequently asked questions
How much does gob.mx (Gobierno de México) · List archive cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use gob.mx (Gobierno de México) · List archive through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "gob-mx/government-content/list_archive"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use gob.mx (Gobierno de México) · List archive?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use gob.mx (Gobierno de México) · List archive?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.