# gob.mx (Gobierno de México) · List archive

Get 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.

- Provider: Alexandria
- Category: News & Media
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `gob-mx/government-content/list_archive`
- Page: https://spiral.ai/tools/alexandria/gob-mx/government-content/list_archive

## Pricing

$0.00873 per call.

## Limits

- 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 | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `agency` (required) | text |  | — | Agency slug from list_agencies (for example `sict`, `presidencia`). Pattern: ^[a-z0-9][a-z0-9_-]*$. |
| `section` (required) | one of | prensa, galerias, articulos, documentos, videos, acciones_y_programas, multimedia | — | Archive section. `galerias` are photo galleries, `prensa` press releases. |
| `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 `next_page` from the previous output. |
| `order` | one of | DESC, ASC | DESC | Publication order; DESC is newest first. |
| `category` | text |  | — | Category tag as displayed on prensa cards (for example `Comunicado`, `Comunicados`, `Boletín`). |

## Example

```bash
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"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=gob-mx%2Fgovernment-content%2Flist_archive

## Common questions

### gob.mx (Gobierno de México) · List archive

**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.

