BGP Prefix Origin History API

Who announced an IP block in BGP and when, from RIPEstat's routing history (RIPE NCC route collectors): one row per continuous period of each origin AS and prefix, with the AS name, start and end, whether it is still announced and how many RIS peers saw it.

$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, 12 fieldsv1.0

Data from stat.ripe.net/docs/data-api/api-endpoints/routing-history

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, IP addresses or AS numbers to look up, such as 8.8.8.0/24, 8.8.8.8 or AS15169. Up to 50 per run. An IP address is looked up through every routed block that contains it. One per line, or separated by commas.
Example: 8.8.8.0/24
From dateoptional
Only periods on or after this day, as YYYY-MM-DD. Empty: the whole history, back to 2000.
Example: 2015-01-01
To dateoptional
Only periods up to this day, as YYYY-MM-DD. Empty: up to the latest data.
Example: 2026-12-01
Minimum peersoptional
Leave out routes seen by fewer than this many full-feed RIS peers, from 1 to 1000. 10 hides local noise; 1 also shows low-visibility announcements such as short hijacks and leaks.
Match typesoptional
Only these kinds of rows: exact (the block asked for), covering (a larger block that contains it), more_specific (a smaller block inside it) or originated (prefixes of an AS number asked for). All when empty. One per line, or separated by commas.

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-prefix-origin-history/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-prefix-origin-history/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"resources":["8.8.8.0/24"]},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

resourceslistrequired
IP prefixes, IP addresses or AS numbers to look up, such as 8.8.8.0/24, 8.8.8.8 or AS15169. Up to 50 per run. An IP address is looked up through every routed block that contains it.
example: 8.8.8.0/24
from_datetext
Only periods on or after this day, as YYYY-MM-DD. Empty: the whole history, back to 2000.
example: 2015-01-01
to_datetext
Only periods up to this day, as YYYY-MM-DD. Empty: up to the latest data.
example: 2026-12-01
min_peersnumber
Leave out routes seen by fewer than this many full-feed RIS peers, from 1 to 1000. 10 hides local noise; 1 also shows low-visibility announcements such as short hijacks and leaks.
default: 10
match_typeslist
Only these kinds of rows: exact (the block asked for), covering (a larger block that contains it), more_specific (a smaller block inside it) or originated (prefixes of an AS number asked for). All when empty.
one of: exact, covering, more_specific, originated

What's in each record

12 fields.

Basics

  • Resource

    The entry this row answers, as RIPEstat reads it, such as 8.8.8.0/24, 8.8.8.8 or AS15169.

    Example 8.8.8.0/24

  • Prefix

    The announced IP block, such as 8.8.8.0/24.

    Example 8.8.8.0/24

  • Match type

    How the block relates to the entry: exact, covering (a larger block that contains it), more_specific (a smaller block inside it) or originated (announced by the AS number asked for).

    Example exact

  • Origin asn

    The AS number that originated the announcement, such as 15169.

    Example 21,284

  • Origin as name

    RIPEstat's name for that AS number today, such as GOOGLE - Google LLC.

    Example LEVEL3 - Level 3 Parent, LLC

  • Current

    Yes when the period runs to the latest RIS data, so this origin still announces the block; empty when to_date is in the past.

    Example No

  • Duration days

    Length of the period in days, to one decimal.

    Example 60

  • Full peers seeing

    Average number of full-feed RIS peers that saw the route during the period, weighted by time.

    Example 22.4

  • Maximum full peers seeing

    The most full-feed RIS peers that saw the route in any part of the period.

    Example 24.1

Dates

  • Started

    When this origin's announcement of the block began in this period (UTC).

    Example Oct 28, 2002

  • Ended

    When the period ended (UTC); for a period still running, the time of the latest RIS data.

    Example Dec 26, 2002

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
match_typetextMatch type3 of 3
origin_asnnumberOrigin asn3 of 3
origin_as_nametextOrigin as name2 of 3
started_atdate and timeStarted3 of 3
ended_atdate and timeEnded3 of 3
is_currentyes or noCurrent3 of 3
duration_daysnumberDuration days3 of 3
full_peers_seeingnumberFull peers seeing3 of 3
max_full_peers_seeingnumberMaximum full peers seeing3 of 3
ripestat_urllinkRipestat link3 of 3

How it reads the site

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

Sample records

Sample records
RecordResourcePrefixMatch typeOrigin asnOrigin as nameCurrentDuration daysFull peers seeingMaximum full peers seeingStartedEndedRipestat link
18.8.8.0/248.8.8.0/24exact21,284—No6022.424.1Oct 28, 2002Dec 26, 2002stat.ripe.net/resource/8.8.8.0/24
28.8.8.0/248.0.0.0/8covering3,356LEVEL3 - Level 3 Parent, LLCNo3,14472113.9Jun 1, 2003Jan 8, 2012stat.ripe.net/resource/8.0.0.0/8
38.8.8.0/248.0.0.0/9covering3,356LEVEL3 - Level 3 Parent, LLCNo2,17283.2113.9Jan 28, 2006Jan 8, 2012stat.ripe.net/resource/8.0.0.0/9

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.
  • Routes seen by fewer than min_peers full-feed RIS peers (10 by default) are left out. Set min_peers to 1 to also see local, low-visibility announcements, where short hijacks and leaks often show.
  • Start and end times are only as exact as RIPEstat's history buckets: about 12 days for a window of years and 8 hours for a window of a few weeks. Narrow from_date and to_date for finer times.
  • A gap between two periods of the same origin can be a real withdrawal or a gap in RIS data: every route shows the same gaps from 2012-01-09 to 2012-01-20 and from 2014-02-03 to 2014-02-26.
  • Periods are cut to the window: one that began before from_date starts at the window's first bucket, and one that ran past to_date ends at to_date. RIS history starts in 2000 and reaches midnight UTC of the current day, so it lags by up to a day.
  • Large networks are slow: AS15169, with about 3,200 prefixes, takes about 70 seconds. An entry RIPEstat does not answer within 100 seconds is skipped, and the run then ends as partial with the other entries.
  • Up to 50 entries and 5,000 periods per run. Larger blocks announced by other networks (such as 8.0.0.0/9 for 8.8.8.0/24) are included and marked covering; use match_types to keep only some kinds.
  • origin_as_name is RIPEstat's current name for the AS number, not necessarily the name it had during the period, and it is empty for numbers RIPEstat has no name for.

Version history

A run uses the live version unless the request names another one with version.