Skip to main content
All providers

data.gov.uk

Open data portalsGB

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?

Response example

The shape of data from datagovuk/catalog-dcat (DCAT catalogue page). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
[
  {
    "@id": "https://ckan.publishing.service.gov.uk/dataset/65cdd2ed-b6cf-4d10-af99-89ab6afdcfa2",
    "@type": [
      "http://www.w3.org/ns/dcat#Dataset"
    ],
    "http://purl.org/dc/terms/description": [
      {
        "@value": "These maps have been produced to meet SEPA’s duty to publish flood hazard maps as set out in the Flood Risk Management (Scotland) Act 2009.  The maps show where there is a risk of flooding from the sea, from rivers and from surface water.The following probabilities are available for river flooding: - High - 10 year return period - Medium - 200 year return period - Low - 1000 year return period and 200 year return period plus climate change using the UKCP09 high emissions scenario for the 2080s.The river hazard maps show (where available): - Flood extent - Flood depth - Flood velocities where appropriate. The climate change scenario has been defined by United Kingdom Climate Projection 2009 (UKCP09) predictions for 2080 high emissions 95%ile predictions. Velocity is presented, where appropriate; this is determined by considering the confidence in input data, modelling method and impact. It is currently represented as one of four bandsMedium and low probability flood events were selected for consistency with return periods used in Scottish Planning Policy, whereas the high probability was chosen as it is reflective of observed events experienced over the last few decades."
      }
    ],
    "http://purl.org/dc/terms/identifier": [
      {
        "@value": "d08c2501-5d24-490e-866d-578ebe2bf51a"
      }
    ],
    "http://purl.org/dc/terms/issued": [
      {
        "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
        "@value": "2026-10-21T14:09:59.033836"
      }
    ],
    "http://purl.org/dc/terms/modified": [
      {
        "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
        "@value": "2026-10-21T14:09:59.033840"
      }
    ],
    "http://purl.org/dc/terms/publisher": [
      {
        "@id": "https://ckan.publishing.service.gov.uk/organization/c924c995-e063-4f30-bbd3-61418486f0a9"
      }
    ],
    "http://purl.org/dc/terms/spatial": [
      {
        "@id": "_:Nf0f7063f55244afca28fe96a6e6377d1"
      }
    ],
    "http://purl.org/dc/terms/title": [
      {
        "@value": "River Flood Maps (FRM_FH_RIVER_VELOCITY_L)"
      }
    ],
    "http://www.w3.org/ns/dcat#distribution": [
      {
        "@id": "https://ckan.publishing.service.gov.uk/dataset/65cdd2ed-b6cf-4d10-af99-89ab6afdcfa2/resource/0ad928ba-64d9-41a7-94bd-e37dc17dd51b"
      },
      {
        "@id": "https://ckan.publishing.service.gov.uk/dataset/65cdd2ed-b6cf-4d10-af99-89ab6afdcfa2/resource/6210445f-fcb2-497b-8d31-1788f72d195c"
      }
    ]
  },
  {
    "@id": "_:Nf0f7063f55244afca28fe96a6e6377d1",
    "@type": [
      "http://purl.org/dc/terms/Location"
    ],
    "http://www.w3.org/ns/locn#geometry": [
      {
        "@type": "https://www.iana.org/assignments/media-types/application/vnd.geo+json",
        "@value": "{\"type\": \"Polygon\", \"coordinates\": [[[, ], [, ], [, ], [, ], [, ]]]}"
      }
    ]
  },
  {
    "@id": "https://ckan.publishing.service.gov.uk/dataset/2851307f-bcf3-48d3-9504-4775533eddfa/resource/3440145c-9180-468a-bf12-5aba4328771b",
    "@type": [
      "http://www.w3.org/ns/dcat#Distribution"
    ],
    "http://purl.org/dc/terms/format": [
      {
        "@value": "HTML"
      }
    ],
    "http://purl.org/dc/terms/issued": [
      {
        "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
        "@value": "2026-06-18T11:13:26.271198"
      }
    ],
    "http://purl.org/dc/terms/modified": [
      {
        "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
        "@value": "2026-06-18T11:13:26.254213"
      }
    ],
    "http://purl.org/dc/terms/title": [
      {
        "@value": "ArcGIS Hub Dataset"
      }
    ],
    "http://www.w3.org/ns/dcat#accessURL": [
      {
        "@id": "https://open-data-ukcs-transition.hub.arcgis.com/documents/UKCS-transition::bgs

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • DCAT catalogue page

    Use data.gov.uk (datagovuk) from fastCRW Pergamon, capability "DCAT catalogue page" (catalog-dcat). You are harvesting data.gov.uk as DCAT/RDF rather than reading single datasets - narrow with q, fq or modified_since first, because an unfiltered walk hits a page that exceeds our size cap. Example options: page=1, q=flood, fq=organization:environment-agency. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovuk" and capability "catalog-dcat". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset detail

    Use data.gov.uk (datagovuk) from fastCRW Pergamon, capability "Dataset detail" (dataset). You already have a data.gov.uk dataset slug or UUID and need its metadata or the download links for its files. Example options: id=road-accidents-safety-data. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovuk" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset as DCAT JSON-LD

    Use data.gov.uk (datagovuk) from fastCRW Pergamon, capability "Dataset as DCAT JSON-LD" (dataset-dcat). You need this dataset in a standards-based RDF shape to merge with other DCAT catalogues, rather than CKAN's own field names. Example options: id=road-accidents-safety-data. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovuk" and capability "dataset-dcat". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Search datasets

    Use data.gov.uk (datagovuk) from fastCRW Pergamon, capability "Search datasets" (datasets). You are looking for UK government data on a topic and do not yet know which dataset or publisher has it. Example options: q=road safety, fq=organization:department-for-transport, rows=50. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "datagovuk" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

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