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.

Try it
Ready-made, maintained by usRecords, 14 fieldsv1.0

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

Asnsoptional
AS numbers to look up, such as 13335 or AS13335. One per line, or separated by commas.
Example: 13335, 577
Top noptional
Instead of asns: list the top N networks by rank (1 is the largest).
Example: 100

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
Endpoint
POSThttps://pullrow.dev/v1/apis/network-as-rank/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

asnslist
AS numbers to look up, such as 13335 or AS13335.
example: 13335, 577
top_nnumber
Instead of asns: list the top N networks by rank (1 is the largest).
example: 100

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
asnnumberAsn3 of 3
as_nametextAs name3 of 3
ranknumberRank3 of 3
countrytextCountry3 of 3
organization_idtextOrganization ID (hidden)3 of 3
customer_cone_asnsnumberCustomer cone asns3 of 3
customer_cone_prefixesnumberCustomer cone prefixes3 of 3
customer_cone_addressesnumberCustomer cone addresses3 of 3
degree_totalnumberDegree total3 of 3
degree_customernumberDegree customer3 of 3
degree_peernumberDegree peer3 of 3
degree_providernumberDegree provider3 of 3
is_clique_memberyes or noClique member3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordAsnAs nameRankCustomer cone asnsCustomer cone prefixesCustomer cone addressesDegree totalDegree customerDegree peerDegree providerClique memberCountry
113,335CLOUDFLARENET611,06444,59850,474,1361,5541,06339398YesUS
2577BACOM13144128,81723,784,329322255616YesCA
33,356LEVEL3152,579955,6302,263,051,6016,6266,545810YesUS

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.
Known limits
  • 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.