{"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},"version":"1.0","contract_hash":"a514d4c5687210427a318dcbb16628b09efd3ea6948cb2fadb3208e4aeb97382","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T03:57:27.609Z","activated_at":"2026-12-06T03:57:27.609Z","active":true,"contract_hash":"a514d4c5687210427a318dcbb16628b09efd3ea6948cb2fadb3208e4aeb97382","fields_count":12}]}