Open Government Data API Guide

Use the following APIs to interact with Open Government Data datasets.

Authentication

For package_create, package_patch, and package_update, you need to include your API key in the request headers:


    Authorization: <YOUR-API-KEY>
            

User needs to login first to generate his/her API-Token, if not already generaed: Login Now

Endpoints

Dataset Details

Retrieve details of a dataset.

Datasets List

Search for datasets. Returns the list of datasets.

Create Dataset

Create a new dataset. (Only for users with authorized API key)

Update Dataset

Update an existing dataset. (Only for users with authorized API key)

For Detailed Usage of payload and filtering options visit CKAN Docs:

CKAN API Guide

Sample Response


    {
        "success": true,
        "result": {
            "id": "12345678",
            "name": "example-dataset",
            "title": "Example Dataset",
            "metadata_created": "2025-01-30T14:30:00",
            "metadata_modified": "2025-01-30T15:00:00",
            ...,
            ...,
            # all the metadata fields along with resources
        }
    }