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

Tourism spending API

What a European country’s residents spend on trips, by category, purpose and destination, in total, per trip or per night, from Eurostat.

GET /v1/economy/tourism-spend1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/economy/tourism-spend?country_code=DE&measure=per_trip",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"dataset": "tour_dem_extot",
"label": "Expenditure by duration, purpose, main destination of the trip and expenditure category",
"unit": "Euro",
"updated": "2026-10-08T23:00:00+0200",
"rows": [
{
"country_code": "DE",
"country": "Germany",
"category": "total",
"category_code": "TOTXDUR",
"category_label": "Total excluding durables and valuable goods",
"year": 2021,
"value": 481.68,
"status": null
},
{
"country_code": "DE",
"country": "Germany",
"category": "total",
"category_code": "TOTXDUR",
"category_label": "Total excluding durables and valuable goods",
"year": 2022,
"value": 690.59,
"status": null
},
"… 33 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.
purposequery"total" | "personal" | "business"One of total, personal, business.
destinationquery"world" | "domestic" | "foreign"One of world, domestic, foreign.
measurequery"total" | "per_trip" | "per_night"One of total, per_trip, per_night.
from_yearqueryintegerFirst year. Defaults to five years ago.
to_yearqueryintegerLast year. Defaults to the latest Eurostat has.
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

Domestic or abroad?

Pass destination=domestic or foreign.

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).