InternetData · Schema
AsnLookupResponse
What every database says about one AS.
CompanyIP IntelligenceData LicensingGeolocationNetwork Security
Properties
| Name | Type | Description |
|---|---|---|
| asn | integer | The AS number. |
| name | string | Its operator. |
| country | string | The country its registry assigned it to. |
| registry | string | The registry that allocated it. |
| allocated | string | When. |
| domain | string | Its operator's domain. |
| type | string | The kind of network it runs. Paid plans and the trial. |
| num_ips | integer | IPv4 addresses it announces. Paid plans and the trial. |
| num_prefixes4 | integer | IPv4 prefixes it announces. Paid plans and the trial. |
| num_prefixes6 | integer | IPv6 prefixes it announces. Paid plans and the trial. |
| rpki_valid | integer | Its announcements RPKI calls valid. Paid plans and the trial. |
| rpki_invalid | integer | Invalid. Paid plans and the trial. |
| rpki_not_found | integer | With no RPKI record. Paid plans and the trial. |
| whois | object | Its ASN Whois record, every column, empty where the registry states nothing. Paid plans and the trial. |
| prefixes | array | What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial. |
| rank | integer | Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. Paid plans and the trial. |
| tier1 | boolean | Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. Paid plans and the trial. |
| num_upstreams | integer | How many AS numbers it gets transit from. Paid plans and the trial. |
| upstreams | array | Those AS numbers, ascending, up to 20000. Paid plans and the trial. |
| num_peers | integer | How many AS numbers it exchanges its own and its customers' routes with. Paid plans and the trial. |
| peers | array | Those AS numbers, ascending, up to 20000. Paid plans and the trial. |
| num_downstreams | integer | How many AS numbers it provides transit to. Paid plans and the trial. |
| downstreams | array | Those AS numbers, ascending, up to 20000. Paid plans and the trial. |
| hosted_domains | object | |
| trial_expired | boolean | On every answer to a key on the free plan, and on no other: `false` while the day's trial of every field lasts, `true` once the answer has Unlimited's fields. |
| cap_reached | boolean | On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answer |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/internetdata-io/json-schema/internetdata-io-asn-lookup-response-schema.json",
"title": "AsnLookupResponse",
"description": "What every database says about one AS.",
"x-generated": "2026-11-19",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/internetdata-io-lookup-api-openapi.yml#/components/schemas/AsnLookupResponse",
"type": "object",
"properties": {
"asn": {
"type": "integer",
"description": "The AS number."
},
"name": {
"type": "string",
"description": "Its operator."
},
"country": {
"type": "string",
"description": "The country its registry assigned it to."
},
"registry": {
"type": "string",
"description": "The registry that allocated it."
},
"allocated": {
"type": "string",
"description": "When."
},
"domain": {
"type": "string",
"description": "Its operator's domain."
},
"type": {
"type": "string",
"description": "The kind of network it runs. Paid plans and the trial."
},
"num_ips": {
"type": "integer",
"description": "IPv4 addresses it announces. Paid plans and the trial."
},
"num_prefixes4": {
"type": "integer",
"description": "IPv4 prefixes it announces. Paid plans and the trial."
},
"num_prefixes6": {
"type": "integer",
"description": "IPv6 prefixes it announces. Paid plans and the trial."
},
"rpki_valid": {
"type": "integer",
"description": "Its announcements RPKI calls valid. Paid plans and the trial."
},
"rpki_invalid": {
"type": "integer",
"description": "Invalid. Paid plans and the trial."
},
"rpki_not_found": {
"type": "integer",
"description": "With no RPKI record. Paid plans and the trial."
},
"whois": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Its ASN Whois record, every column, empty where the registry states nothing. Paid plans and the trial."
},
"prefixes": {
"type": "array",
"items": {
"$ref": "#/$defs/AsnPrefix"
},
"description": "What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial."
},
"rank": {
"type": "integer",
"description": "Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. Paid plans and the trial."
},
"tier1": {
"type": "boolean",
"description": "Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. Paid plans and the trial."
},
"num_upstreams": {
"type": "integer",
"description": "How many AS numbers it gets transit from. Paid plans and the trial."
},
"upstreams": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
},
"num_peers": {
"type": "integer",
"description": "How many AS numbers it exchanges its own and its customers' routes with. Paid plans and the trial."
},
"peers": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
},
"num_downstreams": {
"type": "integer",
"description": "How many AS numbers it provides transit to. Paid plans and the trial."
},
"downstreams": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Those AS numbers, ascending, up to 20000. Paid plans and the trial."
},
"hosted_domains": {
"$ref": "#/$defs/AsnHostedDomains"
},
"trial_expired": {
"type": "boolean",
"description": "On every answer to a key on the free plan, and on no other: `false` while the day's trial of every field lasts, `true` once the answer has Unlimited's fields."
},
"cap_reached": {
"type": "boolean",
"description": "On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again."
}
},
"required": [
"asn",
"name",
"country",
"registry",
"allocated",
"domain"
],
"$defs": {
"AsnHostedDomains": {
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "How many registered domains resolve to an address the AS announces."
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to 10 of them, the most popular first; `[]` when none does."
}
},
"required": [
"total"
],
"description": "From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. Paid plans and the trial."
},
"AsnPrefix": {
"type": "object",
"properties": {
"prefix": {
"type": "string",
"description": "The announced prefix."
},
"peer_count": {
"type": "integer",
"description": "How many peers saw it."
},
"rpki_status": {
"type": "string",
"description": "Its RPKI status."
},
"first_seen": {
"type": "string",
"description": "The first day BGP Route saw it."
},
"country": {
"type": "string",
"description": "Where its first address is."
},
"size": {
"type": "integer",
"description": "IPv4 addresses it covers; 0 for IPv6."
},
"other_origins": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Every other AS announcing it."
}
},
"required": [
"prefix",
"peer_count",
"rpki_status",
"first_seen",
"country",
"size",
"other_origins"
]
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/internetdata-io-asn-lookup-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.