IPGeolocation.io · Schema

ASN

ASN information describing the Autonomous System responsible for routing the queried IP address or the specified ASN. Costs 1 credit.

GeocodingIP GeolocationIP IntelligenceIP SecurityASN LookupAbuse ContactTimezoneAstronomyUser AgentThreat IntelligencePublic APIs

Properties

Name Type Description
as_number string Complete Autonomous System Number that was looked up.
organization string Name of the organization to which the ASN is assigned.
country string ISO 3166-1 alpha-2 country code where the ASN is registered.
asn_name string Official ASN handle.
type string ASN category. Possible values include `ISP`, `HOSTING`, `BUSINESS`, `EDUCATION`, or `GOVERNMENT` when available.
domain string Domain associated with the ASN.
date_allocated string Date when the ASN was originally allocated.
rir string Regional Internet Registry that allocated the ASN. Examples include `RIPE`, `ARIN`, `APNIC`, `LACNIC`, `AFRINIC`, etc.
allocation_status string Current allocation status of the ASN.
num_of_ipv4_routes string Number of IPv4 prefixes announced by this ASN.
num_of_ipv6_routes string Number of IPv6 prefixes announced by this ASN.
peers array Directly connected peer ASNs.
downstreams array Downstream (customer) ASNs connected to this ASN.
upstreams array Upstream provider ASNs used for internet connectivity.
routes array IPv4 and IPv6 prefixes announced by this ASN.
whois_response string Raw WHOIS registry record text returned for the ASN.
View JSON Schema on GitHub

JSON Schema

asn-asn-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ipgeolocation/refs/heads/main/json-schema/asn-asn-schema.json",
  "title": "ASN",
  "description": "ASN information describing the Autonomous System responsible for routing\nthe queried IP address or the specified ASN. Costs 1 credit.\n",
  "type": "object",
  "properties": {
    "as_number": {
      "type": "string",
      "description": "Complete Autonomous System Number that was looked up.",
      "example": "AS24940"
    },
    "organization": {
      "type": "string",
      "description": "Name of the organization to which the ASN is assigned.",
      "example": "Hetzner Online GmbH"
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code where the ASN is registered.",
      "example": "DE"
    },
    "asn_name": {
      "type": "string",
      "description": "Official ASN handle.",
      "example": "HETZNER-AS"
    },
    "type": {
      "type": "string",
      "description": "ASN category. Possible values include `ISP`, `HOSTING`, `BUSINESS`,\n`EDUCATION`, or `GOVERNMENT` when available.\n",
      "example": "HOSTING"
    },
    "domain": {
      "type": "string",
      "description": "Domain associated with the ASN.",
      "example": "hetzner.com"
    },
    "date_allocated": {
      "type": "string",
      "description": "Date when the ASN was originally allocated.",
      "example": "2002-06-03"
    },
    "rir": {
      "type": "string",
      "description": "Regional Internet Registry that allocated the ASN.\nExamples include `RIPE`, `ARIN`, `APNIC`, `LACNIC`, `AFRINIC`, etc.\n",
      "example": "RIPE"
    },
    "allocation_status": {
      "type": "string",
      "description": "Current allocation status of the ASN.",
      "example": "ASSIGNED"
    },
    "num_of_ipv4_routes": {
      "type": "string",
      "description": "Number of IPv4 prefixes announced by this ASN.",
      "example": "84"
    },
    "num_of_ipv6_routes": {
      "type": "string",
      "description": "Number of IPv6 prefixes announced by this ASN.",
      "example": "6"
    },
    "peers": {
      "type": "array",
      "description": "Directly connected peer ASNs.",
      "items": {
        "type": "object",
        "description": "Represents a connected Autonomous System such as a peer,\nupstream provider, or downstream customer.\n",
        "properties": {
          "as_number": {
            "type": "string",
            "description": "Autonomous System Number of the connected network.",
            "example": "AS3356"
          },
          "description": {
            "type": "string",
            "description": "Name or description of the connected network operator.",
            "example": "Level 3 Parent, LLC"
          },
          "country": {
            "type": "string",
            "description": "Country code of the connected ASN.",
            "example": "US"
          }
        }
      }
    },
    "downstreams": {
      "type": "array",
      "description": "Downstream (customer) ASNs connected to this ASN.",
      "items": {
        "type": "object",
        "description": "Represents a connected Autonomous System such as a peer,\nupstream provider, or downstream customer.\n",
        "properties": {
          "as_number": {
            "type": "string",
            "description": "Autonomous System Number of the connected network.",
            "example": "AS3356"
          },
          "description": {
            "type": "string",
            "description": "Name or description of the connected network operator.",
            "example": "Level 3 Parent, LLC"
          },
          "country": {
            "type": "string",
            "description": "Country code of the connected ASN.",
            "example": "US"
          }
        }
      }
    },
    "upstreams": {
      "type": "array",
      "description": "Upstream provider ASNs used for internet connectivity.",
      "items": {
        "type": "object",
        "description": "Represents a connected Autonomous System such as a peer,\nupstream provider, or downstream customer.\n",
        "properties": {
          "as_number": {
            "type": "string",
            "description": "Autonomous System Number of the connected network.",
            "example": "AS3356"
          },
          "description": {
            "type": "string",
            "description": "Name or description of the connected network operator.",
            "example": "Level 3 Parent, LLC"
          },
          "country": {
            "type": "string",
            "description": "Country code of the connected ASN.",
            "example": "US"
          }
        }
      }
    },
    "routes": {
      "type": "array",
      "description": "IPv4 and IPv6 prefixes announced by this ASN.",
      "items": {
        "type": "string"
      },
      "examples": [
        "192.76.177.0/24",
        "2607:f600::/32"
      ]
    },
    "whois_response": {
      "type": "string",
      "description": "Raw WHOIS registry record text returned for the ASN.",
      "example": "ASNumber: 24940\nOrgName: Hetzner Online GmbH\nCountry: DE"
    }
  }
}

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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/asn-asn"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.