Country.is

Look up a visitor's country from their IP, no key

🗺 Geo & MapsUNMONITOREDchecked 1h ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

A minimalist endpoint that resolves the caller's IP address to a two-letter country code. Hit the root URL to geolocate yourself, or pass any IP to look it up. Free, keyless and CORS-enabled for browser use.

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
Uptime history
—%90 days
—%30 days
P50 · ms
P95 · ms
operationalpartialdownno data
Live response samplecaptured by our last successful check
GET https://api.country.is/

{
  "ip": "46.1.3.138",
  "country": "TR"
}
Call itcurl · fetch · python
curl "https://api.country.is/"
const res = await fetch("https://api.country.is/");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://api.country.is/")
print(res.json())
Endpoints · 6On scheduleFULL DOCS ↗
First rollup pending — GET / has been probed
GET/PROBED

Look up a visitor's country from their IP, no key

GET/?limit=5

Paginated variant with limit parameter.

GET/{ip}

Look up a specific IP

GET/info

Service info

GET/openapi.json

Openapi Json — documented GET route.

GET/77.1.2.3

77 1 2 3 — documented GET route.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

Country.is: common questions

Is Country.is free to use?

Yes — Country.is is a free geo & maps API. Free tier: Free, no API key required. Whether the free tier allows commercial use is unclear — check the provider docs.

Does Country.is need an API key?

No — Country.is needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call Country.is from the browser?

Yes — Country.is returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is Country.is up right now?

As of our last scheduled check, Country.is is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.