data.gov.uk API
Returns UK government datasets, recent changes, resource file formats and publishing organizations from data.gov.uk.
View as Markdown| GET | /datagovuk/search | Datasets of data.gov.uk that match a text, most relevant first, with their publisher and size. |
| GET | /datagovuk/dataset | One dataset of data.gov.uk with its publisher, licence, dates and resources (files and links). |
| GET | /datagovuk/recent | The datasets of data.gov.uk changed most recently, newest change first. |
| GET | /datagovuk/formats | The file formats of the resources on data.gov.uk (CSV, XLSX, GeoJSON and so on) with how many resources each has, most common first. |
| GET | /datagovuk/organizations | The publishers of data.gov.uk (departments, councils and other bodies), with how many datasets each publishes. |
| GET | /datagovuk/organization | One publisher of data.gov.uk with its description, category, contact and dataset count. |
| GET | /datagovuk/organizationDatasets | The datasets one publisher of data.gov.uk has released, optionally filtered by a text, most recently changed first. |
| GET | /datagovuk/tags | The tags data.gov.uk datasets are filed under, with how many datasets carry each, most used first; optionally only among the datasets that match a query. |
search
/v1/datagovuk/searchDatasets of data.gov.uk that match a text, most relevant first, with their publisher and size.
Parameters
querystring | Text to search for, such as air quality. Empty lists the catalogue. e.g. air quality |
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
id | string |
licence | string |
name | string |
notes | string |
publisher | string |
resourceCount | integer (int64) |
title | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/datagovuk/search?query=air+quality" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/search?query=air+quality", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/search?query=air+quality", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "a095804b-20c0-4b75-bf24-a2c0b9b95e57", "licence": "UK Open Government Licence (OGL)", "name": "ni-air-quality", "notes": "Air pollution results from the introduction of a range of substances into the atmosphere from a wide variety of sources. It can cause both s…", "publisher": "OpenDataNI", "resourceCount": 4, "title": "NI Air Quality", "updatedAt": "2026-07-08T13:31:03Z" }, { "id": "e802cd8a-d750-4f9a-8830-ca3e05714a02", "licence": "", "name": "air-quality-monitors3", "notes": "Provides information in respect of location of monitoring stations by means of passive devices (diffusion tubes).", "publisher": "Swindon Borough Council", "resourceCount": 3, "title": "Air Quality Monitors", "updatedAt": "2020-04-29T19:34:39Z" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
dataset
/v1/datagovuk/datasetOne dataset of data.gov.uk with its publisher, licence, dates and resources (files and links).
Parameters
idstring required | Dataset name, the slug of its page, such as river-flood-maps-frm-fh-river-depth-l568. e.g. river-flood-maps-frm-fh-river-depth-l568 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
id | string |
licence | string |
name | string |
notes | string |
publisher | string |
resourceCount | integer (int64) |
resources | Resource[] |
format | string |
id | string |
name | string |
url | string |
title | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/datagovuk/dataset?id=river-flood-maps-frm-fh-river-depth-l568" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/dataset?id=river-flood-maps-frm-fh-river-depth-l568", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/dataset?id=river-flood-maps-frm-fh-river-depth-l568", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "id": "debf9fe3-12de-40ba-a0fb-fef79ce18399", "licence": "", "name": "river-flood-maps-frm-fh-river-depth-l568", "notes": "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. …", "publisher": "Scottish Government SpatialData.gov.scot", "resourceCount": 2, "resources": [ { "format": "", "id": "05d27f05-d66e-49af-b65f-fed38b0b5659", "name": "SEPA Data publication", "url": "https://www.sepa.org.uk/environment/environmental-data/" }, { "format": "ZIP", "id": "e60efdd8-3836-4c0c-9ce6-58329eed1f20", "name": "SEPA_River_Flood_Maps_v2_1.zip", "url": "https://www2.sepa.org.uk/flooddata/SEPA_River_Flood_Maps_v2_1.zip" } ], "title": "River Flood Maps (FRM_FH_RIVER_DEPTH_L)", "updatedAt": "2026-11-06T10:07:30Z" }, "meta": { "cached": false, "endpoint": "dataset", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
recent
/v1/datagovuk/recentThe datasets of data.gov.uk changed most recently, newest change first.
Parameters
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
id | string |
licence | string |
name | string |
notes | string |
publisher | string |
resourceCount | integer (int64) |
title | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/datagovuk/recent" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/recent", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/recent", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "cb1dd672-98d5-4770-883d-20df8453870f", "licence": "", "name": "2014-nexen-petroleum-uk-ltd-sparrowhawk-south-firecrest-site-survey-decc-reference-number-gs-45", "notes": "An oil and gas industry semi-sub rig, drilling hazard, debris clearance site survey acquired under licences P244, P1560, P118, P741, P1256 b…", "publisher": "British Geological Survey (BGS)", "resourceCount": 1, "title": "2014, Nexen Petroleum UK Ltd, Sparrowhawk South/Firecrest, Site Survey, DECC Reference Number GS_45", "updatedAt": "2026-11-06T17:44:00Z" }, { "id": "6033b798-d5ce-4453-bef1-6ba886a796ad", "licence": "", "name": "2014-nexen-petroleum-uk-ltd-sparrowhawk-site-survey-decc-reference-number-gs-43", "notes": "An oil and gas industry semi-sub rig, drilling hazard, debris clearance site survey acquired under licences P244, P1560, P118, P741, P1256 b…", "publisher": "British Geological Survey (BGS)", "resourceCount": 1, "title": "2014, Nexen Petroleum UK Ltd, Sparrowhawk, Site Survey, DECC Reference Number GS_43", "updatedAt": "2026-11-06T17:43:59Z" } ], "meta": { "cached": false, "endpoint": "recent", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
formats
/v1/datagovuk/formatsThe file formats of the resources on data.gov.uk (CSV, XLSX, GeoJSON and so on) with how many resources each has, most common first.
Parameters
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
count | integer (int64) |
format | string |
curl "https://api.hoshime.com/v1/datagovuk/formats" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/formats", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/formats", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "count": 12391, "format": "CSV" }, { "count": 10442, "format": "HTML" } ], "meta": { "cached": false, "endpoint": "formats", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
organizations
/v1/datagovuk/organizationsThe publishers of data.gov.uk (departments, councils and other bodies), with how many datasets each publishes.
Parameters
limitinteger | Items per page, 1 to 100. default 50 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
category | string |
contactEmail | string |
contactName | string |
createdAt | string |
datasets | integer (int64) |
description | string |
id | string |
imageUrl | string |
name | string |
title | string |
curl "https://api.hoshime.com/v1/datagovuk/organizations" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/organizations", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/organizations", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "category": "", "contactEmail": "", "contactName": "", "createdAt": "2013-01-08T09:11:23Z", "datasets": 3, "description": "Aberdeen City Council", "id": "1cb62be8-50cd-4d87-869d-26dafeb5f649", "imageUrl": "", "name": "aberdeen-city-council", "title": "Aberdeen City Council" }, { "category": "", "contactEmail": "", "contactName": "", "createdAt": "2023-01-06T15:57:43Z", "datasets": 1, "description": "", "id": "4c846433-8a7b-4f60-8fb8-4abe93f265a1", "imageUrl": "", "name": "active-travel-england", "title": "Active Travel England" } ], "meta": { "cached": false, "endpoint": "organizations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
organization
/v1/datagovuk/organizationOne publisher of data.gov.uk with its description, category, contact and dataset count.
Parameters
idstring required | Organization name, the slug of its page, such as cabinet-office. e.g. cabinet-office |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
category | string |
contactEmail | string |
contactName | string |
createdAt | string |
datasets | integer (int64) |
description | string |
id | string |
imageUrl | string |
name | string |
title | string |
curl "https://api.hoshime.com/v1/datagovuk/organization?id=cabinet-office" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/organization?id=cabinet-office", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/organization?id=cabinet-office", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "category": "ministerial-department", "contactEmail": "co-transparency@cabinetoffice.gov.uk", "contactName": "Cabinet Office Transparency", "createdAt": "2012-06-27T14:48:40Z", "datasets": 172, "description": "The Cabinet Office supports the Prime Minister and Deputy Prime Minister, and ensure the effective running of government. We are also the co…", "id": "aa1e068a-23da-4563-b9c2-2cad272b663e", "imageUrl": "", "name": "cabinet-office", "title": "Cabinet Office" }, "meta": { "cached": false, "endpoint": "organization", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
organizationDatasets
/v1/datagovuk/organizationDatasetsThe datasets one publisher of data.gov.uk has released, optionally filtered by a text, most recently changed first.
Parameters
idstring required | Organization name, such as cabinet-office. e.g. cabinet-office |
querystring | Text to search for within the publisher's datasets. Empty lists them all. |
limitinteger | Items per page, 1 to 100. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
id | string |
licence | string |
name | string |
notes | string |
publisher | string |
resourceCount | integer (int64) |
title | string |
updatedAt | string |
curl "https://api.hoshime.com/v1/datagovuk/organizationDatasets?id=cabinet-office" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/organizationDatasets?id=cabinet-office", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/organizationDatasets?id=cabinet-office", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "ff76be1f-4f37-4bef-beb7-32b259413be1", "licence": "UK Open Government Licence (OGL)", "name": "organogram-cabinet-office", "notes": "Organogram (organisation chart) showing all staff roles. Names and salaries are also listed for the Senior Civil Servants.\r\n\r\nOrganogram dat…", "publisher": "Cabinet Office", "resourceCount": 46, "title": "Organogram of Staff Roles & Salaries", "updatedAt": "2026-07-24T14:09:01Z" }, { "id": "167eafbc-2e71-4a97-b85f-3c57cacdb7bd", "licence": "UK Open Government Licence (OGL)", "name": "data-gov-uk-usage-statistics", "notes": "Usage data for data.gov.uk. Gives an impression of the quality and quantity of usage, the browsers used and which pages had the most interes…", "publisher": "Cabinet Office", "resourceCount": 0, "title": "data.gov.uk usage statistics", "updatedAt": "2026-07-08T13:33:27Z" } ], "meta": { "cached": false, "endpoint": "organizationDatasets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }
tags
/v1/datagovuk/tagsThe tags data.gov.uk datasets are filed under, with how many datasets carry each, most used first; optionally only among the datasets that match a query.
Parameters
querystring | Only count the datasets that match this text, such as flood. Empty counts the whole catalogue. |
limitinteger | Items per page, 1 to 100. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
count | integer (int64) |
tag | string |
curl "https://api.hoshime.com/v1/datagovuk/tags" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/datagovuk/tags", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/datagovuk/tags", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "count": 0, "tag": "…" } ], "meta": { "cached": false, "endpoint": "tags", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "datagovuk", "requestId": "req_2Xb9kQ…", "units": 1 } }