Search BPS statistics
nusa_stats_searchSearch official BPS statistics by keyword for indicators, variables, tables, publications, and press releases; use returned variable IDs to fetch detailed data. Requires a BPS API key.
Instructions
Find official BPS (Badan Pusat Statistik) statistics: strategic indicators (inflasi, kemiskinan...), dynamic-table variables, static tables, publications and press releases. Requires a free BPS API key configured by the user. Use the returned variable id with nusa_stats_get.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "nusa_stats_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the human-readable text block: id (Indonesian) or en (English). | id |
| page | No | ||
| type | No | indicator | |
| query | Yes | Keywords, e.g. "inflasi" or "kemiskinan". | |
| domain | No | BPS domain id. 0000 = national. Overrides region_code. | |
| subject_id | No | BPS subject id (type=variable only). | |
| region_code | No | Kemendagri code (province or regency used; deeper codes use their regency). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| cache | Yes | none = not cached (local data). | |
| source | Yes | Source id, e.g. bmkg, bps, region. | |
| derived | No | True when computed locally from source data. | |
| dataAsOf | No | ISO 8601 time the source says the data is current as of. | |
| warnings | Yes | ||
| sourceUrl | Yes | Canonical URL of the data source. | |
| termsNote | Yes | Short terms caveat for this source. | |
| attribution | Yes | Attribution wording the provider requires. Show it to users. | |
| retrievedAt | Yes | ISO 8601 time with offset when data was fetched by this server. | |
| cacheAgeSeconds | No |