The ASN Lookup API allows developers to retrieve information about a specific Autonomous System Number (ASN) including the associated organization and Internet Service Provider (ISP). This API can be used to identify the network origin of IP addresses and troubleshoot connectivity issues. The API returns data in JSON format.
[{"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'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the ASN Lookup API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
Trusted by leading companies
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.
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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund