GET /api?q=
Everything the internet already knows about an IP address, in one request.
Geolocation, BGP routing, registry whois, datacenter, VPN and threat data β assembled from open sources and served as one JSON body. 1,000 lookups a day for free, or 100 per day without an account.
This is your own address, resolved on page load.
57.141.4.45
Autonomous systemasn
- number
- AS32934
- name
- Facebook, Inc.
- domain
- meta.com
- country_code
- US
- route
- 57.141.4.0/24
- rir
- arin
- type
- hosting
- abuse_score
- 0.0002 (low)
Locationlocation
- country
- πΊπΈ United States
- state
- Illinois
- city
- Chicago
- lat, lon
- 41.8781, -87.6298
- timezone
- America/Chicago
- local_time
- 2026-08-31T23:37:51-05:00
- precision
- region β operator_geofeed
Registered networknetwork
- cidr
- 57.141.0.0/16
- name
- FB-BLOCK
- type
- lir
- rir
- ripe
- country_code
- IE
- abuse_score
- 0.001 (low)
Organizationorganization
- name
- Meta Platforms Ireland Limited
- domain
- fb.com
Datacenterdatacenter
- provider
- Facebook, Inc.
- network
- 57.141.4.0/24
Abuse contactabuse_contact
- name
- RIPE DBM
- domain@fb.com
Rows in the database right now
- 657,073
- RIR allocations
- 1,542,289
- BGP prefixes
- 124,388
- AS organizations
- 17,748,697
- Geofeed ranges
- 327,146
- VPN ranges
- 717,204
- Datacenter ranges
22 datasets are tracked on a refresh schedule. See when each one last ran β
What comes back
Every section below is a key in the response body. Sections we know nothing about are left out rather than returned empty.
location
Geolocation you can audit
Built from RFC 8805 geofeeds the network operators publish themselves, plus registry country and GeoNames reference data. Every result states its semantic precision and whether it came from an operator geofeed or registry allocation.
asn
BGP routing and ASNs
The AS that originates the most specific route covering the address, the announced prefix, and the organization behind the AS number. Query an AS number directly to get every prefix it announces.
network / organization / abuse_contact
Registry whois
The organization holding the allocation, its domain and type, the RDAP link for the network, and the abuse contact the registry publishes β name, email, phone and postal address.
is_datacenter
Datacenter and cloud detection
Published ranges from the major cloud providers, plus hosting networks identified from AS classification. Tells you the provider, its domain and the covering network.
services[]
VPN, proxy and egress
One typed collection covers commercial VPN exits, scanned proxies and platform egress such as iCloud Private Relay, with provider, confidence, exit location and last-seen time.
is_tor / is_abuser
Threat and network flags
Tor exit nodes, blocklisted networks, verified crawlers reported by name, plus mobile, satellite and bogon flags β all as booleans you can branch on directly.
hostname
Reverse DNS
The PTR hostname for the address, resolved ahead of time so the lookup does not wait on DNS.
/api/csv
Four formats and bulk
JSON, CSV, plain text and HTML from the same lookup. POST up to 100 addresses in one request when you need a batch.
One request, no SDK
A plain GET with the address in q. Add your key to get the full body; leave it off for the reduced one.
curl 'https://ip-api.dev/api?q=8.8.8.8&pretty=1&key=YOUR_KEY'Responses also come as CSV, plain text and HTML from /api/csv, /api/text and /api/html. Full reference β
{
"ip": "8.8.8.8",
"hostname": "dns.google",
"network": {
"cidr": "8.8.8.0/24",
"name": "GOGL",
"rir": "arin",
"country_code": "US",
"abuse_score": { "score": 0, "level": "low" }
},
"organization": {
"name": "Google LLC",
"domain": "google.com"
},
"asn": {
"number": 15169,
"name": "Google LLC",
"domain": "google.com",
"country_code": "US",
"route": "8.8.8.0/24",
"rir": "arin",
"type": "hosting",
"active": true,
"abuse_score": { "score": 0.0002, "level": "low" }
},
"services": [],
"location": {
"continent": "North America",
"continent_code": "NA",
"country": "United States",
"country_code": "US",
"precision": "country",
"basis": "registry_allocation"
},
"is_bogon": false,
"is_datacenter": true,
"is_anycast": false,
"is_tor": false,
"is_proxy": false,
"is_vpn": false,
"is_abuser": false,
"elapsed_ms": 248.442
}Start free, scale when you need to
A free key raises you to 1,000 lookups a day and unlocks the full response body. Paid plans go up to 2 million a day.