Skip to content
OSINTtools.io

RIPEstat API

RIPE NCC's free service for routing history, address allocation, geolocation and abuse contacts for IP addresses, prefixes and ASNs.

Base URL
https://stat.ripe.net/data
Sign-in
No key
Format
REST
Endpoints
7

Compiled by OSINTtools.io editors from stat.ripe.net · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

RIPEstat's Data API returns internet number resource information: routing and announced prefixes, WHOIS records, ASN holders, abuse contacts, reverse DNS and more, from RIPE NCC data. An investigator uses it to find which network an IP or prefix belongs to and who to contact.

Calls are GET requests of the form https://stat.ripe.net/data/<endpoint>/data.json?resource=... and return JSON. The docs describe no API key; the optional sourceapp parameter identifies your application. Every response has status, status_code, data_call_name, version, cached, process_time and the endpoint output under data.

The docs list about 60 data calls; this reference covers a few lookup calls. A single IP may make 8 concurrent requests.

Quick start

  1. No key needed

    The RIPEstat API answers without an account or key.

  2. Make your first request

    Whether a prefix is announced, by which ASNs, and related prefixes.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://stat.ripe.net/data/prefix-overview/data.json?resource=203.0.113.0%2F24'
  3. Read the response

    A 200 response looks like this.

    {
      "status": "ok",
      "status_code": 200,
      "data_call_name": "prefix-overview",
      "data": {
        "resource": "203.0.113.0/24",
        "type": "prefix",
        "announced": true,
        "asns": [
          {
            "asn": 64496,
            "holder": "EXAMPLE-AS Example Network"
          }
        ],
        "block": {
          "resource": "203.0.113.0/24",
          "desc": "Example block",
          "name": "Example registry"
        },
        "actual_num_related": 0,
        "is_less_specific": false
      }
    }

Authentication

No key or account: every endpoint answers without one.

No key. Optional sourceapp parameter; for regular use the docs ask you to email stat@ripe.net.

Rate limits and pricing

No limit on request count stated; register if you plan more than 1000 requests per day; 8 concurrent requests per IP address

Routing

Returns announcement state, originating ASNs with holder names and IANA block information for a prefix.

Query parameters

resourcestringrequiredtakes your ip address

The prefix to look up

Example: 203.0.113.0/24
min_peers_seeinginteger

Minimum number of RIS peers that must see a resource

Example: 10
max_relatedinteger

Limit on related prefixes returned

Example: 10
query_timestring

ISO8601 or Unix timestamp; defaults to latest data

Example: 2026-11-01T00:00:00
Response fields · 8Show

resourcestring

The prefix queried

typestring

Always prefix

announcedboolean

Whether the prefix is announced

asninteger

Originating ASN

holderstring

Name of the AS

namestring

IANA registry name

actual_num_relatedinteger

Total related prefixes

is_less_specificboolean

True if the answer covers a larger block than requested

curl 'https://stat.ripe.net/data/prefix-overview/data.json?resource=203.0.113.0%2F24'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "prefix-overview",
  "data": {
    "resource": "203.0.113.0/24",
    "type": "prefix",
    "announced": true,
    "asns": [
      {
        "asn": 64496,
        "holder": "EXAMPLE-AS Example Network"
      }
    ],
    "block": {
      "resource": "203.0.113.0/24",
      "desc": "Example block",
      "name": "Example registry"
    },
    "actual_num_related": 0,
    "is_less_specific": false
  }
}
  • Passive: the target is not contacted

Returns whether the ASN originates prefixes seen by at least 10 RIS full-feed peers, and its holder.

Query parameters

resourcestringrequired

The ASN to look up

Example: AS64496
Response fields · 5Show

resourcestring

The AS queried

typestring

Always as

announcedboolean

True if it originates prefixes visible to enough RIS peers

holderstring

ASN holder name, or null

descstring

IANA registry description

curl 'https://stat.ripe.net/data/as-overview/data.json?resource=AS64496'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "as-overview",
  "data": {
    "resource": "64496",
    "type": "as",
    "announced": true,
    "holder": "EXAMPLE-AS Example Network",
    "block": {
      "resource": "64496-64511",
      "desc": "Example block",
      "name": "Example registry"
    }
  }
}
  • Passive: the target is not contacted

Defaults to the last two weeks and prefixes seen by at least 10 RIS peers.

Query parameters

resourcestringrequired

The ASN

Example: AS64496
starttimestring

ISO8601 or Unix timestamp; default two weeks ago

Example: 2026-11-01T00:00:00
endtimestring

ISO8601 or Unix timestamp; default now

Example: 2026-11-15T00:00:00
min_peers_seeinginteger

Minimum RIS peers that must see a prefix

Example: 10Default: 10
Response fields · 4Show

resourcestring

The ASN queried

prefixstring

An announced prefix

starttimestring

Start of an announcement period

endtimestring

End of an announcement period

curl 'https://stat.ripe.net/data/announced-prefixes/data.json?resource=AS64496'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "announced-prefixes",
  "data": {
    "resource": "64496",
    "prefixes": [
      {
        "prefix": "203.0.113.0/24",
        "timelines": [
          {
            "starttime": "2026-11-01T00:00:00",
            "endtime": "2026-11-15T00:00:00"
          }
        ]
      }
    ]
  }
}

Returns the matching prefix if the IP is routed, and the ASNs announcing it.

Query parameters

resourcestringrequiredtakes your ip address

The IP address

Example: 203.0.113.7
Response fields · 2Show

asns[]string

ASNs announcing the prefix

prefixstring

The prefix matching the IP, if routed

curl 'https://stat.ripe.net/data/network-info/data.json?resource=203.0.113.7'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "network-info",
  "data": {
    "asns": [
      "64496"
    ],
    "prefix": "203.0.113.0/24"
  }
}

Registration

Returns whois records from the RIRs combined, plus routing registry (IRR) records.

Query parameters

resourcestringrequiredtakes your ip address

An ASN, IPv4 or IPv6 address or prefix

Example: 203.0.113.0/24
Response fields · 6Show

resourcestring

The resource queried

authorities[]string

Authorities involved, for example ripe

keystring

Entry type, for example inetnum

valuestring

Entry value

keystring

Routing registry entry type, for example origin

valuestring

Routing registry entry value

curl 'https://stat.ripe.net/data/whois/data.json?resource=203.0.113.0%2F24'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "whois",
  "data": {
    "resource": "203.0.113.0/24",
    "authorities": [
      "ripe"
    ],
    "records": [
      [
        {
          "key": "inetnum",
          "value": "203.0.113.0 - 203.0.113.255"
        },
        {
          "key": "netname",
          "value": "EXAMPLE-NET"
        }
      ]
    ],
    "irr_records": [
      [
        {
          "key": "route",
          "value": "203.0.113.0/24"
        },
        {
          "key": "origin",
          "value": "AS64496"
        }
      ]
    ]
  }
}

The docs note that abuse contact information is in many cases incorrect or unavailable.

Query parameters

resourcestringrequiredtakes your ip address

A prefix, single IP address or ASN

Example: 203.0.113.7
Response fields · 2Show

abuse_contacts[]string

Dedicated abuse contact email addresses

authoritative_rirstring

The RIR authoritative for the resource

curl 'https://stat.ripe.net/data/abuse-contact-finder/data.json?resource=203.0.113.7'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "abuse-contact-finder",
  "data": {
    "abuse_contacts": [
      "abuse@example.net"
    ],
    "authoritative_rir": "ripe"
  }
}

DNS

Returns one domain name, or an error such as NXDOMAIN or a timeout.

Query parameters

resourcestringrequiredtakes your ip address

The IP address

Example: 203.0.113.7
Response fields · 2Show

resultstring

A single domain name

errorstring

Error such as NXDOMAIN or timeout; empty when none

curl 'https://stat.ripe.net/data/reverse-dns-ip/data.json?resource=203.0.113.7'
No key needed
Response
{
  "status": "ok",
  "status_code": 200,
  "data_call_name": "reverse-dns-ip",
  "data": {
    "result": "host.example.net",
    "error": ""
  }
}