GET
https://api.ipscope.io/v1/networks/{prefix}/{length}GET
https://api.ipscope.io/v1/networks/{cidr}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
prefixstringrequiredIPv4 or IPv6 network address ("198.51.100.0"or"2606:4700:4700::").lengthintegerrequiredPrefix mask length:0..32for IPv4 or0..128for IPv6. Host bits are automatically masked to the canonical network address.cidrstringAlternative single-parameter URL-encoded CIDR ("198.51.100.0%2F24"). Used automatically byclient.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
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"
}
}