# 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:
numberid of the route collector
count:number of routes to the queried AS on this route collector
locationlocation of the route collector
stripped statistics that exclude AS path prepending
avgaverage path length of all routes, excluding the RIS peers
maxmaximum path length observed, excluding the peer AS
minminimum number of path entries, excluding the peer AS
sumtotal number of path elements, excluding peer AS, seen in all routes
unstripped statistics including AS path prepending
avgaverage path length of all routes, excluding the RIS peers
maxmaximum path length observed, excluding the peer AS
minminimum number of path entries, excluding the peer AS
sumtotal number of path elements, excluding peer AS, seen in all routes
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.

Last Updated: Wednesday, 17 November 2021