Skip to content

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

Try an example
IP address 8.8.8.8Example
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

Unlock with a free account

These fields need an API key. The free plan includes 100 credits every month, no card required.

Unlock these fields

What the response contains

FieldMeaning
version4 or 6.
countryISO code and English name of the country the range is registered or located in.
regionRegion or state, when the dataset has one.
cityCity, when the dataset has one. City-level location is approximate.
asnAutonomous system number, organization name and network type (hosting, ISP, mobile, business, education, government).
flags.torThe address is a Tor exit node according to the Tor Project.
flags.datacenterThe network is a hosting or cloud provider.
flags.vpnThe network belongs to a known VPN provider. Best effort.
flags.proxyThe address is a known proxy. Best effort.
risk0 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
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"}'
JavaScript
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 pricing

Where 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 sources

Frequently asked questions

How precise is IP geolocation?
Country is usually reliable; region and city are approximate and can point to the internet provider's location rather than the user's. Treat city as a hint, not a fact.
Can you detect every VPN?
No. The API flags known VPN provider networks and data centers, which covers many commercial VPNs, but residential proxies and personal VPN servers can look like normal connections.
What about private addresses like 192.168.0.1?
Private, loopback, documentation and other special-purpose addresses have no public location. The API answers 422 for them and does not bill the call.
Does it support IPv6?
Yes. IPv4 and IPv6 addresses are accepted in every common notation and looked up the same way.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.