- Takes: IP address
- Takes: Domain
- Passive: the target is not contacted
- Cost: 1 credit; include=security adds 2, include=abuse adds 1
- Plan: Free plan returns default fields; modules and domain lookups need a paid plan
Omit ip to use the caller's address. Domain lookups are paid-only. Non-English lang values need a paid plan. Wildcards in include return default fields on the free plan.
Query parameters
ipIPv4, IPv6 or domain (domain is paid-only); defaults to the caller's IP
langResponse language, one of 13 codes such as cn, de, ja; non-English needs a paid plan
includeComma-separated modules: geo_accuracy, dma_code, user_agent, security, abuse, hostname, liveHostname, hostnameFallbackLive; wildcards *, all, any
fieldsReturn only these fields, as dot paths
excludesRemove these fields or objects, as dot paths
Response fields · 13ShowHide
ip
The address looked up
country_name
Country name
city
City
latitude
Latitude
longitude
Longitude
calling_code
Country calling code
code
Currency code
as_number
Autonomous system number
organization
AS organisation
name
Time zone name
threat_score
Threat score (include=security, paid)
is_vpn
VPN flag (include=security, paid)
emails[]
Abuse contact emails (include=abuse, paid)
curl 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=YOUR_API_KEY'{
"ip": "203.0.113.7",
"location": {
"country_name": "Exampleland",
"city": "Example City",
"latitude": "10.0000",
"longitude": "20.0000"
},
"country_metadata": {
"calling_code": "+999"
},
"currency": {
"code": "EXA"
},
"asn": {
"as_number": "AS64496",
"organization": "Example Net AB"
},
"time_zone": {
"name": "Etc/UTC"
}
}