Skip to content

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/datasetsSearch the BNPB open-data catalogue for datasets (disaster statistics, hazard and risk maps, shelters) by keyword, paged.
GET/bnpb/datasetOne BNPB open-data dataset with its description and downloadable resources (CSV, XLSX, SHP and other files).
GET/bnpb/datasetNamesThe names and catalogue pages of every BNPB open-data dataset, in the catalogue's order, paged.
GET/bnpb/organizationsThe agencies and offices that publish datasets on the BNPB open-data catalogue, with their dataset counts, paged.

datasets

GET/v1/bnpb/datasets

Search the BNPB open-data catalogue for datasets (disaster statistics, hazard and risk maps, shelters) by keyword, paged.

scope social:read1 unitcached 30 minpaginated

Parameters

query
string
Keyword to find in the dataset titles and descriptions, such as bencana or gempa.
e.g. bencana
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 100.
default 20e.g. 5
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

11 fields
createdAtstring
descriptionstring
idstring
licensestring
modifiedAtstring
namestring
organizationstring
resourceCountinteger (int64)
tagsstring[]
titlestring
urlstring
curl "https://api.hoshime.com/v1/bnpb/datasets?query=bencana&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/dataset

One BNPB open-data dataset with its description and downloadable resources (CSV, XLSX, SHP and other files).

scope social:read1 unitcached 1 h

Parameters

id
string
required
Dataset name (the slug in its /dataset/ URL) or id.
e.g. bencana
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

18 fields
createdAtstring
descriptionstring
idstring
licensestring
modifiedAtstring
namestring
organizationstring
resourceCountinteger (int64)
resourcesResource[]
descriptionstring
formatstring
idstring
modifiedAtstring
namestring
urlstring
tagsstring[]
titlestring
urlstring
curl "https://api.hoshime.com/v1/bnpb/dataset?id=bencana" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/datasetNames

The names and catalogue pages of every BNPB open-data dataset, in the catalogue's order, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 1000.
default 100
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
namestring
urlstring
curl "https://api.hoshime.com/v1/bnpb/datasetNames" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/organizations

The agencies and offices that publish datasets on the BNPB open-data catalogue, with their dataset counts, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 100.
default 50
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

7 fields
createdAtstring
datasetCountinteger (int64)
descriptionstring
idstring
namestring
titlestring
urlstring
curl "https://api.hoshime.com/v1/bnpb/organizations" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open