# Eurostat (ec.europa.eu) · Query data

Get market and financial data with Eurostat (ec.europa.eu) · Query data from Alexandria through one Spiral API key. Any dataset code from search_datasets once get_dataset has shown its dimensions and codes. For country price level indices or city purchasing power parities the typed wrappers are simpler. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Finance
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `ec-europa-eu/indicators/query_data`
- Page: https://spiral.ai/tools/alexandria/ec-europa-eu/indicators/query_data

## 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 |
| --- | --- | --- | --- | --- |
| `code` (required) | text |  | — | Dataset or table code (prc_ppp_ind_1, tec00120, urb_cecfi). Pattern: ^[A-Za-z0-9_]{1,64}$. |
| `lang` | one of | en, fr, de | en | lang |
| `time` | list |  | — | Exact periods to keep (2024, 2025-S1, 2026-Q1, 2026-07). |
| `since` | text |  | — | sinceTimePeriod: first period to include. Pattern: ^[0-9]{4}(-(S[12]\|Q[1-4]\|[0-9]{2}))?$. |
| `until` | text |  | — | untilTimePeriod: last period to include. Pattern: ^[0-9]{4}(-(S[12]\|Q[1-4]\|[0-9]{2}))?$. |
| `filters` | JSON |  | — | Dimension id (as listed by get_dataset, e.g. geo, indic_ppp, ppp_cat18, cities) -> codes to keep. An unknown dimension id is rejected upstream (400) and reported as invalid_input; an unknown code yields not_found. |

## 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": "ec-europa-eu/indicators/query_data",
    "input": {
      "code": "<code>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=ec-europa-eu%2Findicators%2Fquery_data

## Common questions

### Eurostat (ec.europa.eu) · Query data

**How much does Eurostat (ec.europa.eu) · Query data 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 Eurostat (ec.europa.eu) · Query data through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "ec-europa-eu/indicators/query_data"` 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 Eurostat (ec.europa.eu) · Query data?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use Eurostat (ec.europa.eu) · Query data?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

