An Autonomous System Number (ASN) is a unique identifier given to a collection of IP networks by an organization. Get range, range type, and organization information from the ASN database.
[data updated as of May, 2024]
Field Name | Example | Data Type | Notes |
---|---|---|---|
start_ip |
125.113.0.0 | TEXT | Starting IP address of the ASN IP address block |
end_ip |
125.113.255.255 | TEXT | Ending IP address of the ASN IP address block |
join_key |
125.113.0.0 | TEXT | Special variable to facilitate database join operation |
asn |
AS4134 | TEXT | Autonomous System Number (ASN) |
domain |
chinatelecom.com.cn | TEXT | Domain name of the AS |
name |
CHINANET-BACKBONE | TEXT | Name of the ASN |
type |
isp | TEXT | ASN Type: ISP, Hosting, Education or Business |
country |
CN | TEXT | ISO 3166 country code of the ASN from the WHOIS records |
join_key
represents the Class C network each IP address is part of, allowing you to filter the result set significantly beforejoin
ing. Learn more aboutjoin_key
here.Please refer to "How to choose the best file format for your IPinfo database?" article to select the best format possible for your use case.
The usage of the IP data downloads relies on the software or application of the data. Check out our documentation, community, and our integrations pages to find the best path forward.
Compared to the IP to ASN (Free) Database or the free IP to Country ASN database, the ASN database (Premium) is different because of certain factors. The free IP to ASN database is a subset of the ASN database (Premium) and does not contain the following information.
- AS range type: The
type
column in the ASN database is not available in the free ASN database. Thetype
column provides insights into what type of organization is running a certain range of IP addresses. It could be one of four types: Education, Hosting, Business, or ISP. The range type is assigned based on a range classifier algorithm. Learn about the IPinfo range classifier algorithm here. - AS country type: The
country
column in the ASN database is different from thecountry
column in the free IP to Country ASN database. Thecountry
column is not present in the free IP to ASN database. Thecountry
column in the ASN database represents the country of the AS organization as represented in the WHOIS records. Meanwhile, thecountry
column in the free IP to Country ASN database represents the geolocated country of ranges as per our IP to Geolocation data. It does not provide information regarding the organization's country, but rather the country of the ranges in general.
Along with our ASN database product, IPinfo also provides a robust API service. ASN data is available in two ways:
The ASN API service is available as part of our Basic Tier plan.
You can get ASN level information of an IP address by looking up the IP address through our API.
API Query:
$ curl ipinfo.io/$IP_ADDRESS/ASN?token=$TOKEN
Response:
{
"asn": "AS1221",
"name": "Telstra Limited",
"domain": "telstra.com.au",
"route": "58.160.0.0/12",
"type": "isp"
}
We will also provide basic ASN information on our free and publicly accessible API service through the
org
field.
You can get information on the ASNs themselves by looking up an ASN. Just prefix the AS
keyword in front of the ASN (e.g. AS12345
) and look it up on our API endpoint.
$ curl ipinfo.io/$ASN?token=$TOKEN
Response:
{
"asn": "AS2828",
"name": "Verizon Business",
"country": "US",
"allocated": "2001-12-19",
"registry": "arin",
"domain": "verizonbusiness.com",
"num_ips": 6654976,
"type": "isp",
"prefixes": [
{
"netblock": "104.237.24.0/22",
"id": "VOICECARRIER",
"name": "Voice Carrier, LLC",
"country": "US",
"size": "1024",
"status": "ALLOCATION",
"domain": "voicecarrier.com"
},
// ...
],
"prefixes6": [
{
"netblock": "2610:18::/32",
"id": "XOXO-IPV6-A",
"name": "Verizon Business",
"country": "US",
"size": "79228162514264337593543950336",
"status": "ALLOCATION",
"domain": "verizonbusiness.com"
},
// ...
],
"peers": [
"17216",
// ...
],
"upstreams": [
"1299",
// ...
]
"downstreams": [
"9",
// ...
]
}
- [CSV Database] ASN Database Sample
- [JSON Database] ASN Database Sample
- [MMDB Database] ASN Database Sample
- [API] ASN Lookup API Response Sample
- [API]IP Address to ASN API Response Sample
🔗 ASN Data Downloads Documentation
If you have any questions about using our data, feel free to ask us about it in the IPinfo Community.
- IPinfo Community posts tagged as
ASN
- Choosing between the ASN, IP to ASN and IP to Company database
- Differences in data for the ASN and the IP to Company database
- What is an autonomous system (ASN)?
Currently, we are limiting the sample datasets to only 100 rows. If you would like to request a larger sample or would like to get a quote on the database products feel free to reach to us.
Follow us on Twitter and LinkedIn to learn more about IP Address data and it’s fascinating potential.
Founded in 2013, IPinfo prides itself on being the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier, VPN detection, hosted domains, and IP type data sets. Our API handles over 40 billion requests a month for 100,000 businesses and developers.