Network (ASN) Rank & Customer Cone API
Internet network rankings from CAIDA AS Rank: for any AS number or the top N networks, the rank, country, customer cone size (ASNs, prefixes, addresses) and counts of customers, peers and providers.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from asrank.caida.org
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/network-as-rank/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"asns":["13335","577"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
14 fields: 12 here, 2 technical ones under Technical details.
Basics
- Asn
AS number.
Example 13,335
- As name
Network name registered for the AS.
Example CLOUDFLARENET
- Rank
CAIDA AS Rank by customer cone size; 1 is the largest.
Example 61
- Customer cone asns
Number of networks in the customer cone.
Example 1,064
- Customer cone prefixes
Number of IP prefixes in the customer cone.
Example 44,598
- Customer cone addresses
Number of IP addresses in the customer cone.
Example 50,474,136
- Degree total
Total number of neighbouring networks.
Example 1,554
- Degree customer
Number of customer networks.
Example 1,063
- Degree peer
Number of peer networks.
Example 393
- Degree provider
Number of upstream provider networks.
Example 98
- Clique member
Yes when the network is in the top-tier clique of the internet.
Example Yes
Location
- Country
Two-letter country code of the network.
Example US
Technical detailsField names and types for developers, and the 2 fields hidden above
Hidden by default
These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idThe AS number as text. - Organization ID
organization_idCAIDA's id of the organisation that owns the AS.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
asn | number | Asn | 3 of 3 |
as_name | text | As name | 3 of 3 |
rank | number | Rank | 3 of 3 |
country | text | Country | 3 of 3 |
organization_id | text | Organization ID (hidden) | 3 of 3 |
customer_cone_asns | number | Customer cone asns | 3 of 3 |
customer_cone_prefixes | number | Customer cone prefixes | 3 of 3 |
customer_cone_addresses | number | Customer cone addresses | 3 of 3 |
degree_total | number | Degree total | 3 of 3 |
degree_customer | number | Degree customer | 3 of 3 |
degree_peer | number | Degree peer | 3 of 3 |
degree_provider | number | Degree provider | 3 of 3 |
is_clique_member | yes or no | Clique member | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Asn | As name | Rank | Customer cone asns | Customer cone prefixes | Customer cone addresses | Degree total | Degree customer | Degree peer | Degree provider | Clique member | Country |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 13,335 | CLOUDFLARENET | 61 | 1,064 | 44,598 | 50,474,136 | 1,554 | 1,063 | 393 | 98 | Yes | US |
| 2 | 577 | BACOM | 131 | 441 | 28,817 | 23,784,329 | 322 | 255 | 61 | 6 | Yes | CA |
| 3 | 3,356 | LEVEL3 | 1 | 52,579 | 955,630 | 2,263,051,601 | 6,626 | 6,545 | 81 | 0 | Yes | US |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Rankings and cones are CAIDA's inferences from public routing data, refreshed about once a month; they are estimates, not business facts.
- An AS number CAIDA has not seen is skipped (no row). Give asns, or top_n, not both; asns wins.
- Top lists return at most 1,000 networks per run, in rank order.
- organization_id is CAIDA's own organisation id; the organisation name is not included.
- CAIDA data falls under CAIDA's acceptable-use terms; confirm commercial use with CAIDA before relying on it, and credit CAIDA AS Rank.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.