Quick start
Send an address, a domain or nothing at all. With nothing, you get the caller's own address.
curl "https://ipapi.yesitsblake.xyz/api/lookup?ip=1.1.1.1" curl "https://ipapi.yesitsblake.xyz/api/lookup?host=bbc.co.uk" curl "https://ipapi.yesitsblake.xyz/api/lookup"
For a shareable map image:
curl -o map.png "https://ipapi.yesitsblake.xyz/api/lookup.png?ip=1.1.1.1"
IPs, domains and ranges
Every lookup endpoint takes the same parameters. Use one of them, or none to look up the caller.
/api/lookup only.Extra top-level fields depend on what you sent:
Limits and caching
There are no keys and no hard rate limit, but results are cached on our side and you should cache them on yours too. IP data rarely changes minute to minute.
- Location and network data is cached for up to 24 hours.
- Residential proxy results are cached for 6 hours when something was found and 24 hours when nothing was.
- Abuse data is cached for 12 to 72 hours depending on how much has been reported.
- Map images are rendered once and cached.
Access-Control-Allow-Origin: *, so you can call it straight from the browser.GET /api/lookup
Returns the full report as JSON. Every successful response has the same top-level shape.
{
"success": true,
"query": "1.20.101.26",
"hostname": null,
"geo": { ... },
"network": { ... },
"security": { ... },
"residential_proxy": {
"verdict": "likely",
"score": 100,
"network": "residential",
"signals": [ { "id": "rp_listed", "label": "Seen as a residential proxy exit", "points": 74 } ]
},
"connection": { ... },
"contact": { ... },
"meta": { "response_time_ms": 142 }
}Text values that are not known come back as "N/A" or "Unknown" in geo, network and contact, and as null everywhere else.
geo
Where the address is, as best we can tell.
network
ASN, ISP and routing details. Organisation names prefer current regional registry records. The ISP runs the autonomous system and can differ from the organisation the range is registered to.
security
Flags are true when the address matches, false when it was checked and does not, and null when nobody knows.
residential_proxy
A residential proxy is a home or mobile connection relaying other people's traffic, usually through an app or SDK the owner installed. They are much harder to spot than datacentre proxies because the address looks like an ordinary customer. We combine direct sightings of proxy exits with proxy flags, and only count those flags when the address sits on a home or mobile network.
connection
Named operators, when the address belongs to a known service.
contact and meta
Abuse contacts come from the regional registry and can be empty when nothing is on file.
Errors
Errors return success: false with a short message and a normal HTTP status.
/api/lookup.png only. The address has no usable coordinates.{ "success": false, "error": "Could not resolve nonexistent.example" }GET /api/lookup.png
A 3200 by 2000 PNG with the address on a map, plus the IP, ISP, reverse DNS hostname and location written over it. Takes ip, host or cidr like every other endpoint.
<img src="https://ipapi.yesitsblake.xyz/api/lookup.png?ip=1.1.1.1&type=dark" alt="Map">
Plain text fields
Single values as plain text, handy in shells and scripts. They take the same ip, host and cidr parameters, or default to the caller. Hitting the root with curl gives a short summary of your own address.
curl ipapi.yesitsblake.xyz curl ipapi.yesitsblake.xyz/ip curl ipapi.yesitsblake.xyz/country?ip=8.8.8.8 curl ipapi.yesitsblake.xyz/asn?host=cloudflare.com curl "ipapi.yesitsblake.xyz/api/lookup?ip=1.1.1.1&format=csv"
GET /api/whois
The raw WHOIS record from the regional registry, as one string in whois.
{ "success": true, "query": "1.1.1.1", "whois": "% [whois.apnic.net] ..." }GET /api/status
The data behind the status page.
Examples
curl "https://ipapi.yesitsblake.xyz/api/lookup?ip=8.8.8.8" | jq '.residential_proxy' curl -o map.png "https://ipapi.yesitsblake.xyz/api/lookup.png?host=bbc.co.uk&type=satellite"
const res = await fetch('https://ipapi.yesitsblake.xyz/api/lookup?ip=1.1.1.1'); const data = await res.json(); if (data.success) { console.log(data.geo.country, data.network.isp); if (data.residential_proxy?.verdict === 'likely') console.log('Residential proxy'); }
import requests r = requests.get( 'https://ipapi.yesitsblake.xyz/api/lookup', params={'host': 'bbc.co.uk'}, timeout=5, ).json() if r['success']: print(r['query'], r['geo']['country'], r['security']['abuse_confidence'])
Changelog
- Residential proxy detection: a residential_proxy object with a verdict, a 0 to 100 score and the signals behind it.
- Abuse data in security: abuse_confidence, abuse_reports, abuse_reporters, abuse_last_reported and usage_type.
- Domain lookups: ?ip= now accepts a domain as well as ?host=.
- bare=1 on
/api/lookup.pngfor a map with no overlay. /api/statusnow reports components and a 24 hour history. Redesigned lookup, docs and status pages.
- Plain text field endpoints such as
/ip,/cityand/asn. - format=text and format=csv on
/api/lookup, a terminal summary at the root, and hostname in the JSON.
- Added
/api/lookup.pngwith dark, light and satellite styles.
- First release of
/api/lookup.