ASN API
We now offer an endpoint to query ASN information. The ASN number may be used at the end of the base URL to return information pertinent to the ASN.
Example Request
1
curl "https://api.ipdata.co/AS2/?api-key=test"
Copied!
Sample Response
1
{
2
"domain": "udel.edu",
3
"usage": "edu",
4
"name": "University of Delaware",
5
"ipv4_prefixes": [
6
"128.4.0.0/16",
7
"91.143.144.0/20",
8
"177.55.80.0/22",
9
"12.35.70.0/23",
10
"170.244.24.0/23",
11
"45.229.70.0/24",
12
"45.163.227.0/24",
13
"45.163.224.0/24",
14
"31.129.245.0/24",
15
"103.250.31.0/24",
16
"103.29.28.0/24",
17
"50.236.231.0/24"
18
],
19
"ipv6_prefixes": [
20
"2001:df4:200::/47"
21
],
22
"num_ips": "73472",
23
"registry": "arin",
24
"country": "US",
25
"date": "1991-01-10",
26
"status": "assigned",
27
"upstream": [
28
34,
29
3356,
30
37628,
31
41837,
32
55257,
33
56720,
34
135216,
35
207422,
36
265007,
37
266489,
38
267222,
39
270289
40
],
41
"downstream": [
42
24556,
43
394717
44
],
45
"peers": [
46
21954,
47
28591,
48
59445,
49
137704
50
]
51
}
Copied!

Data Fields

Field
Description
domain
The website of the organization
usage
Usage Type (see below for more info)
name
The name of the organization that owns the ASN
ipv4_prefixes
The ipv4 network prefixes associated with the ASN
ipv6_prefixes
The ipv6 network prefixes associated with the ASN
num_ips
The number of IP addresses associated with the ASN
registry
Registry/Administrator of the ASN
country
Country associated with the ASN
date
Date ASN was assigned
status
ASN status
upstream
Upstream providers for the ASN in question
downstream
Downstream ASN providers for the ASN in question
peers
Peer ASN providers for the ASN in question

Usage Type

Type
Description
hosting
Belonging to a datacenter (we have mapped 200M+ hosting IP addresses)
isp
Belonging to ISP IP space (we have mapped 1B+ isp IPs)
cdn
Belonging to a Content delivery network
edu
Educational institutions
gov
One of ~25,000 government agencies worldwide
mil
Military organizations
business
End-user organizations
Last modified 8d ago
Copy link