IP lookup API
Know where a request comes from and what kind of network sent it. One call returns location, network, Tor and data center flags, and a risk score.
1 credit per check
Try it
- IP version
- IPv4
- Country
- United States (US)
- Region
- California
- City
- Mountain View
- ASN
- AS15169
- Organization
- Google LLC
- Network type
- Hosting or cloud
- Tor exit node
- No
- Data center
- Yes
- Risk score
- Unlock with a free account
- VPN and proxy flags
- Unlock with a free account
- Bulk CSV upload
- Unlock with a free account
- API access
- Unlock with a free account
What the response contains
| Field | Meaning |
|---|---|
| version | 4 or 6. |
| country | ISO code and English name of the country the range is registered or located in. |
| region | Region or state, when the dataset has one. |
| city | City, when the dataset has one. City-level location is approximate. |
| asn | Autonomous system number, organization name and network type (hosting, ISP, mobile, business, education, government). |
| flags.tor | The address is a Tor exit node according to the Tor Project. |
| flags.datacenter | The network is a hosting or cloud provider. |
| flags.vpn | The network belongs to a known VPN provider. Best effort. |
| flags.proxy | The address is a known proxy. Best effort. |
| risk | 0 to 100 score and a low, medium or high level built from the flags. |
What teams use it for
Screen signups
Ask for extra verification when an account is created from a data center or Tor.
Localize experiences
Pick a default country, currency or language from the visitor's IP.
Investigate abuse
See which networks generate suspicious traffic and group them by ASN.
Enforce regional rules
Apply country-specific terms or availability at the edge.
One request, one credit
Send JSON, get JSON. The response below was produced by the API for the request on the left.
curl https://api.qelka.com/v1/ip \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"ip":"8.8.8.8"}'const response = await fetch("https://api.qelka.com/v1/ip", {
method: "POST",
headers: {
Authorization: "Bearer sk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
ip: "8.8.8.8",
}),
});
const result = await response.json();{
"id": "lkp_01M84QZDZHEMMVZCGDFD9ZD53H",
"object": "ip",
"input": "8.8.8.8",
"version": 4,
"country": {
"code": "US",
"name": "United States"
},
"region": "California",
"city": "Mountain View",
"asn": {
"number": 15169,
"org": "Google LLC",
"type": "hosting"
},
"flags": {
"tor": false,
"vpn": false,
"proxy": false,
"datacenter": true
},
"risk": {
"score": 35,
"level": "medium"
},
"credits_used": 1,
"cached": false
}Pricing
1 credit per check. The free plan includes 100 credits every month. Paid plans start at $29.
See pricingWhere the data comes from
DB-IP Lite (CC BY 4.0) for city and region, IPinfo Lite (CC BY-SA 4.0) for country and ASN, the Tor Project's exit list, and a curated classification of hosting networks.
Data sourcesFrequently asked questions
How precise is IP geolocation?
Can you detect every VPN?
What about private addresses like 192.168.0.1?
Does it support IPv6?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.