GroundsocialDocs

API · Economy

GET /economy/consumer-spend

Household spending by country and category, from Eurostat.

RequestGET /v1/economy/consumer-spend
Operation ideconomy.consumer_spend.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Household spending by country and category, from Eurostat.

Query parameters

NameTypeRequiredDescription
country_codestringyesISO 3166-1 alpha-2 codes, comma-separated (up to 10); EU27 for the European Union. Example: DE,FR.
categorystringnoCategories, comma-separated.
from_yearintegernoFirst year. Defaults to five years ago.
to_yearintegernoLast year. Defaults to the latest Eurostat has.
unit"eur_millions" | "eur_per_capita" | "share_of_total"noOne of eur_millions, eur_per_capita, share_of_total.

Responses

StatusMeaningSchema
200One row per country, category and year.EconomyStat
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No data matches.Error
429Too many requests. Wait for Retry-After seconds.Error
503Economy is temporarily unavailable. Retryable; nothing was charged.Error

EconomyStat fields

FieldTypeDescription
datasetstring
labelstring
unitstring
updatedstring | null
rowsobject[]

Errors use one shape everywhere; see Errors for every code and what to do.