Open documentation ↗Overview
Geolocate website visitors from their IPs
IP Geolocation is a geocoding API from abstractapi.com. Requests are authenticated with an API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 1 endpoints.
At a glance
- Authentication
- API key
- HTTPS
- Yes
- CORS
- Yes
- Category
- Geocoding
- Base URL
https://ipgeolocation.abstractapi.com- Version
- 1.0.0
- Endpoints
- 1
- OpenAPI
- Specification ↗
- Spec updated
- 2021-06-21
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://ipgeolocation.abstractapi.com/v1/" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY"const response = await fetch("https://ipgeolocation.abstractapi.com/v1/", {
method: "GET",
headers: {
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://ipgeolocation.abstractapi.com/v1/",
headers={
"Accept": "application/json",
"X-API-Key": "YOUR_API_KEY",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /v1/ | Retrieve the location of an IP address |
Questions
Does the IP Geolocation API need an API key?
Yes. The IP Geolocation API uses API key authentication; the documentation explains how to get credentials.
Can I call the IP Geolocation API from the browser?
Yes. The IP Geolocation API sends CORS headers, so a web page can call it directly with fetch().
Does the IP Geolocation API support HTTPS?
Yes, the IP Geolocation API is served over HTTPS.
How many endpoints does the IP Geolocation API have?
Its OpenAPI description lists 1 endpoint in version 1.0.0. All of them are shown on this page.
What are alternatives to the IP Geolocation API?
Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.
Similar geocoding APIs
Compare alternatives →Bing Maps
GeocodingCreate/customize digital maps based on Bing Maps data
ip-api
GeocodingFind location with IP address or domain
OpenStreetMap
GeocodingNavigation, geolocation and geographical data
GeographQL
GeocodingA Country, State, and City GraphQL API
IP Address Details
GeocodingFind geolocation with ip address
ipapi.co
GeocodingFind IP address location information
Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).