ip-api API
Find location with IP address or domain
- Our call
- HTTP 200
- Latency
- 105 ms
- From a browser
- HTTP only
- Key
- No key
- Docs link
- Answered
http://ip-api.com/json/This endpoint only answers over plain HTTP, so a browser on an HTTPS page can't call it. Use curl or Python from a server.
const res = await fetch("http://ip-api.com/json/");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'http://ip-api.com/json/'import requests
r = requests.get("http://ip-api.com/json/", timeout=10)
r.raise_for_status()
print(r.json())ip-api docsMore Geocoding APIs
Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET http://ip-api.com/json/- Result
- HTTP 200 in 105 ms (106 ms with the body)
- From a browser
- HTTP only Access-Control-Allow-Origin: *
- HTTPS
- No: the endpoint only answers over plain HTTP
- Response
- application/json, 317 bytes, a JSON object
- Fields
statuscountrycountryCoderegionregionNamecityziplatlontimezone- 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
- Not recorded
- Docs link
- ip-api.com answered 200 in 12949 ms on 2026-11-06 Measured
ip-api is listed in Geocoding. ip-api needs no key: you can call it without signing up. The list doesn't record whether it allows browser calls (CORS), so test that before building a browser-only app on it.
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. 20 others have the same setup, such as adresse.data.gouv.fr, Cartes.io and Cep.la.
ip-api and other Geocoding APIs
| Fact | ip-api (this page) | BigDataCloud's Free API | Country | GeoJS | IP Address Details |
|---|---|---|---|---|---|
| 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 | Not recorded | Yes | Yes | Yes | Not recorded |
| Our test call Measured by us | 105 ms | 5,159 ms | 7,868 ms | 2,866 ms | 181 ms |
| Browser call Measured by us | HTTP only | Allowed | Allowed | Allowed | Allowed |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does ip-api need an API key?
ip-api needs no key: you can call it without signing up.
Can I call ip-api from JavaScript in the browser?
Not from an HTTPS page: it only answers over plain HTTP, which browsers block there. Call it from a server.
Where are the ip-api docs?
At https://ip-api.com/docs. When we checked, the link answered 200 in 12949 ms.
What are some alternatives to ip-api?
Other Geocoding APIs in the list include adresse.data.gouv.fr, Cartes.io, Cep.la and CitySDK.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.