# RIS Peerings
This data call returns routes for advertisements of a given IP resource, or that are originated from a given ASN, as seen by the RIPE NCC route collectors.
Historical lookups are supported - a query has to be aligned to the times (00:00, 08:00 and 16:00 UTC) when RIS data has been collected. By default, the data call returns the latest data.
GET /data/ris-peerings/data.json?resource=140.78.0.0/16
# Parameters
Key | Value | Info | Required |
---|---|---|---|
resource | Prefix | - | YES |
query_time | ISO8601 or Unix timestamp | Defines the time of the lookup. This value will be automatically aligned to a RIS collection time. | No - by default it will return the latest available data point (either 00:00, 08:00 or 16:00 UTC) |
# Data Output
Key | Info | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
peerings |
A list of ASNs grouped by the RIPE NCC Routing Information Service probe they were seen by. Each group item has the following structure:
| ||||||||||||||||||||||||||
resource | The resource this query based on. | ||||||||||||||||||||||||||
query_starttime/query_endtime | The time period the query covers. In the upcoming version 2 this will change to just "query_time". |
# Code Examples
# Available versions for this data call:
deprecated - n.a. - 0.4
Difference to 1.*: "resource" field for AS queries is with the "AS" prefix
upcoming - 2.0
Difference to 1.*: query_starttime and query_endtime will be replace by just query_time in the output