# RIPEstat Data Scraper (`parseforge/ripestat-scraper`) Actor

Query the RIPEstat public Data API for any ASN or IP prefix. Supports nine data calls including as-overview, whois, routing-history, ris-prefixes, prefix-overview, geoloc, asn-neighbours, network-info, and bgplay. No API key required.

- **URL**: https://apify.com/parseforge/ripestat-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Developer tools, Business, Automation
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $26.25 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

![ParseForge Banner](https://github.com/ParseForge/apify-assets/raw/main/banner.jpg)

## 📡 RIPEstat Data Scraper

> 🚀 **Query the RIPEstat public Data API in seconds.** Pull **9 data calls** including AS overview, whois, prefix overview, geolocation, ASN neighbours, routing history, RIS prefixes, network info, and BGPlay. Batch query a list of resources or auto-discover every ASN in a country. No API key, no signup.

The **RIPEstat Scraper** wraps the [RIPEstat Data API](https://stat.ripe.net/docs/data_api), the canonical public interface to RIPE NCC's routing and registry data. The Actor supports nine widely-used data calls and three input modes: single resource, multi-resource batch, and country-wide auto-discovery. For each resource you submit, the Actor writes one envelope record containing the raw RIPE response, the status, the queried resource string, and the data-call name.

RIPEstat aggregates data from RIPE's registry, RIS route collectors, geolocation providers, and the wider RIR community. It is the standard tool for network engineers, security researchers, and policy analysts who need authoritative information about how an ASN, prefix, or IP behaves on the global Internet.

| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Network engineers, BGP operators, security researchers, OSINT analysts, abuse desks, journalists, academics | ASN due diligence, routing-history forensics, hijack detection, geo enrichment, country-scale ISP inventories, BGPlay replays, prefix announcement audits |

### 📋 What the RIPEstat Scraper does

Nine data calls, three input modes, in one Actor:

- 📡 **9 data calls.** `as-overview`, `whois`, `network-info`, `prefix-overview`, `geoloc`, `asn-neighbours`, `routing-history`, `ris-prefixes`, `bgplay`.
- 🎯 **Single resource.** Hit one ASN (e.g. `AS3333`) or IP prefix (e.g. `193.0.0.0/21`).
- 📦 **Batch mode.** Pass a list of ASNs or prefixes via the `resources` array. Each entry becomes one row.
- 🌍 **Country discovery.** Set `countryCode` to a two-letter ISO code (NL, DE, US, JP) and the Actor pre-queries the `country-resource-list` data call, expands every allocated ASN range, and runs your chosen data call across the entire allocation. Honors `maxItems`.

Each output row carries the original `resource` and `dataCall` for traceability, the upstream `status`, the full RIPE `data` object, any non-empty `messages` from the upstream API, and a `queriedAt` timestamp.

> 💡 **Why it matters:** RIPEstat is the authoritative public source for inter-domain routing data. A single API call can confirm whether a prefix is announced, who its origin ASN is, which neighbours it peers with, and how that picture has changed over time. The country-discovery mode is unique to this Actor and lets you sweep an entire national ASN allocation in one run.

### 📊 Data fields

Each record includes: `data`, `dataCall`, `queriedAt`, `resource`, `status`. All 5 field names come from a real production run, so what you see here is what lands in your dataset.

### 🚀 How to use

1. 📝 **Sign up.** [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=vmoqkp) (takes 2 minutes).
2. 🌐 **Open the Actor.** Go to the RIPEstat Data Scraper page on the Apify Store.
3. 🎯 **Set input.** Pick a data call, then a single `resource`, a `resources` array, or a `countryCode`. Set `maxItems`.
4. 🚀 **Run it.** Click **Start** and let the Actor pull live data from RIPEstat.
5. 📥 **Download.** Grab your results from the **Dataset** tab as CSV, Excel, JSON, or XML.

> ⏱️ Total time from signup to a downloaded RIPEstat dataset: **3-5 minutes.** No coding required.

### 🔗 Recommended Actors

- [**🌐 PeeringDB Scraper**](https://apify.com/parseforge/peeringdb-scraper) - Networks, IXes, and facilities from the global peering registry
- [**✈️ OurAirports Scraper**](https://apify.com/parseforge/ourairports-scraper) - Global airport reference dataset
- [**🤖 Hugging Face Model Scraper**](https://apify.com/parseforge/hugging-face-model-scraper) - Open-source AI model directory
- [**🏢 AWS Marketplace Scraper**](https://apify.com/parseforge/aws-marketplace-scraper) - Cloud software listings and pricing
- [**🔌 Stripe App Marketplace Scraper**](https://apify.com/parseforge/stripe-marketplace-scraper) - Fintech app directory metadata

> 💡 **Pro Tip:** browse the complete [ParseForge collection](https://apify.com/parseforge) for more reference-data scrapers.

> **⚠️ Disclaimer:** this Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the RIPE NCC or RIPEstat. All trademarks mentioned are the property of their respective owners. Only publicly available RIPEstat data is queried.

### 🆘 Need Help?

If you hit a bug, have questions about setup, or need a scraper we haven't built yet, open our [contact form](https://tally.so/r/BzdKgA) or write to parseforge@protonmail.com. We also take on paid custom data projects.

For faster answers, join our [Discord](https://parseforge.co/discord). It's the best place to get support and suggest new actors.

# Actor input Schema

## `dataCall` (type: `string`):

RIPEstat data call to query.

## `resource` (type: `string`):

One ASN (e.g. AS3333 or 3333) or IP prefix (e.g. 193.0.0.0/21). Ignored if `resources` or `countryCode` is set.

## `resources` (type: `array`):

Batch-query a list of ASNs/prefixes. Each entry returns one row.

## `countryCode` (type: `string`):

Two-letter ISO country code (e.g. NL, DE, US). Auto-discovers every ASN allocated to that country via country-resource-list and runs the data call for each. Honors maxItems.

## `maxItems` (type: `integer`):

How many records to collect per run.

## Actor input object example

```json
{
  "dataCall": "as-overview",
  "resource": "AS3333",
  "resources": [],
  "countryCode": "",
  "maxItems": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

Overview of scraped data

## `fullData` (type: `string`):

Complete dataset

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "dataCall": "as-overview",
    "resource": "AS3333",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/ripestat-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "dataCall": "as-overview",
    "resource": "AS3333",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/ripestat-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "dataCall": "as-overview",
  "resource": "AS3333",
  "maxItems": 10
}' |
apify call parseforge/ripestat-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=parseforge/ripestat-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hOI77hpWaSSyQvPJf/builds/F26V45AmkSTg6AeBN/openapi.json
