Skip to content

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.

FieldTypeMeaning
asn.numberintegerAutonomous system number that announces the address.
asn.orgstring or nullOrganization holding the autonomous system.
asn.typestringhosting, isp, mobile, business, education, government or unknown.
country.codestringISO 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.

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"}'
Request fields
ipstring · RequiredA public IPv4 or IPv6 address.
freshboolean · 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 pricing

Data 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.

Data sources

Frequently asked questions

Where does the ASN data come from?
From IPinfo Lite and DB-IP Lite, two free databases published under Creative Commons licenses and credited on the data sources page.
How is the network type decided?
From the registered name of the network and a curated list of hosting networks. The type is one of hosting, isp, mobile, business, education, government or unknown.
Can I look up an AS number directly?
The API takes an IP address. The free ASN lookup tool also accepts AS numbers such as AS13335.

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