{"api":{"id":"api_4fb110d42c5e27a606f0643a","slug":"bgp-prefix-origin-history","name":"BGP Prefix Origin History API","description":"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.","kind":"ready_made","visibility":"public","domain":"stat.ripe.net","source_url":"https://stat.ripe.net/docs/data-api/api-endpoints/routing-history","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":12,"created_at":"2026-12-06T03:57:27.609Z","updated_at":"2026-12-06T03:57:27.609Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"resource","type":"string","description":"The entry this row answers, as RIPEstat reads it, such as 8.8.8.0/24, 8.8.8.8 or AS15169.","required":true,"coverage":1,"example":"8.8.8.0/24"},{"name":"prefix","type":"string","description":"The announced IP block, such as 8.8.8.0/24.","required":true,"coverage":1,"example":"8.8.8.0/24"},{"name":"match_type","type":"string","description":"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).","required":false,"coverage":1,"example":"exact"},{"name":"origin_asn","type":"integer","description":"The AS number that originated the announcement, such as 15169.","required":true,"coverage":1,"example":21284},{"name":"origin_as_name","type":"string","description":"RIPEstat's name for that AS number today, such as GOOGLE - Google LLC.","required":false,"coverage":0.8,"example":"LEVEL3 - Level 3 Parent, LLC"},{"name":"started_at","type":"datetime","description":"When this origin's announcement of the block began in this period (UTC).","required":false,"coverage":1,"example":"2002-10-28T00:00:00.000Z"},{"name":"ended_at","type":"datetime","description":"When the period ended (UTC); for a period still running, the time of the latest RIS data.","required":false,"coverage":1,"example":"2002-12-26T23:59:59.000Z"},{"name":"is_current","type":"boolean","description":"True when the period runs to the latest RIS data, so this origin still announces the block; empty when to_date is in the past.","required":false,"coverage":1,"example":false},{"name":"duration_days","type":"number","description":"Length of the period in days, to one decimal.","required":false,"coverage":1,"example":60},{"name":"full_peers_seeing","type":"number","description":"Average number of full-feed RIS peers that saw the route during the period, weighted by time.","required":false,"coverage":1,"example":22.4},{"name":"max_full_peers_seeing","type":"number","description":"The most full-feed RIS peers that saw the route in any part of the period.","required":false,"coverage":1,"example":24.1},{"name":"ripestat_url","type":"url","description":"The block's page on RIPEstat.","required":false,"coverage":1,"example":"https://stat.ripe.net/resource/8.8.8.0/24"}],"inputs":[{"name":"resources","type":"array","description":"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"],"required":true},{"name":"from_date","type":"string","description":"Only periods on or after this day, as YYYY-MM-DD. Empty: the whole history, back to 2000.","example":"2015-01-01"},{"name":"to_date","type":"string","description":"Only periods up to this day, as YYYY-MM-DD. Empty: up to the latest data.","example":"2026-12-01"},{"name":"min_peers","type":"integer","description":"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},{"name":"match_types","type":"array","description":"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.","enum":["exact","covering","more_specific","originated"]}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"duration_days":{"description":"Length of the period in days, to one decimal.","type":"number"},"ended_at":{"description":"When the period ended (UTC); for a period still running, the time of the latest RIS data.","format":"date-time","type":"string"},"full_peers_seeing":{"description":"Average number of full-feed RIS peers that saw the route during the period, weighted by time.","type":"number"},"is_current":{"description":"True when the period runs to the latest RIS data, so this origin still announces the block; empty when to_date is in the past.","type":"boolean"},"match_type":{"description":"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).","type":"string"},"max_full_peers_seeing":{"description":"The most full-feed RIS peers that saw the route in any part of the period.","type":"number"},"origin_as_name":{"description":"RIPEstat's name for that AS number today, such as GOOGLE - Google LLC.","type":"string"},"origin_asn":{"description":"The AS number that originated the announcement, such as 15169.","type":"integer"},"prefix":{"description":"The announced IP block, such as 8.8.8.0/24.","type":"string"},"resource":{"description":"The entry this row answers, as RIPEstat reads it, such as 8.8.8.0/24, 8.8.8.8 or AS15169.","type":"string"},"ripestat_url":{"description":"The block's page on RIPEstat.","format":"uri","type":"string"},"started_at":{"description":"When this origin's announcement of the block began in this period (UTC).","format":"date-time","type":"string"}},"required":["resource","prefix","origin_asn"],"title":"BGP Prefix Origin History API","type":"object"},"samples":[{"resource":"8.8.8.0/24","prefix":"8.8.8.0/24","match_type":"exact","origin_asn":21284,"origin_as_name":null,"started_at":"2002-10-28T00:00:00.000Z","ended_at":"2002-12-26T23:59:59.000Z","is_current":false,"duration_days":60,"full_peers_seeing":22.4,"max_full_peers_seeing":24.1,"ripestat_url":"https://stat.ripe.net/resource/8.8.8.0/24"},{"resource":"8.8.8.0/24","prefix":"8.0.0.0/8","match_type":"covering","origin_asn":3356,"origin_as_name":"LEVEL3 - Level 3 Parent, LLC","started_at":"2003-06-01T00:00:00.000Z","ended_at":"2012-01-08T23:59:59.000Z","is_current":false,"duration_days":3144,"full_peers_seeing":72,"max_full_peers_seeing":113.9,"ripestat_url":"https://stat.ripe.net/resource/8.0.0.0/8"},{"resource":"8.8.8.0/24","prefix":"8.0.0.0/9","match_type":"covering","origin_asn":3356,"origin_as_name":"LEVEL3 - Level 3 Parent, LLC","started_at":"2006-01-28T00:00:00.000Z","ended_at":"2012-01-08T23:59:59.000Z","is_current":false,"duration_days":2172,"full_peers_seeing":83.2,"max_full_peers_seeing":113.9,"ripestat_url":"https://stat.ripe.net/resource/8.0.0.0/9"}],"validation":{"checked_at":"2026-12-06T03:57:27.599Z","field_coverage":{"duration_days":1,"ended_at":1,"full_peers_seeing":1,"is_current":1,"match_type":1,"max_full_peers_seeing":1,"origin_as_name":0.67,"origin_asn":1,"prefix":1,"resource":1,"ripestat_url":1,"started_at":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_4fb110d42c5e27a606f0643a/run","openapi":"https://pullrow.dev/v1/apis/api_4fb110d42c5e27a606f0643a/openapi.json","contract":"https://pullrow.dev/v1/apis/api_4fb110d42c5e27a606f0643a/contract.json","page":"https://pullrow.dev/catalog/bgp-prefix-origin-history"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"resource","label":"Resource","description":"The entry this row answers, as RIPEstat reads it, such as 8.8.8.0/24, 8.8.8.8 or AS15169.","group":"Basics","shown":true,"written":false},{"name":"prefix","label":"Prefix","description":"The announced IP block, such as 8.8.8.0/24.","group":"Basics","shown":true,"written":false},{"name":"match_type","label":"Match type","description":"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).","group":"Basics","shown":true,"written":false},{"name":"origin_asn","label":"Origin asn","description":"The AS number that originated the announcement, such as 15169.","group":"Basics","shown":true,"written":false},{"name":"origin_as_name","label":"Origin as name","description":"RIPEstat's name for that AS number today, such as GOOGLE - Google LLC.","group":"Basics","shown":true,"written":false},{"name":"started_at","label":"Started","description":"When this origin's announcement of the block began in this period (UTC).","group":"Dates","shown":true,"written":false},{"name":"ended_at","label":"Ended","description":"When the period ended (UTC); for a period still running, the time of the latest RIS data.","group":"Dates","shown":true,"written":false},{"name":"is_current","label":"Current","description":"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.","group":"Basics","shown":true,"written":false},{"name":"duration_days","label":"Duration days","description":"Length of the period in days, to one decimal.","group":"Basics","shown":true,"written":false},{"name":"full_peers_seeing","label":"Full peers seeing","description":"Average number of full-feed RIS peers that saw the route during the period, weighted by time.","group":"Basics","shown":true,"written":false},{"name":"max_full_peers_seeing","label":"Maximum full peers seeing","description":"The most full-feed RIS peers that saw the route in any part of the period.","group":"Basics","shown":true,"written":false},{"name":"ripestat_url","label":"Ripestat link","description":"The block's page on RIPEstat.","group":"Links","shown":true,"written":false}],"inputs":[{"name":"resources","label":"Resources","help":"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","written":false},{"name":"from_date","label":"From date","help":"Only periods on or after this day, as YYYY-MM-DD. Empty: the whole history, back to 2000.","example":"2015-01-01","written":false},{"name":"to_date","label":"To date","help":"Only periods up to this day, as YYYY-MM-DD. Empty: up to the latest data.","example":"2026-12-01","written":false},{"name":"min_peers","label":"Minimum peers","help":"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.","example":"","written":false},{"name":"match_types","label":"Match types","help":"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.","example":"","written":false}]}},"incidents":[]}