Household spending API
What households spend per country, category (food, housing, transport…) and year across Europe, from Eurostat, in million euro, euro per person or share of the total.
GET /v1/economy/consumer-spend1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/economy/consumer-spend?country_code=DE,FR&category=food,housing",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "dataset": "nama_10_co3_p3", "label": "Household final consumption expenditure by purpose (COICOP 1999)", "unit": "Current prices, million euro", "updated": "2026-11-24T23:00:00+0100", "rows": [ { "country_code": "DE", "country": "Germany", "category": "food", "category_code": "CP01", "category_label": "Food and non-alcoholic beverages", "year": 2021, "value": 200574, "status": "p" }, { "country_code": "DE", "country": "Germany", "category": "food", "category_code": "CP01", "category_label": "Food and non-alcoholic beverages", "year": 2022, "value": 216357, "status": "p" }, "… 6 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
country_codequery · required | string | ISO 3166-1 alpha-2 codes, comma-separated (up to 10); EU27 for the European Union. Example: DE,FR. |
categoryquery | string | Categories, comma-separated. |
from_yearquery | integer | First year. Defaults to five years ago. |
to_yearquery | integer | Last year. Defaults to the latest Eurostat has. |
unitquery | "eur_millions" | "eur_per_capita" | "share_of_total" | One of eur_millions, eur_per_capita, share_of_total. |
Response fields
200 with a EconomyStat, in Economy’s own JSON.
| Field | Type | Description |
|---|---|---|
dataset | string | |
label | string | |
unit | string | |
updated | string | null | |
rows | object[] |
Status codes
| Status | Meaning |
|---|---|
200 | One row per country, category and year. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No data matches. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Economy is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Which countries?
EU and EEA countries, and the EU27 total.
Economy is a trademark of their publishers (Eurostat, the US Treasury, ImportYeti). We are not affiliated with or endorsed by their publishers (Eurostat, the US Treasury, ImportYeti).