Get travel spending by country and category
Get what residents of up to 10 European countries spend on trips by category (transport, accommodation, restaurants and more) and year, filtered by purpose,…
Headers
Get your API keyAPI key (`sfk_...`)
The travellers' home countries, up to 10, comma-separated: ISO 3166-1 alpha-2 codes of EU and EFTA members and candidate countries, e.g. `DE,FR`, or `EU27` for the European Union. `EL` (Greece) and `UK` are accepted too.
any of: EU27, EA, AL, AT, BA, BE, BG, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IS, IT, LT, LU, LV, ME, MK, MT, NL, NO, PL, PT, RO, RS, SE, SI, SK, TR, XK (comma-separated)
Spending categories, comma-separated: `total` (everything except durables), `transport`, `restaurants`, `accommodation`, `package` (package holidays), `other`, `durables` (valuables and durable goods). Without it: all seven.
any of: total, transport, restaurants, accommodation, package, other, durables (comma-separated)
Why people travelled: `total` (default), `personal` or `business`.
one of: total, personal, business
Where they went: `world` (default), `domestic`, `foreign`, `eu` (other EU countries) or `non_eu`.
one of: world, domestic, foreign, eu, non_eu
`total` (default, all spending in euro), `per_trip` (average per trip) or `per_night` (average per night).
one of: total, per_trip, per_night
Trip length: `any` (default, one night or more), `short` (1 to 3 nights) or `long` (4 nights or more).
one of: any, short, long
First year, e.g. `2015`. Default: five years before the current year.
≥ 1975 · ≤ 2100
Last year, e.g. `2024`. Default: the latest year published.
≥ 1975 · ≤ 2100
Endpoint-specific response payload.
one of: total, personal, business
one of: world, domestic, foreign, eu, non_eu
one of: total, per_trip, per_night
one of: any, short, long
Values are in euro (not millions).
one of: EUR
One series per country and category that has data, in the order you asked.
The travellers' home country as you sent it, e.g. `DE`.
min 1 chars
Country name in English.
The spending category.
one of: total, transport, restaurants, accommodation, package, other, durables
The category's name in the dataset.
One value per year, oldest first, in euro.
Calendar year.
The value; null when the year is not published.
Flag the statistics office sets on the value, e.g. `provisional`, `estimated`, `break in time series`; null when none.
Countries you asked for that the dataset doesn't cover for these filters and years.
Where the data comes from and how to credit it when you reuse it.
Who publishes the data, e.g. `Eurostat`.
min 1 chars
The publisher's dataset code, when it has one.
The dataset's title.
When the publisher last updated the data, ISO 8601.
Where the data can be viewed.
The terms the data is published under.
min 1 chars
Credit line the licence asks for when you reuse or publish the data.
min 1 chars
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
one of: true
When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.
Code example
curl "https://api.socialfetch.dev/v1/economy/tourism-spend?country=DE,FR" \
-H "x-api-key: YOUR_API_KEY"Responses
Travel spending series by country and category.
Consumer spending
Get household spending for up to 10 European countries by category (food, housing, transport and more) and year, in euro, per person or as a share, with the…
Government spending
Get US federal spending summed by state, county or country for a date window, filtered by award type, industry (NAICS), product or service (PSC) and keyword.