- Takes: IP address
- Passive: the target is not contacted
Returns the location and network data held for the address. Add hostname=1 for the reverse-DNS hostname (off by default, may slow responses). security=1 adds a security object and needs the Professional Plus plan.
Path parameters
ipIPv4 or IPv6 address to look up
Query parameters
fieldsComma-separated objects to return, e.g. main, country_code, location, location.capital
hostnameSet to 1 to include the hostname the address resolves to
securitySet to 1 to include the security object (Professional Plus plan)
languageTwo-letter language code for the results
outputResponse format
Response fields · 21ShowHide
ip
The address looked up
hostname
Resolved hostname, when requested
type
Address type
city
City
zip
Postal code
latitude
Latitude
longitude
Longitude
capital
Capital of the country
calling_code
International calling code
is_eu
Whether the country is in the EU
id
Time zone identifier
current_time
Current time at the location
gmt_offset
Offset from GMT in seconds
code
Currency code
name
Currency name
asn
Autonomous system number
isp
Internet service provider
is_proxy
Whether the address is a known proxy
is_tor
Whether the address is a Tor node
is_crawler
Whether the address belongs to a crawler
threat_level
Threat level assigned to the address
curl 'https://api.ipstack.com/203.0.113.7?access_key=YOUR_API_KEY'{
"ip": "203.0.113.7",
"type": "ipv4",
"city": "Exampleville",
"zip": "00000",
"latitude": 12.3456,
"longitude": 65.4321,
"location": {
"capital": "Example City",
"calling_code": "1",
"is_eu": false
},
"time_zone": {
"id": "America/New_York",
"current_time": "2026-11-29T10:00:00-05:00",
"gmt_offset": -18000
},
"currency": {
"code": "USD",
"name": "US Dollar"
},
"connection": {
"asn": 64496,
"isp": "Example ISP"
}
}