Skip to content
Back to skills

querying-indonesian-gov-data

ASecurity

Query 50 Indonesian government APIs and data sources — BPJPH halal certification, BPOM food safety, OJK financial legality, BPS statistics, BMKG weather/earthquakes, Bank Indonesia exchange rates, IDX stocks, CKAN open data portals, pasal.id (third-party law MCP). Use when building apps with Indonesian government data, scraping .go.id websites, checking halal certification, verifying company legality, looking up financial entity status, or connecting to Indonesian MCP servers. Includes ready-...

  • 171 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
datapythongoapifrontend

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add suryast/indonesia-gov-apis --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of querying-indonesian-gov-data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for querying-indonesian-gov-data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/suryast-querying-indonesian-gov-data/badge)](https://www.skillsdirectory.com/skills/suryast-querying-indonesian-gov-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: querying-indonesian-gov-data
description: >
  Query 50 Indonesian government APIs and data sources — BPJPH halal certification,
  BPOM food safety, OJK financial legality, BPS statistics, BMKG weather/earthquakes,
  Bank Indonesia exchange rates, IDX stocks, CKAN open data portals, pasal.id (third-party law MCP).
  Use when building apps with Indonesian government data, scraping .go.id websites,
  checking halal certification, verifying company legality, looking up financial entity
  status, or connecting to Indonesian MCP servers. Includes ready-to-run Python patterns,
  CSRF handling, CKAN API usage, and IP blocking workarounds.
---

# Querying Indonesian Government Data

🇮🇩 STARTER_CHARACTER = 🇮🇩

Route the user's intent to the right child reference, then follow its patterns.

## Router

| User intent | Load reference | Quick pattern |
|------------|---------------|---------------|
| Halal certification, halal product check | [references/bpjph-halal.md](references/bpjph-halal.md) | `POST cmsbl.halal.go.id/api/search/data_penyelia` JSON, no auth |
| Food/drug/cosmetic registration, BPOM | [references/bpom-products.md](references/bpom-products.md) | Session + CSRF → `POST cekbpom.pom.go.id/produk-dt` |
| Is this fintech/investment legal, OJK | [references/ojk-legality.md](references/ojk-legality.md) | `GET sikapiuangmu.ojk.go.id/FrontEnd/AlertPortal/Search` |
| Weather in Indonesia, earthquake, tsunami | [references/bmkg-weather.md](references/bmkg-weather.md) | `GET data.bmkg.go.id/DataMKG/TEWS/autogempa.json` |
| GDP, inflation, population, trade stats | [references/bps-statistics.md](references/bps-statistics.md) | `GET webapi.bps.go.id/v1/api/...` (free API key) |
| USD/IDR exchange rate, BI Rate | [references/bank-indonesia.md](references/bank-indonesia.md) | Scrape `bi.go.id/id/statistik/informasi-kurs/` |
| Indonesian law, regulation, specific pasal | [references/pasal-id-law.md](references/pasal-id-law.md) | MCP (third-party): `claude mcp add --transport http pasal-id ...` |
| Government datasets on any topic | [references/ckan-portals.md](references/ckan-portals.md) | `GET {portal}/api/3/action/package_search` |
| Disaster risk for a location | [references/inarisk-disaster.md](references/inarisk-disaster.md) | `GET inarisk.bnpb.go.id/api/risk/score?lat=&lon=` |
| Verify company is registered | [references/company-verification.md](references/company-verification.md) | OpenCorporates → OCCRP → AHU cross-ref |
| Indonesian stock prices, IHSG | [references/idx-stocks.md](references/idx-stocks.md) | `yfinance` with `.JK` suffix |

## Workflow

1. Match user intent to a row in the Router table above
2. Read the linked reference file for full endpoint docs and code
3. Adapt the pattern with user's specific query/parameters
4. Execute and handle failures per the section below

## Failure Modes

**IP Blocked (403 / Timeout):** Most `.go.id` sites block datacenter IPs. Add 2-5s delays or route through Cloudflare Workers proxy.

**CSRF Expired:** Re-fetch the HTML page, extract fresh `csrf-token` from `<meta>` tag. Applies to BPOM.

**Rate Limits:** BPS ~100/day, OpenCorporates 500/day, OCCRP 60/min, BPOM 2s gap minimum.

**Required Headers:**
```python
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
    "Accept-Language": "id-ID,id;q=0.9,en;q=0.8",
}
```

**Data Formats:** Indonesian gov sites use Excel (.xlsx) and PDF heavily. Parse with `openpyxl` and `pdfplumber`. JSON APIs are the exception.

## Extended Docs

For sources not in the Router (procurement, courts, wealth declarations, geospatial, regional portals, ministry-specific data), see the full docs:
- `apis/tier1-open-apis/` — 12 sources with REST/JSON APIs
- `apis/tier2-scrapeable/` — 10 sources requiring scraping
- `apis/tier3-regional/` — 6 regional CKAN portals
- `apis/tier4-ministry/` through `apis/tier7-civil-society/` — 22 more sources
- `mcp-servers/` — MCP server setup and opportunities

Files in this skill

  • AGENTS.md1.2 KB
  • SKILL.md3.9 KB
  • examples/bi_exchange.py1 KB
  • examples/bps_inflation.py1.1 KB
  • examples/check_ojk.py1.2 KB
  • examples/search_halal.py1 KB
  • mcp-servers/README.md2.6 KB
  • public/og-preview.png56.7 KB
  • references/bank-indonesia.md1.3 KB
  • references/bmkg-weather.md1.8 KB
  • references/bpjph-halal.md1.7 KB
  • references/bpom-products.md4.1 KB
  • references/bps-statistics.md1.5 KB
  • references/ckan-portals.md2 KB
  • references/company-verification.md1.9 KB
  • references/idx-stocks.md1.3 KB
  • references/inarisk-disaster.md993 B
  • references/ojk-legality.md1.9 KB
  • references/pasal-id-law.md1.3 KB
  • scripts/generate-preview.tsx6.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.