API Reference
Markdown

Network CIDR lookup

Inspect canonical routing prefix intelligence by split CIDR (/v1/networks/:prefix/:length) or URL-encoded CIDR (/v1/networks/:cidr).

GEThttps://api.ipscope.io/v1/networks/{prefix}/{length}scope: lookup API key
GEThttps://api.ipscope.io/v1/networks/{cidr}scope: lookup API key

Queries the active snapshot for a canonical network prefix record. LookupController supports both split path parameters (/v1/networks/198.51.100.0/24) and URL-encoded CIDR notation (/v1/networks/198.51.100.0%2F24) so reverse proxies that disallow encoded slashes (%2F) work without special configuration.

Path parameters

  • prefixstringrequired
    IPv4 or IPv6 network address ("198.51.100.0" or "2606:4700:4700::").
  • lengthintegerrequired
    Prefix mask length: 0..32 for IPv4 or 0..128 for IPv6. Host bits are automatically masked to the canonical network address.
  • cidrstring
    Alternative single-parameter URL-encoded CIDR ("198.51.100.0%2F24"). Used automatically by client.lookupNetwork("198.51.100.0/24") in all official SDKs.

# Code examples

curl -sS "https://api.ipscope.io/v1/networks/198.51.100.0/24" \
  -H "Authorization: Bearer $IPSCOPE_KEY"

# Responses

Responses
application/json

Canonical network prefix record from the active routing snapshot.

{
  "queried_cidr": "198.51.100.0/24",
  "family": 4,
  "dataset_version": "2026-10-27T00:00:00Z.crawl-1793088000000",
  "record": {
    "prefix": "198.51.100.0/24",
    "family": 4,
    "asn": 64501,
    "organization": "Example Cloud LLC",
    "countryCode": "US",
    "city": "Ashburn",
    "locationType": "physical",
    "isVpn": true,
    "isHosting": true,
    "isTorExit": false,
    "isProxy": false,
    "anonymizerType": "vpn"
  }
}