π IP Geolocation Lookup
Endpointβ
https://api.verifik.co/v2/ip-lookup
The IP Geolocation Lookup service geolocates an IPv4 or IPv6 address and returns country, region, city, ISP/ASN, coordinates, and timezone data. Use it for fraud screening, access control, and risk scoring when IP context is allowed in your workflow.
Typical fields include country, countryCode, region, regionName, city, zip, lat, lon, timezone, isp, org, and as.
Headersβ
| Name | Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer <token> |
Parametersβ
| Name | Type | Required | Description |
|---|---|---|---|
ip | string | Yes | IPv4 or IPv6 address to geolocate. |
Requestβ
- Node.js
- Python
import axios from "axios";
const { data } = await axios.get("https://api.verifik.co/v2/ip-lookup", {
params: { ip: "8.8.8.8" },
headers: {
Accept: "application/json",
Authorization: `Bearer ${process.env.VERIFIK_TOKEN}`,
},
});
console.log(data);
import os, requests
url = "https://api.verifik.co/v2/ip-lookup"
headers = {"Accept": "application/json", "Authorization": f"Bearer {os.getenv('VERIFIK_TOKEN')}"}
params = {"ip": "8.8.8.8"}
r = requests.get(url, headers=headers, params=params)
print(r.json())
Responseβ
- 200
- 404
- 409
{
"data": {
"country": "United States",
"countryCode": "US",
"region": "CA",
"regionName": "California",
"city": "Mountain View",
"zip": "94043",
"lat": 37.4056,
"lon": -122.0775,
"timezone": "America/Los_Angeles",
"isp": "Google LLC",
"org": "Google Public DNS",
"as": "AS15169 Google LLC"
},
"signature": {
"dateTime": "January 16, 2024 3:44 PM",
"message": "Certified by Verifik.co"
}
}
{
"code": "NotFound",
"message": "Record not found."
}
{
"code": "MissingParameter",
"message": "\"ip\" is required"
}
Notesβ
- Sandbox mode:
8.8.8.8returns a fixed US demo row;192.168.100.1β192.168.100.10return Colombia fixtures;192.168.100.99returns 404. - Upstream availability may vary; outages can return 5xx errors.
- Treat results as network / location signals under your privacy and fraud policies.