Programmatic API Documentation
Integrate live BGP routing telemetry into automated monitoring pipelines.
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.
curl -H "Authorization: Bearer ndb_live_your_key_here" \
https://networkdb.tr/api/v1/ip/8.8.8.8
Retrieve live routing, ASN origin, containing prefix, and provenance for an IPv4 or IPv6 address.
{
"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
}
Retrieve Autonomous System record, originated prefix list, and delegation registry details.
{
"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
}
Retrieve CIDR subnet boundaries, origin ASN, and latest BGP announcement observation.
{
"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
}
Retrieve normalized domain intelligence and active DNS resource records (A, AAAA, MX, NS, TXT).
{
"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
}
Query immutable historical records and state change log for any entity over a Unix timestamp range.
{
"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
}
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.
{
"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
}
NetworksDB.io compatible IP Intelligence endpoint returning ASN, organization, network CIDR, and hosting country.
{
"ip": "1.1.1.1",
"asn": 13335,
"as_name": "CLOUDFLARENET",
"as_org": "Cloudflare, Inc.",
"network": "1.1.1.0/24",
"country": "AU"
}
NetworksDB.io compatible Autonomous System intelligence endpoint returning legal entity, total allocated IPv4 addresses, and country code.
{
"asn": 15169,
"name": "GOOGLE",
"org": "Google LLC",
"country": "US",
"total_ips": 15200000
}
NetworksDB.io compatible ASN announced networks endpoint listing all registered CIDR prefix allocations.
{
"asn": 15169,
"networks": [
"8.8.8.0/24",
"8.8.4.0/24"
],
"count": 2
}