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.

Try it
Ready-made, maintained by usRecords, 20 fieldsv1.0

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

Resources
IP prefixes or IP addresses to look up, such as 1.1.1.0/24 or 1.1.1.1. Up to 50 per run. AS numbers are not accepted. One per line, or separated by commas.
Example: 1.1.1.0/24
Collectorsoptional
Only these RIS route collectors, such as RRC00 (Amsterdam), RRC01 (London) or RRC11 (New York). All collectors when empty. One per line, or separated by commas.
Example: RRC01, RRC11
Locationsoptional
Only routes whose collector or peer location contains one of these words, such as Amsterdam, US or Tokyo. All locations when empty. One per line, or separated by commas.
Example: Amsterdam, US

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
Endpoint
POSThttps://pullrow.dev/v1/apis/bgp-looking-glass/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

resourceslistrequired
IP prefixes or IP addresses to look up, such as 1.1.1.0/24 or 1.1.1.1. Up to 50 per run. AS numbers are not accepted.
example: 1.1.1.0/24
collectorslist
Only these RIS route collectors, such as RRC00 (Amsterdam), RRC01 (London) or RRC11 (New York). All collectors when empty.
example: RRC01, RRC11
locationslist
Only routes whose collector or peer location contains one of these words, such as Amsterdam, US or Tokyo. All locations when empty.
example: Amsterdam, US

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 nameTypeShown on this page asFilled
resourcetextResource3 of 3
prefixtextPrefix3 of 3
collectortextCollector3 of 3
collector_locationtextCollector location3 of 3
collector_countrytextCollector country3 of 3
peer_iptextPeer ip3 of 3
peer_asnnumberPeer asn3 of 3
peer_locationtextPeer location3 of 3
as_pathtextAs path3 of 3
as_path_lengthnumberAs path length3 of 3
upstream_asnnumberUpstream asn3 of 3
origin_asnnumberOrigin asn3 of 3
bgp_origintextBgp origin3 of 3
communitieslistCommunities1 of 3
large_communitieslistLarge communities1 of 3
extended_communitieslistExtended communities0 of 3
community_descriptionslistCommunity descriptions0 of 3
next_hoptextNext hop3 of 3
last_updated_atdate and timeLast updated3 of 3
last_confirmed_atdate and timeLast confirmed3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordResourcePrefixCollectorPeer ipPeer asnAs pathAs path lengthUpstream asnOrigin asnBgp originCommunitiesLarge communitiesExtended communitiesCommunity descriptionsNext hopCollector locationCollector countryPeer locationLast updatedLast confirmed
11.1.1.0/241.1.1.0/24RRC00154.11.12.212852852 13335285213,335IGP————154.11.12.212Amsterdam, NLNLEdmonton, CADec 2, 2026Dec 6, 2026
21.1.1.0/241.1.1.0/24RRC00198.58.198.2521,4031403 1333521,40313,335IGP1403:1050———198.58.198.252Amsterdam, NLNLLongueuil, CADec 2, 2026Dec 6, 2026
31.1.1.0/241.1.1.0/24RRC00193.0.0.563,3333333 1333523,33313,335IGP—13335:10000020:0——193.0.0.56Amsterdam, NLNLAmsterdam, NLDec 2, 2026Dec 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.
Known limits
  • 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.