API · Economy
GET /economy/consumer-spend
Household spending by country and category, from Eurostat.
| Request | GET /v1/economy/consumer-spend |
| Operation id | economy.consumer_spend.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Household spending by country and category, from Eurostat.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
country_code | string | yes | ISO 3166-1 alpha-2 codes, comma-separated (up to 10); EU27 for the European Union. Example: DE,FR. |
category | string | no | Categories, comma-separated. |
from_year | integer | no | First year. Defaults to five years ago. |
to_year | integer | no | Last year. Defaults to the latest Eurostat has. |
unit | "eur_millions" | "eur_per_capita" | "share_of_total" | no | One of eur_millions, eur_per_capita, share_of_total. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | One row per country, category and year. | EconomyStat |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No data matches. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Economy is temporarily unavailable. Retryable; nothing was charged. | Error |
EconomyStat fields
| Field | Type | Description |
|---|---|---|
dataset | string | |
label | string | |
unit | string | |
updated | string | null | |
rows | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.