GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing placedb.org — placedb: free country, state and city API, public domain The dataset
1,697,155 settlements.
|
| Source | Licence | Attaches |
|---|---|---|
| placedb Nothing travels with it. Ship it in a product, a paper, or a competitor. | CC0-1.0 | Nothing |
| GeoNames Credit must appear wherever the data does, including inside your app. | CC BY 4.0 | |
| Anything OpenStreetMap-derived Credit, and a derived database you distribute has to carry the same terms. | ODbL 1.0 |
A courtesy link is welcome and is not a condition. Nothing in CC0 requires it.
How it is served
The dataset changes about once a month, so the answers are files. They sit in object storage behind a CDN with nothing computing in front of them. That is why there is no key to ask for and no bill to send.
/v1/countries.json
Every country, with codes, currency, calling code and counts.
/v1/regions/<CC>.json
The administrative divisions of one country.
/v1/cities/<CC>/<admin1>.json
Every settlement inside one division. The complete list, always.
/v1/ac/<CC>/<prefix>.json
An autocomplete bucket. Ask for the prefix you have, go one character
deeper while the answer says it is incomplete.
A whole division, in one request
$ curl -s https://api.placedb.org/v1/regions/IS.json
{"country":"IS","regions":[{"id":203304,"iso_3166_2":"IS-1",
"lat":64.2,"lon":-21.7,"name":"Capital Region","population":233034,
"settlements":19,"slug":"capital-region"},{"id":220663,
"iso_3166_2":"IS-7","lat":65.283333,"lon":-14.3833…
Checkable
Each file carries release and s_version,
and the index
(3.9 MB) holds a sha256 for every one of them. The build is deterministic: the same
release and the same code produce identical bytes, so you can rebuild
what you were served and check it matches, or take the dataset and
stop depending on this service entirely.
What it does not do
type.
Start
There is no account, no key and no trial. The endpoint is public right now. The fastest way to evaluate it is to call it.