API Indonesia

API Indonesia

Indonesian public data: regions down to 83,000+ villages with postal codes, schools, hospitals, minimum wages, DJKI trademarks. Paid per request

Data & analytics#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Indonesian public data: regions down to 83,000+ villages with postal codes, schools, hospitals, minimum wages, DJKI trademarks. Paid per request

Endpoints 172

dataset-metadata

  • GETList dataset metadata/api/v1/meta/datasetsReturns metadata for every registered dataset. This endpoint does not require an API key.
  • GETRetrieve dataset metadata/api/v1/meta/datasets/:datasetReturns snapshot and provenance metadata for one dataset.

wilayah

  • GETList provinces/api/v1/wilayah/provinsiReturns a list of all provinces in Indonesia.
  • GETRetrieve a province/api/v1/wilayah/provinsi/:idReturns a single province by its region code.
  • GETList regencies/cities in a province/api/v1/wilayah/provinsi/:id/kabupatenNested alias for listing regencies/cities by province code.
  • GETList regencies/cities/api/v1/wilayah/kabupatenReturns a list of regencies and cities, optionally filtered by province.
  • GETRetrieve a regency/city/api/v1/wilayah/kabupaten/:idReturns a single regency/city by its region code.
  • GETList districts in a regency/city/api/v1/wilayah/kabupaten/:id/kecamatanNested alias for listing districts by regency/city code.
  • GETList districts/api/v1/wilayah/kecamatanReturns a list of districts, optionally filtered by regency/city.
  • GETRetrieve a district/api/v1/wilayah/kecamatan/:idReturns a single district by its region code.
  • GETList villages in a district/api/v1/wilayah/kecamatan/:id/kelurahanNested alias for listing villages and customary villages by district code.
  • GETList villages/api/v1/wilayah/kelurahanReturns a list of villages complete with postal codes, optionally filtered by district.
  • GETRetrieve a village/api/v1/wilayah/kelurahan/:idReturns a single village by its region code.
  • GETSearch regions/api/v1/wilayah/search?q=bandungSearches region names across all levels at once (province, regency, district, village). The level field indicates the region level of each result.

hari-libur

  • GETList public holidays/api/v1/liburReturns a list of public holidays, sorted by date. Can be filtered by year and month.
  • GETUpcoming holidays/api/v1/libur/upcomingReturns up to 10 upcoming public holidays, counted from today.
  • GETRetrieve a holiday/api/v1/libur/:idReturns a single public holiday by ID.

jadwal-sholat

  • GETList available cities/api/v1/sholat/list-kotaReturns the regencies/cities that have prayer time data. Use the regency_id from this response with the schedule endpoints.
  • GETDaily prayer times/api/v1/sholat?kabupaten_id=3273Returns one day of prayer times for a given regency/city.
  • GETMonthly prayer times/api/v1/sholat/monthly?kabupaten_id=3273&tahun=2026&bulan=7Returns a full month of prayer times for a given regency/city, sorted by date.

sekolah

  • GETList schools/api/v1/sekolahReturns a paginated list of schools with name/NPSN search plus region, level, status, and accreditation filters.
  • GETSearch schools/api/v1/sekolah/search?q=tarunaSearches schools by name. Returns up to 50 results.
  • GETRetrieve a school/api/v1/sekolah/:npsnReturns a single school by NPSN, including province, regency/city, district, and village names.

kampus

  • GETList universities/api/v1/kampusReturns a paginated, filterable list of higher-education institutions, including province and regency/city names.
  • GETSearch universities/api/v1/kampus/search?q=itbSearches institutions by name or abbreviation. Returns up to 50 results.
  • GETRetrieve a university/api/v1/kampus/:idReturns a single institution by ID, including province and regency/city names.

rumah-sakit

  • GETList hospitals/api/v1/rumah-sakitCompact list with name/code search and region, type, class, ownership, and BLU filters. Use the detail endpoint for service, staff, bed, and facility…
  • GETSearch hospitals/api/v1/rumah-sakit/searchSearches hospitals by name/code with the same filters as the list endpoint. Returns up to 50 results.
  • GETRetrieve a hospital/api/v1/rumah-sakit/:idReturns a full profile by internal ID or SIRS code, including available bed, service, staff, facility, provenance, and synchronization details.

gempa

  • GETLatest earthquakes/api/v1/gempa/terkiniReturns the 15 most recent earthquakes, newest first.
  • GETFelt earthquakes/api/v1/gempa/dirasakanReturns the 15 most recent felt earthquakes (BMKG term for quakes reported felt by the public), complete with the MMI scale per area.
  • GETEarthquake history/api/v1/gempa/history?start=2026-06-01&end=2026-06-30Returns earthquakes within a given date range, up to 100 records, newest first.

cuaca

  • GETVillage weather forecast/api/v1/cuacaReturns a 3-day weather forecast for a single village. Choose between adm4 (village code) or kabupaten_id to fetch a representative forecast for the regency.
  • GETSearch forecast location/api/v1/cuaca/search?q=bandungSearches for villages or cities that have weather forecast data by name. Returns a list of adm4 codes usable in the main endpoint.

peringatan-dini

  • GETList weather warnings/api/v1/peringatan-diniReturns all currently active weather warnings. Can be filtered by province name.

kodepos

  • GETList postal codes/api/v1/kodeposReturns paginated postal codes with explicit Kemendagri administrative codes. BPS code fields and filters are available for 96% of records (official SIG BPS…
  • GETCross-system code lookup/api/v1/kodepos/lookupExact lookup by postal or Kemendagri code. At least one filter is required. Lookup by BPS code also works for the roughly 96% of records that have a BPS…
  • GETSearch postal codes/api/v1/kodepos/search?q=40151Searches postal codes by village name or postal code number.
  • GETRetrieve a postal code/api/v1/kodepos/:idReturns a single postal code entry by ID.

kurs

  • GETLatest exchange rate/api/v1/kurs/latestReturns the latest exchange rate for a given currency pair.
  • GETHistorical exchange rates/api/v1/kurs/history?start=2026-06-01&end=2026-06-30Returns historical exchange rates for a given date range.

quran

  • GETList surah/api/v1/quran/list-surahReturns the complete list of 114 Al-Quran surahs, ordered by number.
  • GETRetrieve a surah/api/v1/quran/surah/:idReturns the metadata of a single surah by number (1–114).

alkitab

  • GETList books/api/v1/alkitab/booksReturns all 66 Bible books with chapter counts and testament classification (OT/NT).
  • GETList books by testament/api/v1/alkitab/books/:testamentFilter books by testament: PL (Old Testament) or PB (New Testament).
  • GETRead a chapter/api/v1/alkitab/passage/:bookAbbr/:chapterReturns all verses in a chapter. Use book abbreviation (e.g. Gen, John, Ps) or full name.
  • GETRead a single verse/api/v1/alkitab/verse/:bookAbbr/:chapter/:verseReturns a single verse by book, chapter, and verse number.
  • GETSearch verses/api/v1/alkitab/search?q=ImanuelSearch for a word or phrase across all 31,104 Bible verses. Supports pagination via limit and offset.

kbbi

  • GETSearch words/api/v1/kbbi/search?q=rumahSearch KBBI dictionary by keyword. Supports pagination.
  • GETLook up a word/api/v1/kbbi/word/:wordReturns all KBBI entries for a specific word (some words have multiple entries).
  • GETRandom words/api/v1/kbbi/randomReturns random words from KBBI. Useful for games or learning apps.

plat-nomor

  • GETList vehicle plates/api/v1/platesReturns all 61 vehicle plate codes, sorted by code.
  • GETRetrieve a plate code/api/v1/plates/:codeReturns details for a single plate code.

ump

  • GETList UMP (latest first)/api/v1/umpAll provincial minimum wage records. Use query params to filter.
  • GETUMP per province (all years)/api/v1/ump/:province_codeAll UMP records for one province, sorted by latest year.
  • GETUMP province × year/api/v1/ump/:province_code/:yearA single UMP record for a specific province and year.

validasi

  • GETList banks/api/v1/validasi/bankReturns bank codes with valid account number lengths.
  • POSTValidate NIK/api/v1/validasi/nikChecks 16-digit NIK format and extracts region/birth date codes. Not Dukcapil verification.
  • POSTValidate NPWP/api/v1/validasi/npwpChecks 15-digit NPWP format. Not DJP verification.

util

  • POSTFormat Rupiah/api/v1/util/rupiah/formatFormats a number as Indonesian Rupiah string.
  • POSTParse QRIS/api/v1/util/qris/parseDecodes a QRIS EMVCo payload string.
  • POSTParse Rupiah/api/v1/util/rupiah/parseParses Rupiah text into a number.
  • POSTSpell out Rupiah/api/v1/util/rupiah/terbilangSpells out an IDR amount.
  • POSTGenerate dummy NIK/api/v1/util/dummy/nikSynthetic test data, not official verification.
  • POSTGenerate dummy NPWP/api/v1/util/dummy/npwpSynthetic test data, not official verification.
  • POSTGenerate dummy TELEPON/api/v1/util/dummy/teleponSynthetic test data, not official verification.
  • POSTConvert to dynamic QRIS/api/v1/util/qris/to-dynamicAdds an amount to static QRIS and recalculates CRC.

kurs-bi

  • GETLatest rates/api/v1/kurs-bi/latestLatest transaction rates for USD/EUR/SGD (default) or other currencies.
  • GETRate history/api/v1/kurs-bi/history?start=2026-07-01&end=2026-07-09Daily rate history for one currency (max 366 days).

halal

  • GETSearch halal/api/v1/halal?q=indomieSearch by business or supervisor name.
  • GETSupervisor detail/api/v1/halal/:idGet one record by id_penyelia UUID.

bpom

  • GETSearch products/api/v1/bpom?q=paracetamolSearch registered medicine/traditional/cosmetic products.
  • GETNIE detail/api/v1/bpom/:nieGet product by NIE (registration number).

hijriah

  • GETConvert date/api/v1/hijriah/konversi?tanggal=2026-07-11Convert one Gregorian date to Hijri.
  • GETYear calendar/api/v1/hijriah/kalender?tahun=2026Full date mapping for one Gregorian year (currently 2026).

akun

  • POSTRegister/auth/registerCreates a new account. This endpoint is protected by Turnstile; use a token from the dashboard. The first API key is generated automatically and returned once…
  • POSTLog in/auth/loginExchanges an email and password for a JWT token. This endpoint is protected by Turnstile; use a token from the dashboard.
  • GETGet current user/auth/meReturns the profile of the currently authenticated user based on the JWT token.

api-keys

  • GETList API keys/user/keysReturns all API keys owned by the user. The full key is never shown again — only its prefix.
  • POSTCreate an API key/user/keysCreates a new API key. The api_key field is returned only once in this response and cannot be retrieved again.
  • DELETERevoke an API key/user/keys/:idPermanently revokes an API key. Revoked keys are rejected immediately on all endpoints.
  • GETUsage statistics/user/usageReturns monthly, per-product API usage summaries across all of the user's keys.

ojk-invest

  • GETList legal investment products/api/v1/ojk/productsReturns a list of legal mutual fund products registered with OJK. Supports pagination and name search.
  • GETInvestment product detail/api/v1/ojk/products/:idReturns details of a single mutual fund product by ID.
  • GETList legal investment apps/api/v1/ojk/appsReturns a list of legal investment apps registered with OJK. Supports pagination and name search.
  • GETInvestment app detail/api/v1/ojk/apps/:idReturns details of a single investment app by ID.
  • GETList illegal investments/api/v1/ojk/illegalsReturns a list of illegal investments flagged by OJK. Each entry may include aliases, addresses, phone numbers, emails, websites, entity type, activity types,…
  • GETIllegal investment detail/api/v1/ojk/illegals/:idReturns details of a single illegal investment by ID.

billing

  • GETPlan list/billing/plansReturns available plans, monthly/yearly pricing, monthly credit quotas, and rate limits, plus the pay-as-you-go credit packs. The Free plan has no monthly…
  • POSTStart checkout/billing/subscribeCreates a pending subscription and generates a Sumopod payment link. Redirect the user to redirect_url to complete the payment. Plan credits are granted once…
  • GETSubscription status/billing/statusReturns the user's most recent subscription. Returns 404 if the user has never subscribed.
  • POSTSumopod webhook/billing/webhookPayment notification endpoint called by Sumopod (not meant to be called directly). Register this URL as the webhook URL in the Sumopod dashboard Requests are…
  • POSTBuy credits (pay as you go)/billing/topupBuys a one-off credit package without a subscription. One credit equals Rp1, so the Rp59,000 pack grants 59,000 credits. Credits do not expire and are added…
  • GETCredit balance/billing/creditsReturns the credit balance, the per-product prices, and the 50 most recent ledger entries from public data products. One credit equals Rp1: a successful…

astronomi

  • GETSunrise & sunset/api/v1/astronomi/sun?lat=-6.2&lon=106.8Returns sunrise, sunset, solar noon, and day length for a given lat/lon and date. Handles polar night / midnight sun.
  • GETTwilight times/api/v1/astronomi/twilight?lat=-6.2&lon=106.8Returns civil, nautical, and astronomical twilight boundaries for photography/observation.
  • GETMoon phase/api/v1/astronomi/moonReturns the moon phase (illumination, phase name, age, distance) for a given date.
  • GETUpcoming moon phases/api/v1/astronomi/moon/nextReturns the next major moon phases (new/first quarter/full/last quarter), up to 12 ahead.
  • GETEclipse predictions/api/v1/astronomi/gerhanaReturns upcoming solar & lunar eclipses (approximation based on saros/draconic cycles). Dates & kinds are indicative.

merek

  • GETSearch registered trademarks/api/v1/merek/search?q=garudaReturns registered trademarks matching a keyword. Search covers the mark-name column; use optional parameters to filter by owner, NICE class, or search within…
  • GETTrademark detail/api/v1/merek/:appNumberReturns details of a single trademark by application number. If the number only appears in the publication journal (not yet registered), the response still…
  • GETSearch the trademark journal/api/v1/merek/journalReturns trademark applications published in the DJKI Berita Resmi Merek journal. Coverage is a rolling window of recent editions (roughly twice a month, last…

wilayah-boundary

  • GETList boundaries/api/v1/wilayah-boundaryActive boundary metadata.
  • GETBoundary metadata/api/v1/wilayah-boundary/:code/metadataSource, license, GeoJSON URL.
  • GETBoundary GeoJSON/api/v1/wilayah-boundary/:codeGeoJSON application/geo+json; X-Data-* headers carry source, version, license and attribution. Illustrative geometry.

kualitas-udara

  • GETToday cached readings/api/v1/kualitas-udaraList may be empty.
  • GETLatest city reading/api/v1/kualitas-udara/:citySubstring city lookup; 404 when absent.

harga-pangan

  • GETFood-price series overview/api/v1/harga-panganReturns a summary of every series (consumer/producer level x national/province region): commodity count, row count, and the available month range.
  • GETMonthly food prices/api/v1/harga-pangan/hargaReturns monthly average food prices, filterable by level, region, commodity, province, and month range. Prices are integers in rupiah; "-" in the source…
  • GETFood-price anomaly index/api/v1/harga-pangan/anomaliStrategic commodity price-anomaly indices (QIPA, AIPA, IFPA) with status Alert (Low/High Price) or Normal. From National Food Agency monthly releases (check…

transjakarta

  • GETList routes/api/v1/transjakarta/ruteReturns the 240 Transjakarta routes. Short and long names Service description (BRT, integrated public transport, Mikrotrans, Transjabodetabek, tour bus) GTFS…
  • GETRetrieve a route/api/v1/transjakarta/rute/:idOne route in full. The fares that apply to it (from fare_rules) Its departure headways (per trip) The halte list of both directions: "ke" for direction_id 0…
  • GETList halte/api/v1/transjakarta/halteReturns the 8,091 Transjakarta halte with code, name, coordinates, and GTFS stop type. The q filter partially matches name, code, or halte ID.
  • GETNearest halte/api/v1/transjakarta/halte/nearby?lat=-6.172531&lng=106.82315Finds the halte around a coordinate, nearest first, with the distance in metres (distance_m). A bounding box is applied first and the exact great-circle…
  • GETRetrieve a halte/api/v1/transjakarta/halte/:idOne halte plus the routes that call there, one row per route and direction pair (direction_id). A halte served in both directions appears twice, and a tourist…
  • GETList fares/api/v1/transjakarta/tarifThe six GTFS fares with their rupiah prices. FP: Rp3,500, the flat Transjakarta fare GR: Rp0, free on selected routes PP: Rp20,000, plus PP2/PP3 for airport…
  • GETDeparture headways/api/v1/transjakarta/jadwalDeparture frequencies from GTFS frequencies.txt. One row per trip serving that route, with the operating window and the headway in seconds (900 seconds means…

poi

  • GETSearch & list POI/api/v1/poiPOI list ordered by name. The q filter matches the START of the name, case-insensitively (q=masjid matches "Masjid Istiqlal", q=istiqlal does not) category…
  • GETNearest POI/api/v1/poi/nearby?lat=-6.1753924&lon=106.8271528POI around a coordinate, nearest first, with the distance in metres (distance_m). Optionally filtered by category and minimum confidence (min_confidence)…
  • GETList categories/api/v1/poi/categoriesEvery Overture category present in the Indonesian data (1,250 categories), most POI first, with basic_category, taxonomy hierarchy and POI count. The q filter…
  • GETRetrieve a POI/api/v1/poi/:idOne POI by its Overture ID (GERS ID, stable across releases). An unknown ID answers 404 NOT_FOUND.

ip-geolocation

  • GETLook up an IP address/api/v1/ip/:ipDetails for one IP address. Country (ISO 3166-1 alpha-2 code), continent code, region, city, latitude/longitude The ASN with its organisation name, and the…
  • GETLook up the caller's IP/api/v1/ip/meSame as /ip/{ip}, for the address that called the API (the CF-Connecting-IP header). The answer still comes from the DB-IP tables, not from Cloudflare's own…
  • POSTLook up many IP addresses/api/v1/ip/batchUp to 100 addresses in one call, answered in input order. An invalid or uncovered address gets a per-item error object instead of failing the whole call…

lei

  • GETSearch legal entities/api/v1/leiSearches the 1,644 entities with an Indonesian legal or headquarters address (golden copy snapshot of 1 November 2026). q matches the legal name and…
  • GETRetrieve an LEI/api/v1/lei/:leiOne entity in full. Legal and headquarters addresses Registration number (registration_authority.id from the GLEIF authority list + entity_id) Registration…
  • GETList children/api/v1/lei/:lei/childrenEntities that report this LEI as their direct parent (type=direct, the default), ultimate parent (type=ultimate), or either (type=all). For a parent abroad,…

geo

  • GETList countries/api/v1/geo/negaraReturns the 252 countries and territories in GeoNames countryInfo, ordered by name: ISO2, ISO3, numeric code, capital, continent, area, population, currency,…
  • GETRetrieve a country/api/v1/geo/negara/:codeOne country by ISO2 or ISO3 code (case-insensitive), with its time zones and the number of its cities in the cities5000 data. An unknown code answers 404…
  • GETSearch cities/api/v1/geo/kotaCities from GeoNames cities5000, largest population first. q matches the PREFIX of the name or ASCII name, case-insensitively ("sao" finds São Paulo);…
  • GETNearest cities/api/v1/geo/kota/nearby?lat=-0.0263&lon=109.3425Cities around a coordinate, nearest first, with the great-circle distance in kilometres (distance_km). Radius defaults to 50 km (maximum 500) and limit to 20…
  • GETRetrieve a city/api/v1/geo/kota/:geonameidOne city by geonameid, with the country name, elevation, DEM, GeoNames modification date and its time zone offsets. An unknown id answers 404 NOT_FOUND.
  • GETList time zones/api/v1/geo/zona-waktuAll 418 time zones in GeoNames timeZones.txt (or one country with country), with the GMT offset on 1 January, the DST offset on 1 July of the same year…
  • GETTime zone with local time/api/v1/geo/zona-waktu/:tzOne IANA time zone with the GeoNames offsets and the CURRENT local time, computed per request from the runtime IANA data (not cached): local_time, utc_offset…

tol

  • GETList toll roads/api/v1/tol/ruasReturns the 77 toll roads in the BPJT list with operator (BUJT), status (operasi or operasi sebagian), total and operating length, provinces, operating decree…
  • GETRetrieve a toll road/api/v1/tol/ruas/:idOne toll road with its history (sejarah: operating decree and PPJT from BPJT, plus the Wikipedia opening date when available), its sources, every toll gate on…
  • GETList toll gates/api/v1/tol/gerbangReturns the 558 toll gates with coordinates, toll road, province, regency/city, operator and validation status. Filters can be combined.
  • GETNearest toll gates/api/v1/tol/gerbang/nearby?lat=-6.2&lng=106.8Finds the toll gates around a coordinate, nearest first, with the distance in metres (distance_m). Radius defaults to 10,000 metres (maximum 50,000) and limit…
  • GETRetrieve a toll gate/api/v1/tol/gerbang/:idOne gate with its validation details: number of merged OSM points, distance to the OSM toll carriageway (jarak_ke_tol_m), validation notes (checks passed and…
  • GETToll tariffs/api/v1/tol/tarifReturns the 1,485 tariff rows from the BPJT "Data Tarif Jalan Tol" sheet: origin, destination and the rupiah tariff for classes I, II-III and IV-V (classes II…

bandara

  • GETList airports/api/v1/bandaraReturns the 440 airports with ICAO/IATA codes, region, coordinates, elevation, size, scheduled service, international status and validation status. Filters…
  • GETNearest airports/api/v1/bandara/nearby?lat=-0.03&lng=109.33Finds airports around a coordinate, nearest first, with the distance in metres (distance_m). Radius defaults to 50,000 metres (maximum 300,000) and limit to 5…
  • GETRetrieve an airport/api/v1/bandara/:kodeOne airport by ICAO code, IATA code or id, with its runways (direction, length, width, surface), operator when available, Wikidata ID, validation notes…

pelabuhan

  • GETList ports/api/v1/pelabuhanReturns the 1,082 sea and ferry ports with hierarchy or class, region, UN/LOCODE, coordinates when validated and validation status. Filters can be combined.
  • GETNearest ports/api/v1/pelabuhan/nearby?lat=-5.93&lng=105.99Finds ports with coordinates around a coordinate, nearest first, with the distance in metres (distance_m). Radius defaults to 25,000 metres (maximum 200,000)…
  • GETRetrieve a port/api/v1/pelabuhan/:idOne port by id or UN/LOCODE, with its 2017/2027/2037 hierarchy, World Port Index details when available, validation notes, coordinate source and legal basis.…

terminal

  • GETList bus terminals/api/v1/terminalReturns the 614 bus terminals with type (A or null), managing BPTD for type A, region, coordinates when validated and validation status. Filters can be…
  • GETNearest terminals/api/v1/terminal/nearby?lat=-6.2125&lng=106.9525Finds terminals with coordinates around a coordinate, nearest first, with the distance in metres (distance_m). Radius defaults to 10,000 metres (maximum…
  • GETRetrieve a terminal/api/v1/terminal/:idOne terminal with address (when available), Wikidata ID, validation notes, coordinate source and legal basis. An unknown terminal answers 404 NOT_FOUND.

stasiun

  • GETList stations/api/v1/stasiunReturns the 1,129 stations with code, type, operator, Daop/Divre, status, region, coordinates and validation status. The jenis filter also matches services,…
  • GETNearest stations/api/v1/stasiun/nearby?lat=-6.1767&lng=106.8306Finds stations around a coordinate, nearest first, with the distance in metres (distance_m). Only active stations by default; status=semua includes inactive…
  • GETRetrieve a station/api/v1/stasiun/:kodeOne station by KAI station code or ID, with its service list, elevation, Wikidata ID, validation notes and coordinate source. When a code is shared by more…

umk

  • GETList UMK by regency/city/api/v1/umkReturns regency and city minimum wages for the requested year, defaulting to the latest year in the dataset. Province filter, name search and value sort can…
  • GETRetrieve one regency/city UMK/api/v1/umk/:kodeReturns the latest wage for one regency/city code, with the validation note and the history of earlier years (empty when only one year exists). A region that…

beasiswa

  • GETList scholarships/api/v1/beasiswaReturns active scholarship programs, open ones first (closing soonest) then upcoming ones. All filters can be combined; the total is in meta.total.
  • GETRetrieve one scholarship/api/v1/beasiswa/:slugReturns one program in full: funding coverage, key requirements, every recorded registration window, the yearly schedule pattern, sources and validation notes.

hs

  • GETList BTKI chapters/api/v1/hs/babReturns the 99 BTKI chapters with their section, Indonesian and English descriptions and the number of tariff lines per chapter. Useful for building…
  • GETList HS codes/api/v1/hsReturns eight-digit HS codes with their description, heading, chapter and MFN duty. q accepts a 2 to 8 digit code (dots ignored) or words from the…
  • GETRetrieve one HS code/api/v1/hs/:kodeReturns one HS code with its MFN duty, the validation note and its chapter detail. The code may be written with dots (8517.13.00) or without; an unknown code…

energi

  • GETElectricity tariffs in force/api/v1/energi/tarif-listrikReturns electricity tariffs in force on a date (default today, WIB), one row per class and power limit. The golongan filter matches partially; kategori…
  • GETElectricity tariff history for one class/api/v1/energi/tarif-listrik/riwayatReturns every tariff period for one class, ordered by class, power limit and period start. The golongan parameter is required; an unknown class answers 404.
  • GETSubsidised fuel prices in force/api/v1/energi/bbmReturns subsidised and assigned fuel prices in force on a date (default today, WIB), ordered by product, with the unit, the selling area and the legal basis.
  • GETFuel price history/api/v1/energi/bbm/riwayatReturns every fuel price period, or a single product when produk is given (partial match, e.g. pertalite), ordered by product then start date.

fasilitas

  • GETCategories and facility counts/api/v1/fasilitas/kategoriReturns the six categories with their facility counts and subcategory breakdown. Useful for building a filter menu before calling the list endpoint.
  • GETList facilities/api/v1/fasilitasReturns facilities matching the filters, ordered by name. At least one of kategori, provinsi, kabupaten or q is required; without a filter the answer is 400,…
  • GETNearest facilities/api/v1/fasilitas/nearbyFinds facilities around a coordinate, nearest first, with the distance in metres (distance_m). Radius defaults to 2,000 metres (maximum 50,000) and limit to…
  • GETRetrieve one facility/api/v1/fasilitas/:idReturns one facility with its category-specific attributes, the OpenStreetMap and Wikidata ids, and the validation notes. An unknown id answers 404.

image-upscale

  • POSTUpscale 2x (up to 4 MP output)/api/v1/image/upscale/2xUpscales an image 2x, accepting up to 1 MP of input and returning at most 4 MP. Costs 250 credits per job. A failed job is refunded in full, and an account…
  • POSTUpscale 4x (up to 16 MP output)/api/v1/image/upscale/4xUpscales an image 4x, accepting up to 1 MP of input and returning at most 16 MP. Costs 1,000 credits per job. This tier requires an account that has topped up…
  • POSTUpscale 8x (up to 64 MP output)/api/v1/image/upscale/8xUpscales an image 8x, accepting up to 1 MP of input and returning at most 64 MP. Costs 4,000 credits per job, and this tier also requires an account that has…
  • GETJob status/api/v1/image/jobs/:idReturns the job status (pending, succeeded, or failed) with the result resolution, the failure reason, and the download expiry. This endpoint is free: polling…
  • GETDownload the result/api/v1/image/jobs/:id/fileStreams the result file from the processing CDN to your client. Free, only reachable by the account that owns the job Only until download_expires_at (1 hour…

API details

Base URL
https://use.apiindonesia.id
Authentication
An API key in the x-api-key header
A bearer token in the Authorization header
Operations
172 operations on 171 pathsGET 151POST 20DELETE 1
Main resources
wilayah 12util 8geo 7transjakarta 7billing 6ojk-invest 6tol 6alkitab 5astronomi 5image-upscale 5
Response formats
application/json image/png
Description format
OpenAPI 3.1.0, API version 1.0.0

How to test the API Indonesia in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the API Indonesia collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the x-api-key header. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “List dataset metadata” (GET /api/v1/meta/datasets), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the API Indonesia?

Indonesian public data: regions down to 83,000+ villages with postal codes, schools, hospitals, minimum wages, DJKI trademarks. Paid per request It is listed under Data & analytics and has 172 endpoints.

Who publishes the API Indonesia?

It is listed from API Indonesia's public API description (an OpenAPI document), not published by API Indonesia on Swastik Codes. Anyone who controls apiindonesia.id can claim the profile by adding a DNS TXT record.

What is the base URL of the API Indonesia?

Requests go to https://use.apiindonesia.id. Endpoint paths are added to this base URL.

How do I authenticate with the API Indonesia?

It accepts 2 methods: an API key in the x-api-key header; A bearer token in the Authorization header.

How many endpoints does the API Indonesia have?

172 operations on 171 paths (151 GET, 20 POST, 1 DELETE). The largest groups are wilayah, util, geo, transjakarta.

Is forking the API Indonesia free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.