BizKitHub
DokumentáciaPrieskumník APIVikitron/api/v1/vikitron/as-lookup
getVikitronVerejné API v1

/api/v1/vikitron/as-lookup

Returns everything the platform knows about an Autonomous System (ASN): registered organisation, aggregated statistics across all IPs the platform has ever indexed under that AS (countries, cities, ISPs, timezones, connection-flag percentages), a detected country/city when ≥ 80 % of the indexed IPs agree, and up to 50 example IPs.

vikitrongetApiV1VikitronAs-lookup

Parametre

1 v query

Parametre v query

· 1
asstringPovinné

Autonomous System number, with or without the "AS" prefix.

PríkladAS16019

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechAutonomous System detail.
asNumberstringPovinné

Canonical AS number.

PríkladAS16019
asNamestringPovinné

AS name as published by the RIR / MaxMind.

organizationstringPovinné

Organisation that operates the AS.

ipCountnumberPovinné

Total IPs indexed by the platform under this AS.

detectedCountryobjectVoliteľné

Present only when a single country accounts for ≥ 80 % of the indexed IPs under this AS.

codestringPovinné

ISO-3166 alpha-2 country code.

PríkladCZ
confidencePercentnumberPovinné

Share of indexed IPs that resolve to this country (0–100).

detectedCityobjectVoliteľné

Present only when a single city accounts for ≥ 80 % of the indexed IPs under this AS.

citystringPovinné

City name.

countrystringPovinné

ISO-3166 alpha-2 country code of the city.

confidencePercentnumberPovinné

Share of indexed IPs that resolve to this city (0–100).

countriesobject[]Povinné

Top countries by indexed IP count (up to 20).

Každá položka poľa:
countrystringPovinné

ISO-3166 alpha-2 country code.

countnumberPovinné

IPs under this AS resolving to this country.

percentnumberPovinné

Share of all indexed IPs (0–100).

citiesobject[]Povinné

Top cities by indexed IP count (up to 20).

Každá položka poľa:
citystringPovinné

City name.

countrystringPovinné

ISO-3166 alpha-2 country code of the city.

countnumberPovinné

IPs under this AS resolving to this city.

percentnumberPovinné

Share of all indexed IPs (0–100).

ispsobject[]Povinné

Top ISPs seen under this AS (up to 10).

Každá položka poľa:
ispstringPovinné

ISP name.

countnumberPovinné

IPs under this AS reporting this ISP.

organisationsobject[]Povinné

Top block-owner organisations seen under this AS (up to 10).

Každá položka poľa:
organisationstringPovinné

IP block owner organisation name.

countnumberPovinné

IPs under this AS reporting this organisation.

timezonesobject[]Povinné

Top timezones seen under this AS (up to 10).

Každá položka poľa:
timezonestringPovinné

IANA timezone identifier.

PríkladEurope/Prague
countnumberPovinné

IPs under this AS resolving to this timezone.

connectionFlagsobjectPovinné

Aggregate connection-type signal for the AS.

mobilePercentnumberPovinné

Share of indexed IPs flagged as mobile (0–100).

proxyPercentnumberPovinné

Share of indexed IPs flagged as proxy/VPN (0–100).

hostingPercentnumberPovinné

Share of indexed IPs flagged as hosting/DC (0–100).

torPercentnumberPovinné

Share of indexed IPs flagged as Tor exit (0–100).

examplesobject[]Povinné

Up to 50 example IPs indexed under this AS, most-recently-updated first. Each item is a valid target for the IP-lookup endpoint.

Každá položka poľa:
ipstringPovinné

User IP address used for GEO/IP intelligence.

Accepted formats:

  • IPv4 dot-decimal, e.g. 1.1.1.1 (4 octets, 0–255, no leading zeros).
  • IPv6 as defined by RFC 4291 — full 2001:0db8:0000:0000:0000:0000:0000:0001, zero-compressed 2001:db8::1, IPv4-mapped ::ffff:1.2.3.4, or scoped literals. Both upper- and lower-case hex are accepted.

Server-side canonicalization (ipNormalize in core/src/lib/network/ipNormalize.ts):

  • Valid IPv4 is passed through verbatim.
  • Valid IPv6 is lowercased (RFC 5952 §4.3).
  • IPv4-mapped IPv6 ::ffff:X.X.X.X is unwrapped to plain IPv4 (RFC 4291 §2.5.5.2) so 1.2.3.4 and ::ffff:1.2.3.4 share one brj__geo_ip row.
  • Loopback aliases (::1, 0.0.0.0, localhost, empty string) collapse to 127.0.0.1.
  • Junk values that fail both IPv4 and IPv6 validation are silently rejected and replaced with 127.0.0.1 (loopback).

On the wire: every response returns the canonicalized form — clients can safely rely on lowercase IPv6 and the plain-IPv4 unwrap when de-duping or joining. Server-originated writers (activity log, session log, ban list) resolve the visitor IP via resolveClientIp / resolveClientIpOrNull — always native IPv6 on Vercel Edge (there is no auto-mapping to ::ffff:X.X.X.X).

Enrichment: the system resolves reverse DNS, geolocation, ASN, mobile/proxy/hosting/Tor flags via our VikiTron GEO/IP resolver for both address families. Learn more

Príklady1.1.1.12001:4860:4860::8888
hostnamestring | nullPovinné

Reverse DNS hostname of the IP.

citystring | nullPovinné

City name.

countrystring | nullPovinné

ISO-3166 alpha-2 country code.

countryRegionstring | nullPovinné

Region / state within the country.

ispstring | nullPovinné

ISP name for this specific IP.

organisationstring | nullPovinné

Block owner organisation for this IP.

mobilebooleanPovinné

Whether this IP is flagged as mobile.

proxybooleanPovinné

Whether this IP is flagged as proxy/VPN.

hostingbooleanPovinné

Whether this IP is flagged as hosting/DC.

torbooleanPovinné

Whether this IP is a known Tor exit node.

heNetUrlstringPovinné

External BGP report on HE.net for this AS.

Príkladhttps://bgp.he.net/AS16019

Ukážka odpovede

application/json
{
  "asNumber": "AS16019",
  "asName": "example_asName",
  "organization": "example_organization",
  "ipCount": 0,
  "detectedCountry": {
    "code": "CZ",
    "confidencePercent": 0
  },
  "detectedCity": {
    "city": "example_city",
    "country": "example_country",
    "confidencePercent": 0
  },
  "countries": [
    {
      "country": "example_country",
      "count": 0,
      "percent": 0
    }
  ],
  "cities": [
    {
      "city": "example_city",
      "country": "example_country",
      "count": 0,
      "percent": 0
    }
  ],
  "isps": [
    {
      "isp": "example_isp",
      "count": 0
    }
  ],
  "organisations": [
    {
      "organisation": "example_organisation",
      "count": 0
    }
  ],
  "timezones": [
    {
      "timezone": "Europe/Prague",
      "count": 0
    }
  ],
  "connectionFlags": {
    "mobilePercent": 0,
    "proxyPercent": 0,
    "hostingPercent": 0,
    "torPercent": 0
  },
  "examples": [
    {
      "ip": "1.1.1.1",
      "mobile": false,
      "proxy": false,
      "hosting": false,
      "tor": false
    }
  ],
  "heNetUrl": "https://bgp.he.net/AS16019"
}

Ukážka požiadavky

GET /api/v1/vikitron/as-lookup

get
curl -X GET "https://api.bizkithub.com/api/v1/vikitron/as-lookup?as=AS16019" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč