100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
country_codequery · requiredstringISO 3166-1 alpha-2 codes, comma-separated (up to 10); EU27 for the European Union. Example: DE,FR.
categoryquerystringCategories, comma-separated.
from_yearqueryintegerFirst year. Defaults to five years ago.
to_yearqueryintegerLast 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.

FieldTypeDescription
datasetstring
labelstring
unitstring
updatedstring | null
rowsobject[]
Status codes
StatusMeaning
200One row per country, category and year.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No data matches.
429Too many requests. Wait for Retry-After seconds.
503Economy 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).