countries.dev
countries.dev
- What: free country and city facts API built on GeoNames data. https://countries.dev/
- Base URL:
https://countries.dev(/name/<country>,/cities?q=<city>) - Auth: none; no per-key quotas. Stated as free for production use.
- Called from:
assets/js/travel-about.js, in the visitorβs browser. - Triggers: opening the About panel of a travel page; one country request per card plus city lookups for time zones.
- Caching: none beyond the browserβs HTTP cache.
- Failure: the card falls back to the tripβs own βGood to knowβ info from
_data/travels/about/. - Licence: GeoNames data is CC BY 4.0, credited in
_includes/travel-credits.html. - Quirks: the city search parameter is
q, notname; city names collide across countries, and some small towns are missing (the code has an IANA-zone override for those).