Guide

Quick Start

Query EU GDP data with EurostatAPI in under 2 minutes.

1. Subscribe on RapidAPI

EurostatAPI is distributed via RapidAPI. Head to https://rapidapi.com/AETHAR/api/eurostat-eu-economic-data-api and subscribe to the Free plan — 100 requests per day, no credit card required.

RapidAPI handles billing, key issuance, and usage analytics. Upgrading or downgrading a plan takes effect immediately.

2. Copy your RapidAPI key

After subscribing, RapidAPI shows your personal X-RapidAPI-Key in the right-hand Code Snippets pane. This is the key you send on every request — keep it secret, never commit it to git, never embed it in client-side code.

If you're calling EurostatAPI directly (not through the RapidAPI gateway) — for enterprise customers with a private contract — you'll receive an Aethar-issued key with the prefix eu_ and use the header X-API-Key instead. This guide assumes the RapidAPI path; swap headers if you're on the direct path.

3. Make your first request

Get quarterly GDP for Germany:

curl -X GET "https://eurostat-eu-economic-data-api.p.rapidapi.com/v1/gdp?country=DE" \
  -H "X-RapidAPI-Key: your_rapidapi_key" \
  -H "X-RapidAPI-Host: eurostat-eu-economic-data-api.p.rapidapi.com"

You should see a 200 response with GDP time series data including quarterly observations in millions of euros, sourced from Eurostat's national accounts (namq_10_gdp).

4. Next steps

Browse the full endpoint reference in the left sidebar. The main tags are GDP (quarterly and annual national accounts), Inflation (HICP consumer price indices), Unemployment (monthly rates by age group), Earnings (wages by economic sector), Population (demographics), Trade (international trade balances and export breakdowns), and Datasets (discovery and metadata for all loaded Eurostat datasets).

For production workloads, read the Rate Limits and Errors guides to handle non-200 responses gracefully, and the Data Sources guide to understand what your data actually means.