Skip to content
OSINTtools.io

CAIDA AS Rank API

CAIDA's ranking of autonomous systems and organisations by customer cone, with AS relationships and an open API.

Base URL
https://api.asrank.caida.org/v2
Sign-in
No key
Format
REST, GraphQL
Endpoints
3

Compiled by OSINTtools.io editors from api.asrank.caida.org · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The AS Rank API returns CAIDA's ranking and relationship data for autonomous systems (ASNs): rank, name, organization, customer cone size, degree and country. An investigator uses it to see who runs a network, how large it is and how it connects to others.

It is primarily a GraphQL API at /v2/graphql. A simplified RESTful interface under /v2/restful/ wraps the GraphQL API and returns the same data. The docs do not describe an API key or rate limits; their example requests send no key.

Without dateStart and dateEnd the latest month is returned. Other REST paths documented: /asns, /asns/name/:name, /asnLinks, /asnLinks/:asn0 and /organizations. The schema is documented at the schema page.

Quick start

  1. No key needed

    The CAIDA AS Rank API answers without an account or key.

  2. Make your first request

    Look up one autonomous system by its number.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.asrank.caida.org/v2/restful/asns/64496'
  3. Read the response

    A 200 response looks like this.

    {
      "data": {
        "asn": {
          "asn": "64496",
          "asnName": "EXAMPLE-AS",
          "rank": 1234,
          "organization": {
            "orgId": "0000000000"
          },
          "cone": {
            "numberAsns": 12,
            "numberPrefixes": 40,
            "numberAddresses": 10240
          },
          "country": {
            "iso": "ZZ"
          },
          "asnDegree": {
            "total": 8
          }
        }
      }
    }

Authentication

No key or account: every endpoint answers without one.

The docs describe no key; their examples send none.

Rate limits and pricing

Not stated in the docs

REST

  • Passive: the target is not contacted

Returns the record for one ASN. The docs' example adds populate=1 to get the full record.

Path parameters

asnstringrequired

AS number, digits only

Example: 64496

Query parameters

populateinteger

The docs' example uses populate=1 to return the full record

Example: 1
Response fields · 9Show

asnstring

AS number

asnNamestring

Name of the AS

rankinteger

AS Rank position

orgIdstring

Organization identifier

numberAsnsinteger

ASNs in the customer cone

numberPrefixesinteger

Prefixes in the cone

numberAddressesinteger

Addresses in the cone

isostring

Country code

totalinteger

Total neighbors

curl 'https://api.asrank.caida.org/v2/restful/asns/64496'
No key needed
Response
{
  "data": {
    "asn": {
      "asn": "64496",
      "asnName": "EXAMPLE-AS",
      "rank": 1234,
      "organization": {
        "orgId": "0000000000"
      },
      "cone": {
        "numberAsns": 12,
        "numberPrefixes": 40,
        "numberAddresses": 10240
      },
      "country": {
        "iso": "ZZ"
      },
      "asnDegree": {
        "total": 8
      }
    }
  }
}

Look up one organization by its identifier.

GET/restful/organizations/{organization}

  • Passive: the target is not contacted

Returns an organization record: its rank, member ASNs and neighbors, per the docs' field list.

Path parameters

organizationstringrequired

Organization identifier (orgId)

Example: 0000000000
Response fields · 3Show

orgIdstring

Organization identifier

orgNamestring

Organization name

rankinteger

Organization rank

curl 'https://api.asrank.caida.org/v2/restful/organizations/0000000000'
No key needed
Response
{
  "data": {
    "organization": {
      "orgId": "0000000000",
      "orgName": "Example Networks",
      "rank": 900
    }
  }
}

GraphQL

  • Passive: the target is not contacted

Queries include asn, asns, organization, organizations, asnLink, asnLinks, asnCone, dataset and locations. Connection types return edges and pageInfo.

Request body (JSON) · 1Show

querystringalways present

GraphQL query text

Response fields · 1Show

dataobject

Query result, shaped like the query

curl -X POST 'https://api.asrank.caida.org/v2/graphql' \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ asn(asn:\"64496\"){ asn asnName cone { numberAsns } } }"}'
No key needed
Response
{
  "data": {
    "asn": {
      "asn": "64496",
      "asnName": "EXAMPLE-AS",
      "cone": {
        "numberAsns": 12
      }
    }
  }
}