IPinfo · JSON Structure

Ipinfo Asn Response Structure

AsnResponse schema from IPinfo API

Type: object Properties: 14 Required: 4
IP IntelligenceIP GeolocationASNPrivacy DetectionVPN DetectionThreat IntelligenceNetwork DataMobile CarrierWHOISPublic APIsDevelopment

AsnResponse is a JSON Structure definition published by IPinfo, describing 14 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

asn name country allocated registry domain num_ips route type prefixes prefixes6 peers upstreams downstreams

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ipinfo/main/json-structure/ipinfo-asn-response-structure.json",
  "name": "AsnResponse",
  "description": "AsnResponse schema from IPinfo API",
  "type": "object",
  "properties": {
    "asn": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "allocated": {
      "type": "string"
    },
    "registry": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "num_ips": {
      "type": "int32"
    },
    "route": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "prefixes": {
      "type": "array",
      "items": {
        "$ref": "./ipinfo-prefix-structure.json"
      }
    },
    "prefixes6": {
      "type": "array",
      "items": {
        "$ref": "./ipinfo-prefix6-structure.json"
      }
    },
    "peers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "upstreams": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "downstreams": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "asn",
    "name",
    "domain",
    "type"
  ]
}