Skip to main content
All providers

data.gov.uk

Public recordsGB

ckan.publishing.service.gov.uk

The UK national open-data catalogue: search tens of thousands of public-sector datasets and read their metadata, resources and licences.

Capabilities (9)

GET /v1/data/datagovuk/catalog-dcat1 credit

Returns one 100-dataset page of the catalogue as expanded DCAT JSON-LD - distributions, publishers and spatial extents - plus a hydra:PagedCollection node carrying totalItems and the first/next/last page URLs so you can drive the walk from the response itself.

pageq?fq?modified_since?
GET /v1/data/datagovuk/dataset1 credit

Returns the complete CKAN record for one dataset: title, description, licence, temporal and spatial extras, the owning organisation, and every resource with its download URL, format and description.

id
GET /v1/data/datagovuk/dataset-dcat1 credit

Returns one dataset as compacted DCAT JSON-LD: a dcat:Dataset node with dct: metadata, a foaf:Organization publisher and one dcat:Distribution node per file carrying accessURL, format and byte size.

id
GET /v1/data/datagovuk/datasets1 credit

Runs a Solr free-text query over all 59,417 data.gov.uk datasets and returns a total count plus full dataset records, each with its title, notes, licence, publishing organisation and resource list.

qfq?rows?start?sort?
GET /v1/data/datagovuk/facets1 credit

Returns dataset counts grouped by a catalogue field - file format, publisher, licence or tag - with no dataset records at all, as both a name-to-count map and a display-name list.

facet_fieldq?fq?
GET /v1/data/datagovuk/harvest-sources1 credit

Returns the 100 registered upstream feeds data.gov.uk pulls metadata from - each with its source URL, harvester type (dcat_json, dcat_rdf, ckan, gemini-waf, gemini-csw, gemini-single, inventory), run frequency, active flag, owning publisher and a status block with job count and last harvest time.

No parameters
GET /v1/data/datagovuk/organization1 credit

Returns one publisher's record: display title, description, dataset count, logo, and the FOI and contact name, email, phone and web form that body has registered.

idinclude_datasets?include_dataset_count?include_extras?include_users?
GET /v1/data/datagovuk/organizations1 credit

Returns all 1,044 publishing bodies on data.gov.uk - departments, agencies, councils, NHS trusts - as an array of slugs, or as full records with dataset counts and logos when all_fields is set.

q?all_fields?limit?offset?sort?
GET /v1/data/datagovuk/package-list1 credit

Returns a flat array of every dataset slug in the catalogue, 59,888 of them, with no other metadata. This is the database list and runs ahead of the 59,417 that dataset search reports, because search only counts what Solr has indexed.

limit?offset?

Licence

Open Government Licence v3.0 for the catalogue; each dataset carries its own licence in the record.

https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Contains public sector information licensed under the Open Government Licence v3.0.

Cache: up to 3600s