BizKitHub
DokumentacjaEksplorator APIVikitron/api/v1/vikitron/as-lookup
getVikitronPubliczne 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

Parametry

1 w query

Parametry query

· 1
asstringWymagane

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

PrzykładAS16019

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesAutonomous System detail.
asNumberstringWymagane

Canonical AS number.

PrzykładAS16019
asNamestringWymagane

AS name as published by the RIR / MaxMind.

organizationstringWymagane

Organisation that operates the AS.

ipCountnumberWymagane

Total IPs indexed by the platform under this AS.

detectedCountryobjectOpcjonalne

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

codestringWymagane

ISO-3166 alpha-2 country code.

PrzykładCZ
confidencePercentnumberWymagane

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

detectedCityobjectOpcjonalne

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

citystringWymagane

City name.

countrystringWymagane

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

confidencePercentnumberWymagane

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

countriesobject[]Wymagane

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

Każdy element tablicy:
countrystringWymagane

ISO-3166 alpha-2 country code.

countnumberWymagane

IPs under this AS resolving to this country.

percentnumberWymagane

Share of all indexed IPs (0–100).

citiesobject[]Wymagane

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

Każdy element tablicy:
citystringWymagane

City name.

countrystringWymagane

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

countnumberWymagane

IPs under this AS resolving to this city.

percentnumberWymagane

Share of all indexed IPs (0–100).

ispsobject[]Wymagane

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

Każdy element tablicy:
ispstringWymagane

ISP name.

countnumberWymagane

IPs under this AS reporting this ISP.

organisationsobject[]Wymagane

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

Każdy element tablicy:
organisationstringWymagane

IP block owner organisation name.

countnumberWymagane

IPs under this AS reporting this organisation.

timezonesobject[]Wymagane

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

Każdy element tablicy:
timezonestringWymagane

IANA timezone identifier.

PrzykładEurope/Prague
countnumberWymagane

IPs under this AS resolving to this timezone.

connectionFlagsobjectWymagane

Aggregate connection-type signal for the AS.

mobilePercentnumberWymagane

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

proxyPercentnumberWymagane

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

hostingPercentnumberWymagane

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

torPercentnumberWymagane

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

examplesobject[]Wymagane

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żdy element tablicy:
ipstringWymagane

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

Przykłady1.1.1.12001:4860:4860::8888
hostnamestring | nullWymagane

Reverse DNS hostname of the IP.

citystring | nullWymagane

City name.

countrystring | nullWymagane

ISO-3166 alpha-2 country code.

countryRegionstring | nullWymagane

Region / state within the country.

ispstring | nullWymagane

ISP name for this specific IP.

organisationstring | nullWymagane

Block owner organisation for this IP.

mobilebooleanWymagane

Whether this IP is flagged as mobile.

proxybooleanWymagane

Whether this IP is flagged as proxy/VPN.

hostingbooleanWymagane

Whether this IP is flagged as hosting/DC.

torbooleanWymagane

Whether this IP is a known Tor exit node.

heNetUrlstringWymagane

External BGP report on HE.net for this AS.

Przykładhttps://bgp.he.net/AS16019

Przykład odpowiedzi

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"
}

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API