ASN Lookup

Autonomous System Lookup: Organisation, Land, angekündigte IPv4/IPv6-Prefixe.

Übersicht

The ASN Lookup endpoint queries RIPEstat to resolve any Autonomous System Number to its organization name, country, and announced IP prefixes.

Endpoint: GET /api/v1/asn-lookup?asn={asn}

Authentication: Required (API Token or JWT)

Rate Limits: Free: 30/hour, Starter/Pro/Business: unlimited

Parameters

ParameterTypeRequiredDescription
asnintegerYesASN to look up with or without 'AS' prefix (e.g. 15169 or AS15169)

Response

{
  "success": true,
  "data": {
    "asn": 15169,
    "holder": "Google LLC",
    "prefixes": ["74.125.206.0/24", "35.217.0.0/18", ...],
    "prefixesV6": ["2001:4860::/32", ...],
    "description": null,
    "country": "US",
    "source": "RIPEstat"
  }
}

Code Examples

cURL:

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://provider.tools/api/v1/asn-lookup?asn=15169"

Python:

import requests

headers = {"Authorization": "Bearer YOUR_API_TOKEN"}
resp = requests.get("https://provider.tools/api/v1/asn-lookup",
                     params={"asn": 15169},
                     headers=headers)
data = resp.json()
print(f"AS{data['data']['asn']}: {data['data']['holder']}")
print(f"Prefixes: {len(data['data']['prefixes'])}")