Country API
Get your visitor's country from their IP
- Our call
- HTTP 200
- Latency
- 7,868 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://api.country.is/Press Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://api.country.is/");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://api.country.is/'import requests
r = requests.get("https://api.country.is/", timeout=10)
r.raise_for_status()
print(r.json())Country docsMore Geocoding APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://api.country.is/- Result
- HTTP 200 in 7,868 ms (7,869 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: *
- HTTPS
- Yes
- Response
- application/json, 37 bytes, a JSON object
- Fields
ipcountry- Rate-limit headers
- none sent (that doesn't mean unlimited)
Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
- Category
- Geocoding
- Auth
- No key
- CORS
- Yes
- Docs link
- country.is answered 200 in 8685 ms on 2026-11-06 Measured
Country is listed in Geocoding. Country needs no key: you can call it without signing up. The list says it sends CORS headers, so JavaScript on a web page can call it straight from the browser.
The list has 102 Geocoding APIs: 48 need no key, 53 need an API key and 1 uses OAuth, and 51 of them are marked as allowing browser calls. 23 others have the same setup, such as administrative-divisons-db, BigDataCloud's Free API and bng2latlong.
Country and other Geocoding APIs
| Fact | Country (this page) | BigDataCloud's Free API | GeoJS | IP Address Details | ipapi.co |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Yes | Yes | Yes | Not recorded | Yes |
| Our test call Measured by us | 7,868 ms | 5,159 ms | 2,866 ms | 181 ms | 1,625 ms |
| Browser call Measured by us | Allowed | Allowed | Allowed | Allowed | Allowed |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does Country need an API key?
Country needs no key: you can call it without signing up.
Can I call Country from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.
Where are the Country docs?
At https://country.is/. When we checked, the link answered 200 in 8685 ms.
What are some alternatives to Country?
Other Geocoding APIs in the list include administrative-divisons-db, BigDataCloud's Free API, bng2latlong and FreeGeoIP.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.