# AS Path Length
This data call returns AS-path metrics (e.g. shortest or longest AS-path to other ASNs we are peering with) for the queried ASN.
GET /data/as-path-length/data.json?resource=AS3333
# Parameters
Key | Value | Info | Required |
---|---|---|---|
resource | AS | AS number to query | YES |
sort_by | "number" (default), "count", "location", "geo" | Sort by the given field. In the case of "geo", sort by approximating a world map on to a circle. | NO |
# Data Output
Key | Info | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stats | List with path length statistics per RIS route collector. Each record has the following format:
| ||||||||||||||||||||||||||
query_starttime/query_endtime | Holds the time period the query covers. | ||||||||||||||||||||||||||
resource | Defines the resource used for the query |
# Code Examples
# Available versions for this data call:
2.1
This is the current and only version of this API call.