# CAIDA AS Rank API reference

> 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…

Source: https://osinttools.io/apis/caida-as-rank/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/caida-as-rank/

- Base URL: https://api.asrank.caida.org/v2
- Authentication: No key needed. The docs describe no key; their examples send none.
- Rate limits: Not stated in the docs
- Vendor docs: https://api.asrank.caida.org/v2/docs

## Overview

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](https://api.asrank.caida.org/v2/schema/index.html).

## REST

### Look up one autonomous system by its number.

`GET /restful/asns/{asn}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `asn` | path | string | yes | AS number, digits only Example: 64496 |
| `populate` | query | integer | no | The docs' example uses populate=1 to return the full record Example: 1 |

Response fields:

- `asn` (string): AS number
- `asnName` (string): Name of the AS
- `rank` (integer): AS Rank position
- `organization.orgId` (string): Organization identifier
- `cone.numberAsns` (integer): ASNs in the customer cone
- `cone.numberPrefixes` (integer): Prefixes in the cone
- `cone.numberAddresses` (integer): Addresses in the cone
- `country.iso` (string): Country code
- `asnDegree.total` (integer): Total neighbors

```bash
curl 'https://api.asrank.caida.org/v2/restful/asns/64496'
```

Example response (200):

```json
{
  "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}`

- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | string | yes | Organization identifier (orgId) Example: 0000000000 |

Response fields:

- `orgId` (string): Organization identifier
- `orgName` (string): Organization name
- `rank` (integer): Organization rank

```bash
curl 'https://api.asrank.caida.org/v2/restful/organizations/0000000000'
```

Example response (200):

```json
{
  "data": {
    "organization": {
      "orgId": "0000000000",
      "orgName": "Example Networks",
      "rank": 900
    }
  }
}
```

## GraphQL

### Run a GraphQL query for ASNs, organizations, links, locations and cones.

`POST /graphql`

- Footprint: passive (the target is not contacted)

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

Response fields:

- `data` (object): Query result, shaped like the query

```bash
curl -X POST 'https://api.asrank.caida.org/v2/graphql' \
  -H 'Content-Type: application/json' \
  -d '{"query":"{ asn(asn:\"64496\"){ asn asnName cone { numberAsns } } }"}'
```

Example response (200):

```json
{
  "data": {
    "asn": {
      "asn": "64496",
      "asnName": "EXAMPLE-AS",
      "cone": {
        "numberAsns": 12
      }
    }
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
