CKAN Open Data Portal Scraper avatar

CKAN Open Data Portal Scraper

Pricing

from $0.70 / 1,000 results

Go to Apify Store
CKAN Open Data Portal Scraper

CKAN Open Data Portal Scraper

Scrape datasets from CKAN open-data portals such as Canada, California, Germany or Italy by search link, organization, dataset or keyword: titles, descriptions, publishers, tags, licences, maintainers, dates and every resource with format, size and download link.

Pricing

from $0.70 / 1,000 results

Rating

0.0

(0)

Developer

Anyx Solutions

Anyx Solutions

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

banner

CKAN Open Data Portal Scraper

Datasets from CKAN open-data portals, with publishers, tags, licences, dates and every resource with its format, size and download link, as clean JSON.

CKAN is the open-source platform behind many government and city open-data portals, such as Canada's open.canada.ca, South Australia's data.sa.gov.au, Zurich's data.stadt-zuerich.ch, Italy's dati.gov.it and Latvia's data.gov.lv. This Actor scrapes any CKAN portal by dataset search link, organization, group, dataset, or by keyword. Get each dataset's title, description, publisher organization, tags, groups, licence, author and maintainer contacts, version, creation and modification dates, and every resource (file, API or link) with its format, size, dates and download link. There is no login and no proxy to configure. Built for open-data aggregation and monitoring, data discovery for analysts and journalists, government transparency research, and feeding public data catalogues into search, RAG and BI pipelines.

⚡ Quick start

{
"startUrls": [
{ "url": "https://open.canada.ca/data/en/dataset?q=water%20quality" }
],
"maxItems": 5
}

Or pick a portal and search it by keyword, most recently modified first:

{
"portalUrl": "https://data.sa.gov.au/data",
"searchTerms": ["road", "public transport"],
"sortBy": "lastModified",
"maxItems": 100
}

Or every dataset of one organization:

{
"startUrls": [
{ "url": "https://data.stadt-zuerich.ch/organization/stadt-zurich" }
],
"maxItems": 1000
}

🧩 Input

FieldTypeRequiredDefaultDescription
startUrlsarrayno—Pages of a CKAN portal: a dataset search with its filters (…/dataset?q=…&organization=…&tags=…&res_format=…), a dataset (…/dataset/<name>), an organization (…/organization/<name>), a group (…/group/<name>), or a portal home page for every dataset.
portalUrlstringno—Home page of a CKAN portal to search with the search terms, such as https://open.canada.ca/data. With no search terms, every dataset of the portal is returned.
searchTermsarrayno—Keywords to search the portal for, one search per line. CKAN search syntax works too, such as res_format:CSV.
sortBystringno"relevance"Order of the search-term results: relevance (best match), lastModified, newest or name (A to Z).
maxItemsintegerno—Maximum number of datasets per start URL or search term. The input form starts at 5; leave it empty to get every match.
proxyConfigurationobjectno{ "useApifyProxy": false }Proxy settings. CKAN portals need no proxy.

Add at least one start URL, or a portal URL. searchTerms and sortBy need portalUrl; start URLs keep the search, filters and sort set in them.

Search links. Search the portal's dataset page, tick the filters you want (organization, tags, formats, licence, groups or the portal's own facets) and copy the address bar into startUrls. Pages behind a language segment, such as /en/dataset or /de/dataset, work too.

Which portals work. Any portal running CKAN whose robots.txt lets crawlers use its data API, for example open.canada.ca/data, data.sa.gov.au/data, data.stadt-zuerich.ch, dati.gov.it/opendata and data.gov.lv/dati. Many portals keep CKAN's default robots.txt, which closes the data API to crawlers; the Actor respects that and says so in its log. A link to a site that does not run CKAN also gets a clear log message.

📤 Output

Each dataset is one dataset row. A field the portal has no value for is null, and a list with nothing in it is [].

Fields

FieldTypeDescription
portalstringThe portal's root, such as https://open.canada.ca/data.
idstringDataset ID on the portal.
namestringDataset name (the URL slug).
urlstringThe dataset's page on the portal.
titlestringTitle (English first on bilingual portals).
notesstringDescription, as the portal writes it (often Markdown).
organizationstringPublishing organization.
organizationNamestringThe organization's slug, as used in organization links and filters.
tagsarrayTags or keywords.
groupsarrayGroups or themes the dataset belongs to.
licenseIdstringLicence ID, such as cc-by or ca-ogl-lgo.
licenseTitlestringLicence name.
licenseUrlstringLink to the licence.
isOpenbooleanWhether the portal marks the licence as open.
authorstringAuthor.
authorEmailstringAuthor's contact email, when published.
maintainerstringMaintainer.
maintainerEmailstringMaintainer's contact email, when published.
versionstringVersion.
sourceUrlstringLink to the dataset's source or home page, when given.
metadataCreatedstringWhen the dataset was created on the portal (ISO 8601, UTC).
metadataModifiedstringWhen the dataset was last modified on the portal (ISO 8601, UTC).
numResourcesnumberNumber of resources.
resourcesarrayFiles, APIs and links, each with id, name, description, format, url, sizeBytes, mimeType, created and lastModified.
extrasobjectExtra fields the portal stores as key–value pairs, such as spatial or frequency.

💡 Use cases

  • Open-data aggregation — pull the catalogues of several portals into one table with a common shape.
  • Monitoring — track new and updated datasets of a portal, organization or topic, newest first.
  • Data discovery — find CSV, GeoJSON or API resources on a topic, with direct download links.
  • Transparency research — see what each agency publishes, under which licence and how recently.
  • RAG and analytics — feed titles, descriptions and tags into search, embedding or BI pipelines.

❓ FAQ

  • Do I need an account or an API key? No. The Actor reads public catalogue data only.
  • Do I need a proxy? No. It runs without one by default.
  • Why was a portal skipped? Its robots.txt closes the data API to crawlers (the CKAN default on many portals), opts out of AI agents, or could not be read. The log says which. The Actor respects those rules.
  • Why is it slow on some portals? Some portals ask crawlers to wait between requests (open.canada.ca asks for 20 seconds). Each request returns up to 100 datasets, so this matters only for very large lists.
  • Why did my sort not apply? Some portals' robots.txt does not allow sorted requests; the Actor then returns best match and says so in the log.
  • Can I use the data commercially? Each dataset carries its licence in licenseId, licenseTitle and licenseUrl, and each portal publishes its catalogue under its own terms. Open.canada.ca's catalogue, for example, is under the Open Government Licence – Canada, which asks for the attribution "Contains information licensed under the Open Government Licence – Canada."
  • Does it download the files? No. Every resource carries its url, so you can fetch the ones you need.

🔗 More scrapers by Anyx

🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.