Search Subnet Calculator Top Organizations Commercial Plans Supporter Portal API Reference
Sign In Get API Key
Direct Authoritative Sockets NetworksDB.io Compatible

Programmatic API Documentation

Integrate live BGP routing telemetry into automated monitoring pipelines.

Authentication Protocol
Authenticate programmatic calls using Bearer HTTP headers
Get API Key →

Authenticate requests by providing your API key in the Authorization: Bearer <KEY> header or the X-API-Key: <KEY> header. NetworksDB compatible query string ?apikey=<KEY> is also supported.

bash - cURL Authentication Example
curl -H "Authorization: Bearer ndb_live_your_key_here" \
     https://networkdb.tr/api/v1/ip/8.8.8.8
Available Endpoints
Authoritative TCP WHOIS REST endpoints
9 Endpoints
GET /api/v1/ip/{ip}

Retrieve live routing, ASN origin, containing prefix, and provenance for an IPv4 or IPv6 address.

Auth: Required (Bearer Token or X-API-Key) Rate Limit: 300 requests / minute
json - 200 OK Response
{
    "status": "success",
    "data": {
        "ip": {
            "normalized_address": "8.8.8.8",
            "address_family": 4,
            "country_code": "US",
            "reverse_dns": "dns.google",
            "first_seen_at": 1262304000,
            "last_seen_at": 1760000000
        },
        "prefix": {
            "prefix": "8.8.8.0/24",
            "origin_asn": 15169,
            "rir_source": "arin"
        },
        "asn": {
            "asn_number": 15169,
            "name": "GOOGLE",
            "country_code": "US"
        }
    },
    "request_id": "req_65f8a...",
    "timestamp": 1760000000
}
GET /api/v1/asn/{asn}

Retrieve Autonomous System record, originated prefix list, and delegation registry details.

Auth: Required (Bearer Token or X-API-Key) Rate Limit: 300 requests / minute
json - 200 OK Response
{
    "status": "success",
    "data": {
        "asn": {
            "asn_number": 15169,
            "name": "GOOGLE",
            "country_code": "US",
            "first_seen_at": 1000000000
        },
        "prefix_count": 1,
        "prefixes": [
            {
                "prefix": "8.8.8.0/24",
                "prefix_length": 24,
                "status": "allocated"
            }
        ]
    },
    "request_id": "req_65f8a...",
    "timestamp": 1760000000
}
GET /api/v1/prefix/{prefix}

Retrieve CIDR subnet boundaries, origin ASN, and latest BGP announcement observation.

Auth: Required (Bearer Token or X-API-Key) Rate Limit: 300 requests / minute
json - 200 OK Response
{
    "status": "success",
    "data": {
        "prefix": {
            "prefix": "8.8.8.0/24",
            "address_family": 4,
            "prefix_length": 24,
            "origin_asn": 15169
        },
        "latest_bgp": {
            "origin_asn": 15169,
            "as_path": "3356 15169",
            "observed_at": 1760000000
        }
    },
    "request_id": "req_65f8a...",
    "timestamp": 1760000000
}
GET /api/v1/domain/{domain}

Retrieve normalized domain intelligence and active DNS resource records (A, AAAA, MX, NS, TXT).

Auth: Required (Bearer Token or X-API-Key) Rate Limit: 300 requests / minute
json - 200 OK Response
{
    "status": "success",
    "data": {
        "domain": {
            "normalized_domain": "example.com",
            "registrable_domain": "example.com"
        },
        "records": [
            {
                "record_type": "A",
                "record_value": "93.184.216.34",
                "ttl": 3600
            }
        ]
    },
    "request_id": "req_65f8a...",
    "timestamp": 1760000000
}
GET /api/v1/history/{type}/{identifier}?from={ts}&to={ts}

Query immutable historical records and state change log for any entity over a Unix timestamp range.

Auth: Required (Developer/Enterprise plan) Rate Limit: 300 requests / minute
json - 200 OK Response
{
    "status": "success",
    "data": {
        "entity_type": "ip",
        "identifier": "8.8.8.8",
        "history": [
            {
                "record_type": "bgp_announcement",
                "payload": {
                    "origin_asn": 15169
                },
                "observed_at": 1750000000
            }
        ]
    },
    "request_id": "req_65f8a...",
    "timestamp": 1760000000
}
GET /api/v1/whois/{ip}

Direct authoritative raw and parsed WHOIS query via direct port 43 TCP socket to IANA and responsible RIR (ARIN, RIPE, APNIC, LACNIC, AFRINIC). Available across all API tiers.

Auth: Required (All Plans) Rate Limit: Per-plan limit (30 to 3000 requests / minute)
json - 200 OK Response
{
    "status": "success",
    "ip": "1.1.1.1",
    "rir": "apnic",
    "unredacted": true,
    "parsed": {
        "inetnum": "1.1.1.0 - 1.1.1.255",
        "netname": "CLOUDFLARENET",
        "descr": "Cloudflare, Inc.",
        "country": "AU",
        "admin_c": "ADMIN-CLOUDFLARE",
        "tech_c": "TECH-CLOUDFLARE"
    },
    "execution_ms": 1.45
}
GET /api/ip-info?ip={ip}

NetworksDB.io compatible IP Intelligence endpoint returning ASN, organization, network CIDR, and hosting country.

Auth: Optional (API Key or Token) Rate Limit: 120 requests / minute
json - 200 OK Response
{
    "ip": "1.1.1.1",
    "asn": 13335,
    "as_name": "CLOUDFLARENET",
    "as_org": "Cloudflare, Inc.",
    "network": "1.1.1.0/24",
    "country": "AU"
}
GET /api/asn-info?asn={asn}

NetworksDB.io compatible Autonomous System intelligence endpoint returning legal entity, total allocated IPv4 addresses, and country code.

Auth: Optional (API Key or Token) Rate Limit: 120 requests / minute
json - 200 OK Response
{
    "asn": 15169,
    "name": "GOOGLE",
    "org": "Google LLC",
    "country": "US",
    "total_ips": 15200000
}
GET /api/asn-networks?asn={asn}

NetworksDB.io compatible ASN announced networks endpoint listing all registered CIDR prefix allocations.

Auth: Optional (API Key or Token) Rate Limit: 120 requests / minute
json - 200 OK Response
{
    "asn": 15169,
    "networks": [
        "8.8.8.0/24",
        "8.8.4.0/24"
    ],
    "count": 2
}