ASN and IP ownership
Find the network that announces an IP address or domain, and what else it announces.
GET /v1/asn
- Price
- Costs 1 credit per call; cached answers cost the same. Calls that fail upstream (502) are free.
- Cache
- Never cached; every call runs again.
- MCP tool
- lookup_asn
Query parameters
| Name | Type | Description |
|---|---|---|
| query (required) | string | An IP address, a domain, or an AS number such as AS64496. |
| detail | "summary" | "full" | full lists up to 2000 announced prefixes instead of 200. |
Response
| Name | Type | Description |
|---|---|---|
| tool (required) | string | |
| target (required) | string | |
| status (required) | "ok" | "partial" | "error" | |
| fetched_at | string | |
| cached | boolean | |
| credits_used | integer | Credits this call took from your balance. 0 for free tools, for a replay of an earlier call, and for a free check run on the website without signing in |
| summary (required) | string | |
| score | integer or null | |
| findings | array of object | |
| credits_remaining (required) | integer | Your balance after this call. It can be below zero after a refund; free tools still work then |
| data (required) | object | This tool's result |
| data.kind (required) | "ip" | "domain" | "asn" | |
| data.query (required) | string | |
| data.addresses (required) | array of object | |
| data.addresses.address (required) | string | |
| data.addresses.route (required) | object or null | |
| data.addresses.allocation (required) | object or null | |
| data.asn (required) | object or null | |
| data.asn_allocation (required) | object or null | |
| data.prefixes (required) | array of string | |
| data.prefixes_v4 (required) | integer | |
| data.prefixes_v6 (required) | integer | |
| data.ipv4_addresses (required) | integer | |
| data.truncated (required) | boolean | |
| data.table (required) | object | |
| data.table.built_at (required) | string | |
| data.table.age_hours (required) | integer |
Errors
- 400 Invalid domain, URL or parameter, a TLD this tool can't check, or an X-Request-Id already used for another call (`invalid_domain`, `invalid_url`, `invalid_request`, `unsupported_tld`)
- 401 Missing, unknown or revoked API key, or one whose creator is no longer a member of the account (`unauthorized`)
- 402 Balance below the call's price (`insufficient_credits`)
- 403 Account suspended, the key's creator is over the plan's seats, or an anonymous check without a valid proof-of-work or for a tool that needs an account, or bulk checks before a first purchase (`account_suspended`, `plan_limit`, `challenge_required`, `sign_in_required`, `bulk_locked`)
- 429 Too many requests, today's free checks are used up, or too many website scans at once; wait for the number of seconds in the Retry-After header (`rate_limited`, `free_limit_reached`, `too_many_jobs`). Not charged
- 500 Unexpected error (`internal_error`)
- 502 Every upstream source failed; not charged (`source_unavailable`). A Retry-After header says how long to wait when the source asked us to
- 503 Too many open event streams on this server, the checked site is getting too many checks, or the browser or link checker is busy; try again after the seconds in the Retry-After header (`busy`, `site_busy`, `browser_busy`, `crawl_busy`). Not charged
Example
curl
curl "https://api.dnssuper.com/v1/asn?query=AS64496" \
-H "Authorization: Bearer $DNSSUPER_API_KEY"Python
import os
import httpx
client = httpx.Client(
base_url="https://api.dnssuper.com",
headers={"Authorization": f"Bearer {os.environ['DNSSUPER_API_KEY']}"},
timeout=60,
)
response = client.get("/v1/asn", params={
"query": "AS64496",
})
response.raise_for_status()
result = response.json()
print(result["summary"], result["credits_used"])TypeScript
const response = await fetch(`https://api.dnssuper.com/v1/asn?${new URLSearchParams({"query":"AS64496"})}`, {
headers: { Authorization: `Bearer ${process.env.DNSSUPER_API_KEY}` },
});
if (!response.ok) throw new Error((await response.json()).error.message);
const result = await response.json();
console.log(result.summary, result.credits_used);Example response
{
"tool": "asn-lookup",
"target": "AS64496",
"status": "ok",
"fetched_at": "2026-11-14T10:00:00Z",
"cached": false,
"credits_used": 1,
"summary": "AS64496 is EXAMPLE-NET (Example Network Ltd), registered with ARIN in NL. It announces 1 IPv4 prefix and 1 IPv6 prefix.",
"findings": [],
"data": {
"kind": "asn",
"query": "AS64496",
"addresses": [],
"asn": {
"number": 64496,
"name": "EXAMPLE-NET",
"description": "Example Network Ltd",
"country": "NL",
"reserved": false
},
"asn_allocation": {
"registry": "arin",
"country": "US",
"date": "2004-03-01",
"status": "assigned",
"block": "AS64496"
},
"prefixes": [
"192.0.2.0/24",
"2001:db8::/32"
],
"prefixes_v4": 1,
"prefixes_v6": 1,
"ipv4_addresses": 256,
"truncated": false,
"table": {
"built_at": "2026-11-14T04:40:00Z",
"age_hours": 5
}
},
"credits_remaining": 498
}MCP
{
"tool": "lookup_asn",
"arguments": {
"query": "AS64496"
}
}AS64496 is EXAMPLE-NET (Example Network Ltd), registered with ARIN in NL. It announces 1 IPv4 prefix and 1 IPv6 prefix.
AS64496 EXAMPLE-NET (Example Network Ltd), NL
Registry: ARIN, 2004-03-01
Prefixes: 1 IPv4 (256 addresses), 1 IPv6
192.0.2.0/24
2001:db8::/32
No issues found.
Credits: 1 credit used, 498 remaining | fresh | checked 2026-11-14 10:00 UTC
Data sources
Routing data: RIPE NCC RIS. AS names: RIPE NCC. Allocations: ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC statistics.