Access to European Union open data
EUROPAEU Open Data PortalDevelopers’ corner
Overview Knowledge center Projects Sandbox

Developers’ corner

The EU Open Data Portal (EU ODP) aims to encourage the use of EU datasets for building third-party applications. To help achieve this, two programming interfaces are proposed to developers.

REST API access

One way to access the EU ODP is to use the REST API. All of the portal core functionalities are available through the application programming interface (API), which encompasses all you can do with the web interface and more. The information retrieved can thus be used by an external code that calls the portal API.

For programmatic use, the API is available at the following URL:

The EU ODP relies on an application of CKAN, the website of which you can find documentation about the API.

The message format for both the body of the requests and the answers is JSON (specified in RFC 4627). Below are some examples of what you can do using the REST API in your application.

Tools for using the REST API

Generic HTTP clients and libraries

curl is a generic http command-line tool that can be used to query the API. It will be used in the sample queries below.

Some extensions exist for most of the popular browsers that will make it possible to build queries to the API within the browser, for instance Postman for Google Chrome or RESTClient for Mozilla Firefox.

Most programming languages can be used to query the API as long as there is a compatible HTTP connection component, such as Jersey for Java.

Dedicated tools

Some specialised tools have been developed and can be used to facilitate the use of the REST API. All of these clients are available on Github and can be forked to develop custom solutions in the mentioned programming languages.

Sample queries

Get a list of the datasets in JSON

curl -d'{}'

Get a list of the tags in JSON

curl -d'{}'

Get a description of a particular dataset in JSON

curl -d'{"id": "dgt-translation-memory"}'

Search for datasets or resources matching a query

curl -d'{"q": "forest"}'

The SPARQL endpoint

Another way to access the EU ODP is the machine-readable SPARQL endpoint, which allows queries on the RDF descriptions of datasets.

As shown on the ‘Linked data’ page, a graphical user interface is provided to enter your SPARQL queries.

For programmatic use, a machine readable endpoint is available at the following URL:

You can find specifications of SPARQL on the W3C web site: The models used to describe datasets catalogued on the EU ODP are described on the ‘Linked data’ page under ‘Metadata vocabulary’.

Tools and libraries

To build applications able to perform queries on the endpoint of the EU Open Data Portal it is possible to use third-party libraries and applications. See below for some examples of such solutions.

SPARQL clients

  • Sesame client is a Windows SPARQL client featuring a graphical user interface.
  • Twinkle is a cross-platform Java application offering a user interface to perform SPARQL queries on remote endpoints.


Organised by programming language, here are a few of the libraries that can be used to build applications using the data from the EU ODP.

  • Java
    • Jena is an Apache project. It is an open source Java framework for building semantic web and linked data applications.
    • OpenRDF Sesame offers a Java API to handle and query RDF data.
  • C
    • Redland is a set of C libraries providing RDF and SPARQL support.
  • JavaScript
    • Hercules proposes a JavaScript library to query remote the SPARQL endpoint. It allows building rich web applications using information from the EU ODP.
  • PHP
    • EASYRDF is a PHP library to ease the use of SPARQL queries in your PHP application.
  • Python
    • RDFLib proposes a set of python libraries to incorporate RDF data into a python application.

SPARQL endpoint: sample queries

You will find examples of queries that can be performed on the ‘Linked data’ page of the EU ODP.