Written and maintained by CASRAI Editorial Board
Published
On this page
RIPEstat is the RIPE NCC’s open data platform for Internet number resources: a web interface and a public Data API that return information about IP address space, autonomous system numbers (ASNs), hostnames and countries, with a focus on routing data and the RIPE Database. Researchers use it to look up who holds an ASN, which prefixes an ASN announced over a chosen period, and how widely a prefix is seen in the global routing table, and the same calls can be scripted so the lookup is repeatable.
What RIPEstat is used for in research
The RIPE NCC describes RIPEstat as “a large-scale information service and the RIPE NCC’s open data platform”. The official documentation says it covers IP address space, ASNs, hostnames and countries, and that its emphasis is routing data and the RIPE Database, alongside registration, DNS, geographic and abuse-contact data. For a researcher in Internet measurement, network science or the study of Internet governance, that makes it a single place to ask structural questions about the Internet without assembling raw routing archives first.
What you can query
The documentation lists six kinds of query: an ASN, an IP address, an IP prefix, an IPv4 range, a hostname and a country code (ISO 3166). The answer depends on the data call you use, and each data call is a separate endpoint with its own parameters and output.
Where the data comes from
RIPEstat does not generate most of its data; it aggregates it. The official data-sources page lists the following inputs, and your methods section should name the ones your result depends on:
- The RIPE Database, for ownership and contact information.
- RIPE Atlas, the RIPE NCC’s active measurement network.
- Routing registries, including the RIPE IRR.
- DNS and reverse DNS data.
- RIPE RIS, described as historical and live BGP data.
- Regional Internet Registry statistics and IANA data: a snapshot of the current status of Internet number resources across AFRINIC, APNIC, ARIN, LACNIC and the RIPE NCC, with no transactions or history.
- Blocklists from Spamhaus and UCE Protect, which the documentation says do not give a full picture.
- BGP communities through the NLNOG Looking Glass.
- MaxMind GeoLite geolocation for IPv4 and IPv6.
The RIR-statistics point matters for study design. Because that dataset is a snapshot without transaction history, it cannot by itself show when a block changed hands. Routing questions over time are answered from the RIS-based endpoints instead.
Licence and use
The documentation says the Data API can be used for alerts, configurations, visualisations and applications for non-commercial purposes, and that commercial use requires contacting the RIPE NCC. The service’s own terms and conditions apply to API use, so read them before building a pipeline around the service.
How to install or access RIPEstat
There is nothing to install. RIPEstat is used in two ways, both from the RIPE NCC at stat.ripe.net.
Web interface
Enter an ASN, IP address, prefix, IPv4 range, hostname or country code in the search box. The interface presents results as “infocards”, which you can save, share and organise. This is the quickest way to explore a resource before you commit to a scripted analysis.
Data API
The Data API uses plain HTTPS GET requests, and the documentation lists no API key. Every call has the same shape: https://stat.ripe.net/data/ENDPOINT/data.json?param=value. The methodology and metadata for any endpoint are at https://stat.ripe.net/data/ENDPOINT/meta. HTTPS is strongly encouraged and the documentation warns plain HTTP may be removed.
Three usage rules in the documentation affect research code:
- There is no limit on the number of requests, but users who regularly send more than 1,000 requests a day are asked to register, and a single IP address may have at most 8 concurrent requests.
- Add a
sourceappparameter to identify your project: letters, digits, hyphens and underscores only, no whitespace. The page asks regular users to email [email protected] with the identifier and a contact. - Some data calls return a soft-limit warning for large responses; for non-browser requests
data_overload_limit=ignoresuppresses it.
How to query routing data step by step
The sequence below uses three endpoints that answer a common question in routing research: what is this ASN, which prefixes does it originate, and how visible is one of them. AS3333 is used as the example resource because the RIPE NCC’s own documentation uses it. Replace YOUR-PROJECT with your own identifier.
- Identify the ASN holder. Request
https://stat.ripe.net/data/as-overview/data.json?resource=3333&sourceapp=YOUR-PROJECT. Theresourceparameter (the AS) is required. - List the prefixes the ASN announced. Request
https://stat.ripe.net/data/announced-prefixes/data.json?resource=3333&starttime=2024-12-12T12:00&sourceapp=YOUR-PROJECT.resourceis the ASN and is required;starttimeandendtimeaccept ISO 8601 or Unix time and default to two weeks before now and to now. - Check routing status. Request
https://stat.ripe.net/data/routing-status/data.json?resource=AS3333&sourceapp=YOUR-PROJECT. The resource can be an IPv4 or IPv6 prefix, an IP address or an AS. Omittimestampfor the latest data, or set one aligned to the RIS collection times of 00:00, 08:00 or 16:00 UTC. - Read the metadata. For each endpoint you used, open its
/metaaddress and keep a copy of the methodology with your results. - Record the query. Save the full request URL, the response’s
version,process_timeand the query times in the output, plus the date you ran it.
The data table below summarises the three endpoints: their required parameters, defaults and principal output fields.
How to read the output
The common response envelope
Every data call wraps its payload in the same envelope. The status field is ok, error or maintenance, and status_code gives the numeric code. data_call_status says whether the call is supported, deprecated or in development. data_call_name and version (major.minor) identify exactly which call and release answered, cached says whether the response came from cache, message carries warnings and process_time is in milliseconds. The payload is under data.
as-overview
holder is the holder’s name or null. announced is false for an ASN that is transit-only, so a false value is not an error. block carries the IANA registry information (resource, desc and name) and type is “as”.
announced-prefixes
The prefixes array has one object per prefix with its prefix and a timelines list; each timeline entry has a starttime and endtime, so a prefix that was announced in separate periods shows up as several entries. The response also returns query_starttime, query_endtime, earliest_time and latest_time. The parameter min_peers_seeing defaults to 10 and filters out announcements seen by few route collector peers. A low-visibility or short-lived announcement can therefore be absent unless you lower it, which is a methodological choice you should report.
routing-status
The response includes first_seen and last_seen (time, origin, prefix and visibility), which are present only if the resource has ever been seen in BGP, and a visibility block for IPv4 and IPv6 that gives ris_peers_seeing against total_ris_peers. For an AS resource it also returns announced space (IPv4 prefixes and addresses, IPv6 prefixes and /48 counts) and observed_neighbours. For a prefix resource it returns origins (origin and route objects) and less_specifics and more_specifics, each capped at 50 entries. A count at the 50 cap is therefore a truncation, not a finding.
Making a result reproducible
This is the part most tutorials omit. A RIPEstat answer depends on the date it was queried, the endpoint version and the filters. Three parameters in the documentation help: preferred_version accepts a number or the words supported, upcoming or deprecated; cache=ignore bypasses cached output; and the cached and version fields in the response record what you got. Pairing these with a fixed timestamp or starttime and endtime is what makes a query repeatable in the sense described in computational reproducibility. Archive the raw JSON as part of your data package so that your analysis is not only reproducible but its inputs are preserved, in line with open data practice.
Troubleshooting RIPEstat
- The status is error or maintenance. The envelope’s
statusandmessagefields say so; retry later rather than treating the response as an empty result. - The response is empty or missing an announcement you expected. Check
min_peers_seeing(default 10) and the time window; announced-prefixes defaults to the last two weeks. - You see a soft-limit warning on a large response. Add
data_overload_limit=ignorefor a non-browser request. - Parallel requests exceed the limit. The documented ceiling is 8 concurrent requests per IP address. Throttle your client, and register if you routinely exceed 1,000 requests a day.
- The data looks stale. Check the
cachedfield and usecache=ignoreto request fresh output. - A field disappeared after an update. Compare
versionanddata_call_status;preferred_versionlets you ask for a supported, upcoming or deprecated version, or a specific number. - Browser-based code. The API supports a
callbackparameter for JSON-P.
If you are comparing RIPEstat output with another tool and the numbers differ, check first whether both use the same time and the same peer threshold. The same applies when working with identifiers across systems; see persistent identifiers for citing the datasets you derive.
Free alternatives to RIPEstat
RIPEstat sits beside other open Internet-measurement resources rather than replacing them. The two below are read from their operators’ own pages.
| Resource | Operator | What it provides | How to access it |
|---|---|---|---|
| RIPEstat | RIPE NCC | Resource information on IP space, ASNs, hostnames and countries, with a focus on routing data and the RIPE Database | Web interface and Data API at stat.ripe.net |
| Route Views | Network Startup Resource Center, University of Oregon | “A publicly available, multi-perspective looking glass and data archive of the Internet’s routing system”: BGP routing information bases and updates, described as the oldest and most comprehensive BGP data archive | Download archive at archive.routeviews.org, looking glass at lg.routeviews.org, API at api.routeviews.org; data licensed CC BY 4.0 |
| RIPE Atlas | RIPE NCC | A global network of probes and anchors that actively measure Internet connectivity; most collected data is open | Traffic maps, streaming visualisations and an API; custom measurements use credits |
Route Views and RIPE RIS are complementary: Route Views states that it coordinates with RIPE RIS to share data and improve redundancy, so a study of historical BGP data may use both. RIPE Atlas measures from probes, which is a different kind of evidence from BGP route collection, so it answers other questions such as connectivity as seen from hosts.
Sources
- RIPEstat documentation: What is RIPEstat (RIPE NCC)
- RIPEstat documentation: RIPEstat data sources (RIPE NCC)
- RIPEstat documentation: About the Data API (RIPE NCC)
- RIPEstat Data API: announced-prefixes (RIPE NCC)
- RIPEstat Data API: as-overview (RIPE NCC)
- RIPEstat Data API: routing-status (RIPE NCC)
- Route Views project (University of Oregon)
- RIPE Atlas (RIPE NCC)
Data: RIPEstat Data API endpoints for ASN and prefix routing research: parameters, defaults and output fields
Compares three RIPEstat Data API endpoints (as-overview, announced-prefixes, routing-status) by their documented resource parameter, time parameters, visibility default and principal output fields. Compiled from the RIPE NCC's official endpoint documentation pages.
Period covered: 2026.
| Endpoint | Accepted resource | Time parameters | Visibility filter default | Principal output fields |
|---|---|---|---|---|
| as-overview | AS (required) | query_starttime and query_endtime returned | None documented | announced, holder, resource, type, block (resource, desc, name) |
| announced-prefixes | ASN (required) | starttime and endtime (ISO 8601 or Unix); default two weeks before now to now | min_peers_seeing = 10 | prefixes[] with prefix and timelines[] (starttime, endtime); query_starttime, query_endtime, earliest_time, latest_time |
| routing-status | IPv4/IPv6 prefix, IP address or AS (required) | timestamp aligned to RIS collection times 00:00, 08:00, 16:00 UTC; omitted = latest | min_peers_seeing = 10 | first_seen, last_seen, visibility (ris_peers_seeing, total_ris_peers), announced space, observed_neighbours, origins, less_specifics and more_specifics (each capped at 50) |
Sources
- RIPEstat Data API: as-overview (accessed 2026-11-17)
- RIPEstat Data API: announced-prefixes (accessed 2026-11-17)
- RIPEstat Data API: routing-status (accessed 2026-11-17)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







