The ASN Lookup API is a powerful tool for developers who need to retrieve information about a specific Autonomous System Number (ASN). An ASN is a unique number assigned to a network by a regional Internet registry, such as ARIN, RIPE, or APNIC. The ASN Lookup API allows developers to query this information using an IP address or ASN number and returns data such as the associated organization and Internet Service Provider (ISP).
This API can be used for a variety of purposes, such as identifying the network origin of IP addresses. This can be useful in troubleshooting connectivity issues, determining the location of a network, and identifying potential security threats. Additionally, the API can be used to gather information about the size and scope of a network, as well as identify any upstream or downstream connections.
The data returned by the ASN Lookup API is provided in JSON format, making it easy to integrate into a wide variety of applications and systems. The API also supports batch processing, allowing developers to query multiple IP addresses or ASN numbers in a single request. With its powerful capabilities and easy-to-use interface, the ASN Lookup API is an essential tool for any developer working with IP addresses and networks.
Pass the ASN number to the API and receive information like:
Network troubleshooting: The ASN Lookup API can be used to identify the network origin of IP addresses and troubleshoot connectivity issues by providing information about the ASN and associated organization.
Geolocation: The API can be used to determine the location of a network by providing information about the associated organization.
Security threat detection: By identifying the network origin of an IP address, the API can help in detecting potential security threats and protect against them.
Network mapping: The API can provide information about the size and scope of a network, as well as identify any upstream or downstream connections, which can be useful for network mapping and analysis.
IP address validation: The API can be used to validate an IP address by checking if it is associated with a valid ASN.
Compliance: The API can be used to check if an IP address or a network is compliant with certain regulations or standards by providing information about the associated organization and ASN.
Besides API call limitations per month, there are no other limitations.
Retrieve information based on AS number.
Lookup - Endpoint Features
| Object | Description |
|---|---|
asn |
[Required] |
[{"asnHandle":32934,"asnName":"FACEBOOK","orgID":"THEFA-3-ARIN","orgName":"FACEBOOK","orgCountry":"US","ipv4_prefix":["31.13.24.0/21","31.13.64.0/18","45.64.40.0/22","57.141.0.0/24","57.141.3.0/24","57.141.5.0/24","57.141.7.0/24","57.141.8.0/24","57.141.10.0/24","57.141.13.0/24","57.144.0.0/14","66.220.144.0/20","69.63.176.0/20","69.171.224.0/19","74.119.76.0/22","102.132.96.0/20","103.4.96.0/22","129.134.0.0/17","157.240.0.0/17","157.240.192.0/18","163.70.128.0/17","173.252.64.0/18","179.60.192.0/22","185.60.216.0/22","185.89.216.0/22","204.15.20.0/22"],"ipv6_prefix":["2620:0:1c00::/40","2a03:2880::/32"]}]
curl --location --request GET 'https://zylalabs.com/api/952/asn+lookup+api/773/lookup?asn=AS32934' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The ASN Lookup API returns detailed information about a specific Autonomous System Number (ASN), including the ASN handle, ASN name, organization ID, organization name, organization country, and associated IPv4 and IPv6 prefixes.
Key fields in the response include `asnHandle`, `asnName`, `orgID`, `orgName`, `orgCountry`, `ipv4_prefix`, and `ipv6_prefix`, which provide essential details about the ASN and its associated organization.
The response data is structured in JSON format, with each ASN query returning an array of objects. Each object contains key-value pairs representing the ASN details, making it easy to parse and integrate into applications.
The API provides information about the ASN, including its handle, name, associated organization, country, and the IPv4 and IPv6 prefixes allocated to that ASN, enabling comprehensive network analysis.
Users can customize their requests by specifying either an ASN number or an IP address in the query. This allows for targeted lookups based on specific network identifiers.
The data is sourced from regional Internet registries such as ARIN, RIPE, and APNIC, ensuring that the information is accurate and up-to-date regarding ASN assignments and associated organizations.
Typical use cases include network troubleshooting, geolocation, security threat detection, network mapping, IP address validation, and compliance checks, making it a versatile tool for developers.
Users can leverage the returned data to identify the origin of IP addresses, analyze network structures, validate IP addresses against known ASNs, and enhance security measures by recognizing potential threats.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
561ms
Service Level:
100%
Response Time:
634ms
Service Level:
100%
Response Time:
1,424ms
Service Level:
100%
Response Time:
10,111ms
Service Level:
100%
Response Time:
1,432ms
Service Level:
100%
Response Time:
844ms
Service Level:
100%
Response Time:
723ms
Service Level:
100%
Response Time:
2,918ms
Service Level:
100%
Response Time:
467ms
Service Level:
100%
Response Time:
1,194ms