Skip to main content

A simple Eurostat Rest API client

Project description

Eurostat API Client (Python)

Use the Eurostat API Client to quickly retrieve json data from Eurostat REST service and convert it to a pandas DataFrame. A simple description of the service can be found here


Install Eurostat API Client using pip.

pip install eurostatapiclient

Quick start

This example shows how to retrieve a dataset and a pandas dataframe from it.

from eurostatapiclient import EurostatAPIClient

# Choose service version : only v2.1 is currently available
VERSION = 'v2.1'

# Only json is currently available
FORMAT = 'json'

# Specify language : en, fr, de

client = EurostatAPIClient(VERSION, FORMAT, LANGUAGE)
dataset = client.get_dataset('tps00001')

dataframe = dataset.to_dataframe()

# Add some filters (only mono-filtering is available for now)
params = {
    'geo': 'DE',
filtered_dataset = client.get_dataset('tps00001', params=params)
filtered_dataframe = filtered_dataset.to_dataframe()


Contributions are welcome !

Feel free to suggest modifications/enhancements in the "issues" section, or to create a pull request

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for eurostatapiclient, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size eurostatapiclient-0.2.5-py3-none-any.whl (11.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size eurostatapiclient-0.2.5.tar.gz (6.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page