Skip to content

data.gov.uk API

8 endpointsGovernment & Open DataGBsocial:read7 real examples

Returns UK government datasets, recent changes, resource file formats and publishing organizations from data.gov.uk.

View as Markdown
GET/datagovuk/searchDatasets of data.gov.uk that match a text, most relevant first, with their publisher and size.
GET/datagovuk/datasetOne dataset of data.gov.uk with its publisher, licence, dates and resources (files and links).
GET/datagovuk/recentThe datasets of data.gov.uk changed most recently, newest change first.
GET/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.
GET/datagovuk/organizationsThe publishers of data.gov.uk (departments, councils and other bodies), with how many datasets each publishes.
GET/datagovuk/organizationOne publisher of data.gov.uk with its description, category, contact and dataset count.
GET/datagovuk/organizationDatasetsThe datasets one publisher of data.gov.uk has released, optionally filtered by a text, most recently changed first.
GET/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.

dataset

GET/v1/datagovuk/dataset

One dataset of data.gov.uk with its publisher, licence, dates and resources (files and links).

scope social:read1 unitcached 1 h

Parameters

id
string
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
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
licencestring
namestring
notesstring
publisherstring
resourceCountinteger (int64)
resourcesResource[]
formatstring
idstring
namestring
urlstring
titlestring
updatedAtstring
curl "https://api.hoshime.com/v1/datagovuk/dataset?id=river-flood-maps-frm-fh-river-depth-l568" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/datagovuk/recent

The datasets of data.gov.uk changed most recently, newest change first.

scope social:read1 unitcached 10 minpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
licencestring
namestring
notesstring
publisherstring
resourceCountinteger (int64)
titlestring
updatedAtstring
curl "https://api.hoshime.com/v1/datagovuk/recent" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 6 hpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 20
tunnel
string
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.
proxy
string
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.
profileId
string
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
countinteger (int64)
formatstring
curl "https://api.hoshime.com/v1/datagovuk/formats" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/datagovuk/organizations

The publishers of data.gov.uk (departments, councils and other bodies), with how many datasets each publishes.

scope social:read1 unitcached 6 hpaginated

Parameters

limit
integer
Items per page, 1 to 100.
default 50
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
categorystring
contactEmailstring
contactNamestring
createdAtstring
datasetsinteger (int64)
descriptionstring
idstring
imageUrlstring
namestring
titlestring
curl "https://api.hoshime.com/v1/datagovuk/organizations" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/datagovuk/organization

One publisher of data.gov.uk with its description, category, contact and dataset count.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Organization name, the slug of its page, such as cabinet-office.
e.g. cabinet-office
tunnel
string
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.
proxy
string
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.
profileId
string
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
categorystring
contactEmailstring
contactNamestring
createdAtstring
datasetsinteger (int64)
descriptionstring
idstring
imageUrlstring
namestring
titlestring
curl "https://api.hoshime.com/v1/datagovuk/organization?id=cabinet-office" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/datagovuk/organizationDatasets

The datasets one publisher of data.gov.uk has released, optionally filtered by a text, most recently changed first.

scope social:read1 unitcached 30 minpaginated

Parameters

id
string
required
Organization name, such as cabinet-office.
e.g. cabinet-office
query
string
Text to search for within the publisher's datasets. Empty lists them all.
limit
integer
Items per page, 1 to 100.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
licencestring
namestring
notesstring
publisherstring
resourceCountinteger (int64)
titlestring
updatedAtstring
curl "https://api.hoshime.com/v1/datagovuk/organizationDatasets?id=cabinet-office" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 6 hpaginated

Parameters

query
string
Only count the datasets that match this text, such as flood. Empty counts the whole catalogue.
limit
integer
Items per page, 1 to 100.
default 20
tunnel
string
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.
proxy
string
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.
profileId
string
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
countinteger (int64)
tagstring
curl "https://api.hoshime.com/v1/datagovuk/tags" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open