Get a BPS dynamic-table variable
nusa_stats_getFetch values for a single BPS dynamic-table variable by variable ID, including units, labels, and periods for a BPS domain; defaults to the latest listed period.
Instructions
Fetch values of one BPS dynamic-table variable (var id from nusa_stats_search type=variable) for a domain, with units, labels and periods. Without period it uses the most recent period BPS lists. Requires a free BPS API key.
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": {
"variable_id": "<variable_id>"
},
"name": "nusa_stats_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the human-readable text block: id (Indonesian) or en (English). | id |
| limit | No | ||
| domain | No | BPS domain id. 0000 = national. Overrides region_code. | |
| period_ids | No | BPS th_id values. Default: latest listed period. | |
| region_code | No | Kemendagri code (province or regency used; deeper codes use their regency). | |
| variable_id | Yes |
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 |