Network
Find the network behind an IP address
Send an IPv4 or IPv6 address and get the autonomous system that announces it: its number, the organization that holds it and the kind of network it is.
What one lookup returns
The fields this product reads from the response. The full schema is in the API reference.
| Field | Type | Meaning |
|---|---|---|
| asn.number | integer | Autonomous system number that announces the address. |
| asn.org | string or null | Organization holding the autonomous system. |
| asn.type | string | hosting, isp, mobile, business, education, government or unknown. |
| country.code | string | ISO 3166-1 alpha-2 code of the country the range is located in. |
Live example
The response below was returned by the API for this request.
curl https://api.qelka.com/v1/ip \
-H "Authorization: Bearer sk_test_your_key" \
-H "Content-Type: application/json" \
-d '{"ip":"2606:4700:4700::1111"}'| ip | string · RequiredA public IPv4 or IPv6 address. |
|---|---|
| fresh | boolean · Default falsetrue skips the result cache and runs the lookup again. |
Response
{
"id": "lkp_01M85PTBHW7BZ9KK2Z441RN7B4",
"object": "ip",
"input": "2606:4700:4700::1111",
"version": 6,
"country": {
"code": "US",
"name": "United States"
},
"region": "California",
"city": "San Francisco (South Beach)",
"asn": {
"number": 13335,
"org": "Cloudflare, Inc.",
"type": "hosting"
},
"flags": {
"tor": false,
"vpn": false,
"proxy": false,
"datacenter": true
},
"risk": {
"score": 35,
"level": "medium"
},
"credits_used": 1,
"cached": false
}Use cases
Group abuse by network
See which networks send suspicious traffic and act on all their addresses at once.
Recognize cloud traffic
Tell hosting networks from internet providers and mobile operators.
Enrich logs
Add the organization name to access logs and security alerts.
Measure your audience
Count visits by internet provider or mobile network.
Price
1 credit per lookup, from the same balance as every other product.
- Starter
- $2.90 per 1,000 lookups
- Growth
- $1.98 per 1,000 lookups
- Scale
- $1.50 per 1,000 lookups
- Business
- $1.07 per 1,000 lookups
The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.
See pricingData source and freshness
Read from datasets we download and refresh on the schedule listed below. Your input never leaves our infrastructure. Results are cached for 7 days; send "fresh": true to query again.
- IP to City Lite
License: CC-BY-4.0 · Refresh: monthly
- IP to ASN Lite
License: CC-BY-4.0 · Refresh: monthly
- IPinfo Lite
License: CC-BY-SA-4.0 · Refresh: daily
- Tor exit list (TorDNSEL)
License: CC0-1.0 · Refresh: hourly
- ASN type classification
License: In-house curation · Refresh: on change
- VPN and proxy operator networks
License: In-house curation · Refresh: on change
- IANA IPv4 and IPv6 Special-Purpose Address Registries
License: CC0-1.0 · Refresh: on change
Frequently asked questions
Where does the ASN data come from?
How is the network type decided?
Can I look up an AS number directly?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time