API

To use the API simply perform the following HTTP GET request /api/<my-random-query>.

Example: http://dataopen.eu/api/guitar

Parameters:

Optional Parameter Description Default value
sort Sort results by date (default) or relevance date
direction Present results in descending (desc) or ascending order (asc). desc
page The system presents results in pages. This is the current page number. Potential values are 1,2,3... 1
limit Results per page. 20

JSON Result Format

The following is a sample result for the query "guitar", sorted by date in descending direction, with 3 items per page.

{
    "direction": "desc", 
    "limit": "22", 
    "page": 1, 
    "query": "guitar", 
    "results": [
        {
            "ckan_id": "00c789aa-82ba-4f08-8ec2-474c9a516c5b", 
            "package_name": "events-nsc", 
            "package_url": "http://www.europeandataportal.eu/data/en/dataset/events-nsc", 
            "portal": "http://www.europeandataportal.eu/", 
            "resources": [
                {
                    "name": "sample name",
                    "url": "http://data.n-somerset.gov.uk/download/culture-leisure-and-heritage/events/events/CSV?version=28/01/2016"
                },
                {
                    "name": "sample file",
                    "url": "http://example.com/"
                }
            ]
        }, 
        {
            "ckan_id": "9025aae8-96cc-40d6-9f58-da047b4a2d92", 
            "package_name": "events-nsc", 
            "package_url": "http://www.europeandataportal.eu/data/en/dataset/events-nsc", 
            "portal": "http://www.europeandataportal.eu/", 
            "resources": []
        }, 
    ], 
    "sort": "date", 
    "total_results": 262
}
        

Example Queries