CKAN Open Data Scraper avatar

CKAN Open Data Scraper

Pricing

from $2.00 / 1,000 records

Go to Apify Store
CKAN Open Data Scraper

CKAN Open Data Scraper

Search datasets and pull tabular records from any public CKAN open-data portal. No key.

Pricing

from $2.00 / 1,000 records

Rating

0.0

(0)

Developer

Dev D

Dev D

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Share

CKAN Open Data Scraper ๐Ÿ“‚

Search datasets and pull tabular records from any public CKAN open-data portal โ€” data.gov.uk, open.canada.ca and hundreds more. No API key, no proxy.

CKAN is the software behind most government and research open-data portals worldwide. This actor is a universal connector: point it at any CKAN portal and either search its datasets (metadata, organizations, resources, tags) or pull the actual rows from a datastore-backed resource.

Perfect for open-data pipelines, government/research data aggregation, civic tech, data journalism, and keeping a warehouse in sync with public datasets.

Uses CKAN's public Action API โ€” no key, no login. One actor works across every CKAN portal.


Two modes

  • ๐Ÿ”Ž Search datasets โ€” package_search: dataset title, notes, organization, license, tags, and its resources (with datastore_active flags).
  • ๐Ÿ“Š Resource records โ€” datastore_search: the actual tabular rows from a datastore-backed resource.

Features

  • โœ… No API key, no proxy โ€” public CKAN Action API.
  • โœ… Universal โ€” works on any CKAN portal (just change the portal URL).
  • โœ… Dataset discovery โ€” search + Solr filter queries (res_format:CSV, organization:...).
  • โœ… Raw data โ€” pull the rows behind a resource, with full-text search.
  • โœ… Auto-pagination โ€” handles both endpoints' paging.

Input

FieldDescription
Portal URLBase URL, e.g. https://data.gov.uk or https://open.canada.ca/data.
Modedatasets (search) or records (datastore rows).
QueryFree-text search.
Filter querySolr fq filter (datasets mode), e.g. res_format:CSV.
Resource IDDatastore-active resource ID (records mode).
Max resultsCap on datasets/records returned.

Example โ€” search CSV crime datasets on data.gov.uk

{
"portalUrl": "https://data.gov.uk",
"mode": "datasets",
"query": "crime",
"filterQuery": "res_format:CSV",
"maxResults": 500
}

Example โ€” pull rows from a specific resource

{
"portalUrl": "https://open.canada.ca/data",
"mode": "records",
"resourceId": "a811cac0-2a2a-4440-8a81-2994fc753171",
"maxResults": 10000
}

Output

Datasets mode:

{
"id": "โ€ฆ",
"name": "crime-data",
"title": "Crime",
"notes": "โ€ฆ",
"organization": "Calderdale Metropolitan Borough Council",
"license_title": "UK Open Government Licence (OGL)",
"num_resources": 3,
"tags": ["crime", "safety"],
"url": "https://data.gov.uk/dataset/crime-data",
"resources": [
{ "id": "โ€ฆ", "name": "2024 CSV", "format": "CSV", "url": "โ€ฆ", "datastore_active": true }
]
}

Records mode returns each row as-is (the resource's own columns) plus a _resource_id field.

Workflow tip

Use datasets mode to find resources where datastore_active: true, then feed those resource IDs into records mode to pull the actual data.

Run it on a schedule

Keep a mirror of chosen datasets/resources fresh โ€” pipe to a database, Google Sheets or a webhook.

Notes & limitations

  • Public CKAN portals only.
  • Records mode requires a datastore-active resource (many resources are just file links, which have no queryable rows).
  • Some portals mount CKAN under a subpath (e.g. /data) โ€” include it in the portal URL.
  • Data sources: the respective open-data portals; respect their licenses.

Keywords

CKAN, open data, data.gov, data.gov.uk, open.canada.ca, government data, datastore, package_search, datasets, civic tech, open data portal, public data, data catalog, research data, data journalism, Solr, open government, data aggregation, tabular data, API.