BPS Statistics Indonesia
Domains, subjects, variables and dynamic data, static tables, strategic indicators, export/import, press releases, publications, search, glossary and KBLI/KBKI (free API key)
Beta v0.1.0 Node.js 22 actions
About
A Graphrt plugin for the BPS Web API of Badan Pusat Statistik (Statistics Indonesia): official statistics of Indonesia, its provinces and its regencies/cities. It is built with the declarative REST layer (definition.mjs). Every operation is a read.
What it can do
- Domains and subjects: list_domains (national 0000, provinces, regencies/cities), list_subject_categories, list_subjects
- Dynamic data: list_variables, list_vertical_variables, list_derived_variables, list_periods, list_derived_periods, list_units, get_dynamic_data
- Tables and indicators: list_static_tables, get_static_table (HTML table), list_strategic_indicators, get_foreign_trade (export/import by HS code, port and country)
- Content: list_press_releases, get_press_release, list_publications, get_publication, search_content
- Reference: list_glossary, list_classifications (KBLI 2009/2015/2017/2020, KBKI 2015)
- api_request: any other GET endpoint, e.g. /v1/api/list/model/infographic/domain/0000 (leave out the /key/... segment: the key is added as ?key=)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- List BPS domains
bps.list_domains - List subject categories
bps.list_subject_categories - List subjects
bps.list_subjects - List variables
bps.list_variables - List vertical variables
bps.list_vertical_variables - List derived variables
bps.list_derived_variables - List periods
bps.list_periods - List derived periods
bps.list_derived_periods - List units
bps.list_units - Get dynamic data
bps.get_dynamic_data
Show all 22 actions
- List static tables
bps.list_static_tables - Get static table
bps.get_static_table - List strategic indicators
bps.list_strategic_indicators - Get export/import data
bps.get_foreign_trade - List press releases
bps.list_press_releases - Get press release
bps.get_press_release - List publications
bps.list_publications - Get publication
bps.get_publication - Search content
bps.search_content - List glossary
bps.list_glossary - List classifications
bps.list_classifications - BPS Web API request
bps.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
BPS_API_KEYRequiredWeb API key (sent as the key query parameter, redacted from every error and result)
How to use it
In Graphrt Desktop
- Open Plugins and search for BPS Statistics Indonesia.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install bps workflow.yaml
- id: periods
type: bps.list_periods
domain: "0000"
variable: 145
- id: values
type: bps.get_dynamic_data
domain: "0000"
variable: 145
periods: "{{#periods.data.0.th_id#}}"
lang: eng