BGP Looking Glass API
The routes the RIPE NCC's RIS route collectors see right now for an IP block, from RIPEstat's looking glass: one row per collector and BGP peer with the AS path, peer and origin AS, communities and their known meanings, next hop and when the route last changed.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from stat.ripe.net/docs/data-api/api-endpoints/looking-glass
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/bgp-looking-glass/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"resources":["1.1.1.0/24"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
20 fields.
Basics
- Resource
The entry this row answers, as it was asked, such as 1.1.1.0/24 or 1.1.1.1.
Example 1.1.1.0/24
- Prefix
The routed IP block the route is for, such as 1.1.1.0/24.
Example 1.1.1.0/24
- Collector
The RIS route collector that reported the route, such as RRC01.
Example RRC00
- Peer ip
IP address of the BGP peer that sent the route to the collector.
Example 154.11.12.212
- Peer asn
AS number of that peer: the first AS in the path.
Example 852
- As path
The AS path as the peer sees it, from the peer to the origin, such as 3257 13335.
Example 852 13335
- As path length
Number of AS numbers in the path, prepending included.
Example 2
- Upstream asn
The AS right before the origin in the path (prepending skipped): the origin's neighbour on this path.
Example 852
- Origin asn
The AS number that originates the route, such as 13335.
Example 13,335
- Bgp origin
The route's BGP origin attribute: IGP, EGP or INCOMPLETE.
Example IGP
- Communities
Standard BGP communities on the route, such as 3257:4000.
Example 1403:1050
- Large communities
Large BGP communities on the route, such as 13335:10000021:0.
Example 13335:10000020:0
- Extended communities
Extended BGP communities on the route.
- Community descriptions
Known meanings of the route's communities, each as the community and its meaning, such as 3257:4000 GTT customer route.
Example 3356:3 North America, 3356:123 Customer route
- Next hop
The next hop address the peer gives for the route.
Example 154.11.12.212
Location
- Collector location
Where the collector is, such as London, GB.
Example Amsterdam, NL
- Collector country
Two-letter country code of the collector's location, such as GB.
Example NL
- Peer location
Where the peer is, for peers of the multihop collectors, such as Lome, TG.
Example Edmonton, CA
Dates
- Last updated
When this peer's route last changed (UTC).
Example Dec 2, 2026
- Last confirmed
When the collector last confirmed the route (UTC).
Example Dec 6, 2026
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
resource | text | Resource | 3 of 3 |
prefix | text | Prefix | 3 of 3 |
collector | text | Collector | 3 of 3 |
collector_location | text | Collector location | 3 of 3 |
collector_country | text | Collector country | 3 of 3 |
peer_ip | text | Peer ip | 3 of 3 |
peer_asn | number | Peer asn | 3 of 3 |
peer_location | text | Peer location | 3 of 3 |
as_path | text | As path | 3 of 3 |
as_path_length | number | As path length | 3 of 3 |
upstream_asn | number | Upstream asn | 3 of 3 |
origin_asn | number | Origin asn | 3 of 3 |
bgp_origin | text | Bgp origin | 3 of 3 |
communities | list | Communities | 1 of 3 |
large_communities | list | Large communities | 1 of 3 |
extended_communities | list | Extended communities | 0 of 3 |
community_descriptions | list | Community descriptions | 0 of 3 |
next_hop | text | Next hop | 3 of 3 |
last_updated_at | date and time | Last updated | 3 of 3 |
last_confirmed_at | date and time | Last confirmed | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Resource | Prefix | Collector | Peer ip | Peer asn | As path | As path length | Upstream asn | Origin asn | Bgp origin | Communities | Large communities | Extended communities | Community descriptions | Next hop | Collector location | Collector country | Peer location | Last updated | Last confirmed |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1.1.1.0/24 | 1.1.1.0/24 | RRC00 | 154.11.12.212 | 852 | 852 13335 | 2 | 852 | 13,335 | IGP | — | — | — | — | 154.11.12.212 | Amsterdam, NL | NL | Edmonton, CA | Dec 2, 2026 | Dec 6, 2026 |
| 2 | 1.1.1.0/24 | 1.1.1.0/24 | RRC00 | 198.58.198.252 | 1,403 | 1403 13335 | 2 | 1,403 | 13,335 | IGP | 1403:1050 | — | — | — | 198.58.198.252 | Amsterdam, NL | NL | Longueuil, CA | Dec 2, 2026 | Dec 6, 2026 |
| 3 | 1.1.1.0/24 | 1.1.1.0/24 | RRC00 | 193.0.0.56 | 3,333 | 3333 13335 | 2 | 3,333 | 13,335 | IGP | — | 13335:10000020:0 | — | — | 193.0.0.56 | Amsterdam, NL | NL | Amsterdam, NL | Dec 2, 2026 | Dec 6, 2026 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Data from RIPEstat by the RIPE NCC, built from its RIS route collectors. Credit RIPEstat (RIPE NCC) when you show or publish results; the RIPE NCC provides this data for network analysis, monitoring, debugging and research.
- This is the RIS view only: about 23 collectors and the networks that peer with them (1.1.1.0/24 showed 365 routes from 23 collectors). Other parts of the internet, and routes not confirmed in the last 24 hours, are not shown.
- A prefix must be routed exactly as written: a block that is announced only as larger or smaller pieces returns no rows. An IP address returns the routes of the most specific routed block that holds it. AS numbers are not accepted.
- Routes are near real time, usually seconds to minutes behind the collectors, so a change made a moment ago may not show yet.
- peer_asn is the first AS in the path. peer_location is filled only for peers of the multihop collectors RRC00, RRC24 and RRC25, and only when RIPEstat knows it.
- community_descriptions holds the meanings RIPEstat knows for some networks' communities; most communities have none.
- Up to 50 entries and 5,000 routes per run. A collector name that does not exist, or a location word no collector has, simply returns no rows.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.