公
BNPB API
4 endpointsGovernment & Open DataIDsocial:read
Returns datasets of the Indonesian disaster agency's open-data catalogue (disaster statistics, hazard and risk maps, shelters), their files and the agencies that publish them.
View as Markdown| GET | /bnpb/datasets | Search the BNPB open-data catalogue for datasets (disaster statistics, hazard and risk maps, shelters) by keyword, paged. |
| GET | /bnpb/dataset | One BNPB open-data dataset with its description and downloadable resources (CSV, XLSX, SHP and other files). |
| GET | /bnpb/datasetNames | The names and catalogue pages of every BNPB open-data dataset, in the catalogue's order, paged. |
| GET | /bnpb/organizations | The agencies and offices that publish datasets on the BNPB open-data catalogue, with their dataset counts, paged. |
datasets
GET
/v1/bnpb/datasetsSearch the BNPB open-data catalogue for datasets (disaster statistics, hazard and risk maps, shelters) by keyword, paged.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring | Keyword to find in the dataset titles and descriptions, such as bencana or gempa. e.g. bencana |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 100. default 20e.g. 5 |
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
11 fields
createdAt | string |
description | string |
id | string |
license | string |
modifiedAt | string |
name | string |
organization | string |
resourceCount | integer (int64) |
tags | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/bnpb/datasets?query=bencana&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bnpb/datasets?query=bencana&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bnpb/datasets?query=bencana&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "createdAt": "2026-11-06T09:41:00Z", "description": "…", "id": "abc123", "license": "…", "modifiedAt": "2026-11-06T09:41:00Z", "name": "…", "organization": "…", "resourceCount": 1280, "tags": [ "…" ], "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "datasets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bnpb", "requestId": "req_2Xb9kQ…", "units": 1 } }
dataset
GET
/v1/bnpb/datasetOne BNPB open-data dataset with its description and downloadable resources (CSV, XLSX, SHP and other files).
scope social:read1 unitcached 1 h
Parameters
idstring required | Dataset name (the slug in its /dataset/ URL) or id. e.g. bencana |
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
18 fields
createdAt | string |
description | string |
id | string |
license | string |
modifiedAt | string |
name | string |
organization | string |
resourceCount | integer (int64) |
resources | Resource[] |
description | string |
format | string |
id | string |
modifiedAt | string |
name | string |
url | string |
tags | string[] |
title | string |
url | string |
curl "https://api.hoshime.com/v1/bnpb/dataset?id=bencana" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bnpb/dataset?id=bencana", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bnpb/dataset?id=bencana", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "createdAt": "2026-11-06T09:41:00Z", "description": "…", "id": "abc123", "license": "…", "modifiedAt": "2026-11-06T09:41:00Z", "name": "…", "organization": "…", "resourceCount": 1280, "resources": [ { "description": "…", "format": "…", "id": "abc123", "modifiedAt": "2026-11-06T09:41:00Z", "name": "…", "url": "https://…" } ], "tags": [ "…" ], "title": "…", "url": "https://…" }, "meta": { "cached": false, "endpoint": "dataset", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bnpb", "requestId": "req_2Xb9kQ…", "units": 1 } }
datasetNames
GET
/v1/bnpb/datasetNamesThe names and catalogue pages of every BNPB open-data dataset, in the catalogue's order, paged.
scope social:read1 unitcached 1 hpaginated
Parameters
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 1000. default 100 |
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
name | string |
url | string |
curl "https://api.hoshime.com/v1/bnpb/datasetNames" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bnpb/datasetNames", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bnpb/datasetNames", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "datasetNames", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bnpb", "requestId": "req_2Xb9kQ…", "units": 1 } }
organizations
GET
/v1/bnpb/organizationsThe agencies and offices that publish datasets on the BNPB open-data catalogue, with their dataset counts, paged.
scope social:read1 unitcached 1 hpaginated
Parameters
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 100. default 50 |
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
7 fields
createdAt | string |
datasetCount | integer (int64) |
description | string |
id | string |
name | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/bnpb/organizations" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bnpb/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/bnpb/organizations", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "createdAt": "2026-11-06T09:41:00Z", "datasetCount": 1280, "description": "…", "id": "abc123", "name": "…", "title": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "organizations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bnpb", "requestId": "req_2Xb9kQ…", "units": 1 } }