ASN API Icon

ASN lookup API

Look up any autonomous system by its number: organization, country, IP count and IP ranges. The ASN of an IP address comes with every IP API lookup.

The ASN API is part of the Small plan and above.

asn: "AS13335", organization: "Cloudflare, Inc.", domain: "cloudflare.com", country: "US", isp: "Cloudflare, Inc.", ip_count: 1543168, ranges_count: 384

ASN lookup API

Every routed IP address belongs to an autonomous system. Its ASN tells you who runs the network.

What the ASN API returns

One request returns the full ASN record as JSON.

See all data fields & code snippets
ASN
Organization
Domain
Country
ISP
IP Count
Ranges Count
Range Details
Customer logos: SAP, Accenture, Heineken, Oracle, Microsoft and Volkswagen

Tell hosting, business and consumer IPs apart

The ASN shows whether an address belongs to a hosting provider, a business or a consumer ISP, so you can segment users, flag data center traffic and tailor what you show.

Know your users' networks

See which ISPs and networks your users come from, and what that means for their connection speed and data limits.

breatheilo

"We recently implemented ipbase.com and were very impressed with their ASN API. We are using the API to analyze and optimize the user experience of our app users. We had quite a lot of questions as part of the integration phase and their support team never got tired of helping us out."

Wernhard Berger
Wernhard Berger CEO @ Breatheilo

Built for developers

Plain REST and JSON, code examples and an OpenAPI spec. Load the spec into your API client to try every endpoint before you write a line of code.

Integration Documentation

The ASN API is part of the Small plan and above.

Frequently asked questions

What is an ASN? How is ASN data used? What does the ASN API return? Why do some IP addresses not have ASN data?