countries.dev Blog

The free, open-source country data API.

A keyless AbstractAPI alternative for IP geolocation

AbstractAPI's IP geolocation needs an API key and sign-up even on the free tier. countries.dev resolves an IP to its country with no key at all — and returns the full country record.

Fri Jun 26 2026

Autofill a city and region from a postal code

Speed up checkout and sign-up forms — when a user types their ZIP or postal code, fill in the city and region automatically with one free API call. No key.

Fri Jun 26 2026

Add city autocomplete to a search box

Build a fast, free city autocomplete — type a few letters, get matching cities ranked by population, with no API key. Works straight from the browser.

Fri Jun 26 2026

A countriesnow.space alternative with richer country records

countriesnow.space serves free country, state and city data over POST endpoints. countries.dev gives you full country records over simple GETs — flags, ISO codes, currencies — plus cities, postal codes and IP.

Fri Jun 26 2026

A free alternative to country.is (IP → country)

country.is returns an IP's two-letter country code. countries.dev does the same lookup with no key — and hands back the full country record — name, flag, currency, languages and more.

Fri Jun 26 2026

A keyless GeoDB Cities API alternative

GeoDB Cities is a rich cities API on RapidAPI, behind a key and rate limits. countries.dev offers free, keyless city search plus a 13M-place gazetteer with coordinates and population.

Fri Jun 26 2026

An ip-api.com alternative that's free for commercial use

ip-api.com's free endpoint is non-commercial only and HTTP-only. countries.dev geolocates IPs to a country over HTTPS, free for production, with no key.

Fri Jun 26 2026

An ipapi.co alternative with no daily quota

ipapi.co's free tier caps you at a small number of lookups a day. countries.dev resolves an IP to its country with no key and no daily quota — and returns the full country record.

Fri Jun 26 2026

A free, no-token ipinfo alternative for IP-to-country

Need a country from an IP without signing up for a token? countries.dev resolves any IP to its country — free, keyless and CORS-friendly — and returns the full country record.

Fri Jun 26 2026

A keyless ipstack alternative for IP geolocation

ipstack needs an access key, and HTTPS is paywalled on the free plan. countries.dev resolves an IP to its country over HTTPS with no key — and returns the full country record.

Fri Jun 26 2026

A MaxMind GeoLite2 alternative with no database to host

MaxMind GeoLite2 means an account, a license key and a database you download and auto-update. countries.dev gives you IP-to-country over a hosted API — no download, no geoipupdate, no key.

Fri Jun 26 2026

A keyless Zipcodebase alternative for postal codes

Zipcodebase needs an API key and a monthly quota. countries.dev resolves postal and ZIP codes across 121 countries with no key — place, region and coordinates in one request.

Fri Jun 26 2026

A maintained alternative to Zippopotam for postal codes

Zippopotam.us is a free postal-code API. countries.dev resolves postal/ZIP codes the same way — place, region and coordinates across 121 countries — as part of a maintained, broader geo API.

Fri Jun 26 2026

Which countries are in a given time zone

Find every country that observes a UTC offset like UTC+01:00, or list a country's time zones. Useful for scheduling, support hours and "good time to call" features. No API key.

Thu Jun 25 2026

Country demonyms — what people from a country are called

Get the demonym for any country (French, Japanese, Peruvian) from its ISO code, or find which country a demonym belongs to. Free API for nationalities and adjectives, no API key.

Thu Jun 25 2026

Distance between two cities (or coordinates) from an API

Calculate the great-circle distance between two cities or two lat/lng points in one request, returned in kilometres and miles. Free distance API, no API key.

Thu Jun 25 2026

Largest and smallest countries by area

Sort every country by land area, biggest to smallest, with one request. Get the top 10 largest countries, the smallest microstates, or everything in a size range. No API key.

Thu Jun 25 2026

Largest cities in the world (and in any country) from an API

Get the most populous cities globally or within a single country, with population, coordinates and time zone. Free cities API backed by GeoNames, no API key.

Thu Jun 25 2026

A list of all time zones (and how many countries use each)

Get every UTC offset in use worldwide, sorted from UTC-12:00 to UTC+14:00, with a country count per offset. Free time zones API for dropdowns and scheduling, no API key.

Thu Jun 25 2026

An MCP server for country data — connect any AI to countries.dev

Give Claude, Cursor or ChatGPT live country, city, postal-code, distance and IP-geolocation data through one hosted MCP URL. No API key, no install, no local process.

Thu Jun 25 2026

A random country API for quizzes and test data

Get a random country on every request — full record, flag, capital and more. Perfect for geography quizzes, "country of the day" widgets and seeding test data. Free, no API key.

Thu Jun 25 2026

Sovereign countries vs. territories — how many are there?

Filter the country list to sovereign states only, or to dependent territories. Settles the "how many countries are there" question and keeps dropdowns clean. Free API, no API key.

Thu Jun 25 2026

Get the capital city of any country

Look up a country's capital from its name or ISO code, or find which country a capital belongs to — in one request, with no API key.

Wed Jun 24 2026

A free postal & ZIP code lookup API

Turn a postal or ZIP code into a place name, region and coordinates — 90210 to Beverly Hills, California — in one request. Free, no API key, ~120 countries.

Wed Jun 24 2026

Reverse geocode coordinates to the nearest city

Turn latitude and longitude into the nearest cities — with names, country, population and distance — in one request. Free reverse geocoding, no API key.

Wed Jun 24 2026

Which country owns a domain extension? (.io, .ai, .tv)

Every two-letter domain ending is a country code. Map a ccTLD like .io, .ai or .tv back to its country in one request — or look up a country's TLD. No API key.

Wed Jun 24 2026

A lighter GeoNames alternative for country data

GeoNames needs a username on every request and rate-limits its free server. If you only need country data, countries.dev is keyless and focused.

Tue Jun 23 2026

RestCountries now needs an API key. Here's a free alternative.

RestCountries v3.1 is deprecated and v5 requires an API key, with a 500-request/month free tier. countries.dev is a free, keyless alternative that returns the same country data.

Tue Jun 23 2026

Get a country's bordering countries

List the countries that share a land border with any country — as full records, not just ISO codes. One request, no API key.

Tue Jun 23 2026

Converting between ISO country codes (alpha-2, alpha-3, numeric)

US, USA, and 840 are the same country in three ISO formats. Convert between alpha-2, alpha-3, numeric, and the country name with one request — no API key.

Tue Jun 23 2026

List countries by continent

Get every country in Europe, Asia, Africa and more with one request — plus the one quirk in how "continent" is bucketed, and how to slice finer with subregions.

Tue Jun 23 2026

Country calling codes from an API

Get a country's phone calling code from its ISO code, pull every dialing code at once for a phone input, or find which country a +code belongs to. No API key.

Tue Jun 23 2026

A country flags API (emoji and SVG)

Get a country's flag as a Unicode emoji or an SVG/PNG image from its ISO code — no key, no sprite sheets, no hard-coded asset list.

Tue Jun 23 2026

Country population data from an API

Get a country's population, rank countries by size, or filter to "over 100 million" — in one request, no API key, no scraping a Wikipedia table.

Tue Jun 23 2026

Build a country search autocomplete

A country autocomplete is a substring problem — type "uni" and expect the United-something countries. Here's one built on the free countries.dev API, no key.

Tue Jun 23 2026

How to get a currency from a country code

Turn an ISO country code into its currency code, name, and symbol with one request — or go the other way and list every country on a currency.

Tue Jun 23 2026

Get the languages spoken in a country

Look up a country's languages (with ISO 639 codes) to pick a default locale, or find every country that speaks a given language. No API key.

Tue Jun 23 2026

Migrating from RestCountries to countries.dev

A code-first guide to replacing RestCountries v3.1 or v5 with countries.dev — endpoint-by-endpoint mapping, the response shape, and no API key.

Mon Jun 22 2026

A free IP geolocation API with no key

Most IP geolocation APIs need a token or cap you fast. countries.dev resolves an IP to its full country record over HTTPS — no key, no signup.

Sun Jun 21 2026

Get a list of all countries as JSON

One request returns every country as JSON — names, ISO codes, capitals, currencies, languages and flags. No API key, no CSV wrangling.

Sat Jun 20 2026

How to get a user's country from their IP

Detect a visitor's country from their IP address in one request, with no API key — and get the full country record back, not just a two-letter code.

Fri Jun 19 2026

How to build a country dropdown with flags

A small, dependency-free country select dropdown with flag emojis, built on the free countries.dev API — no API key required.

Thu Jun 18 2026

Introducing countries.dev: a free country API with no key

countries.dev is a free REST API for country data — no API key, no signup, no monthly quota. Here's what's in it and why it exists.

Wed Jun 17 2026