BPS Simple API — Indonesian Statistics by Topic
Pricing
from $1.20 / 1,000 api requests
BPS Simple API — Indonesian Statistics by Topic
Simplified FastAPI wrapper for the BPS (Badan Pusat Statistik) official Web API. Topic + Area + Year to Data. Search topics, browse areas, and fetch indicators, trade, census, and publication data as clean JSON.
Pricing
from $1.20 / 1,000 api requests
Rating
0.0
(0)
Developer
RD.Galih Rakasiwi
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 days ago
Last modified
Categories
Security
Full permissionsShare
BPS Simple API
Simplified FastAPI wrapper for the BPS (Badan Pusat Statistik) official Web API — Indonesia's Central Bureau of Statistics. Query Indonesian statistical data with a simple Topic + Area + Year → Data model.
Quick start
# Copy env and fill your BPS API keycp .env.example .env# Install and runpip install -r requirements.txtuvicorn app.main:app --host 0.0.0.0 --port 8000
Then open http://localhost:8000/docs for interactive documentation.
Endpoints
| Endpoint | Description |
|---|---|
/ | API index + quick links |
/health | Health check |
/search?q=... | Keyword search across topics/areas |
/data?topic=...&area=...&year=... | Fetch statistical data |
/area/{name} | Area (province) detail |
/indicator/{name}?area=...&year=... | Indicator data |
/trade | Foreign trade data |
/census | Census data |
/publication | Publications |
Requirements
- A BPS Web API key — request one at https://webapi.bps.go.id (free for government statistical data).
Environment variables
| Variable | Description | Default |
|---|---|---|
BPS_API_KEY | Your BPS Web API key | (empty) |
BPS_BASE_URL | BPS API base URL | https://webapi.bps.go.id/v1 |
APP_PORT | Server port | 8000 |
Deploying to Apify
$apify push
On Apify, provide your BPS API key via the actor input (bpsApiKey).
Related searches
bps api, badan pusat statistik api, indonesia statistics api, bps simple api, statistik indonesia, indonesian census data