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 failureimport 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
| 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. |
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_yearquery | integer | First year. Defaults to five years ago. |
to_yearquery | integer | Last year. Defaults to the latest Eurostat has. |
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
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).