ready-to-use endpoints in this product, with JSON responses and consistent error handling.
World geography reference category: 252 countries with ISO2/ISO3 codes, capital, currency, languages, calling code and population; 69,991 cities (cities5000: population above 5,000 or an administrative seat) with coordinates, first-level division, population and time zone; nearest-city search from a coordinate; and 418 IANA time zones with GMT/DST offsets and the current local time. The data is the official GeoNames dump, licensed CC BY 4.0, so it may be used commercially as long as the attribution is kept.
Data as of · Source: GeoNames dump
World geography reference category: 252 countries with ISO2/ISO3 codes, capital, currency, languages, calling code and population; 69,991 cities (cities5000: population above 5,000 or an administrative seat) with coordinates, first-level division, population and time zone; nearest-city search from a coordinate; and 418 IANA time zones with GMT/DST offsets and the current local time. The data is the official GeoNames dump, licensed CC BY 4.0, so it may be used commercially as long as the attribution is kept.
Data source: GeoNames (https://www.geonames.org), the daily dump at https://download.geonames.org/export/dump/ (countryInfo.txt, cities5000.zip, admin1CodesASCII.txt, timeZones.txt), licensed under Creative Commons Attribution 4.0 International (CC BY 4.0) per the dump readme.txt. Every successful response carries meta.attribution with the GeoNames credit and link, the licence name and link, a link to the source files and the statement of changes, so you only need to pass that object through in any redistribution. What API Indonesia changed: the dump files were normalised to JSON, first-level division names were joined onto the cities, the alternatenames column and the alternateNamesV2 file are not included, and the local time on the time zone endpoint is computed by API Indonesia. The GeoNames web services and the Zillow data are not used.
ready-to-use endpoints in this product, with JSON responses and consistent error handling.
Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.
https://use.apiindonesia.id/api/v1/geo/negaraReturns the 252 countries and territories in GeoNames countryInfo, ordered by name: ISO2, ISO3, numeric code, capital, continent, area, population, currency, calling code (without +), languages, TLD, postal code format and neighbours.
This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.
curl "https://use.apiindonesia.id/api/v1/geo/negara?q=indo" \
-H "x-api-key: YOUR_API_KEY"{
"success": true,
"data": [
{ "iso2": "ID", "iso3": "IDN", "iso_numeric": "360", "fips": "ID", "name": "Indonesia", "capital": "Jakarta", "continent": "AS", "area_km2": 1919440, "population": 285721236, "currency": { "code": "IDR", "name": "Rupiah" }, "phone_code": "62", "languages": ["id", "en", "nl", "jv"], "tld": ".id", "postal_code_format": "#####", "postal_code_regex": "^(\\d{5})$", "neighbours": ["PG", "TL", "MY"], "geonameid": 1643084 }
],
"meta": {
"total": 1, "page": 1, "per_page": 50, "total_pages": 1,
"attribution": {
"source": "GeoNames (https://www.geonames.org)",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"source_url": "https://download.geonames.org/export/dump/",
"attribution_page": "https://www.geonames.org",
"notice": "Data diubah: subset cities5000, countryInfo, admin1 dan timeZones dinormalisasi ke format JSON API Indonesia; waktu lokal dihitung oleh API Indonesia"
}
}
}91.241 batas wilayah Indonesia dalam format GeoJSON: 38 provinsi, 514 kabupaten/kota, 7.285 kecamatan, dan 83.404 desa. Lengkap dengan tutorial peta Leaflet dan cek titik dengan turf.js.
Cara mengambil data prakiraan cuaca BMKG per kelurahan (adm4) menggunakan API Cuaca Indonesia, lengkap dengan suhu, kelembapan, kecepatan angin, dan contoh kode.
From the official GeoNames dump (download.geonames.org/export/dump), licensed CC BY 4.0. The GeoNames web services are not used.
The cities5000 file: populated places above 5,000 people or administrative seats, 69,991 cities in total including 485 in Indonesia.
Yes, the local time and current offset are computed on every request and are not cached. The GeoNames file offsets are included for reference.