BizKitHub
DokumentacjaEksplorator APIVikitron/api/v1/vikitron/dns-records-checker
getVikitronPubliczne API v1

/api/v1/vikitron/dns-records-checker

Returns the last known DNS records for the given domain. Cached responses (5 min fresh + 1 h SWR) are served without an outbound DNS lookup — the response reflects whatever scout has most recently persisted. If no records exist yet OR ?force=true is passed, a fresh DNS lookup is triggered before returning results (uncached).

vikitrongetApiV1VikitronDns-records-checker

Parametry

2 w query

Parametry query

· 2
domainstringWymagane

Domain name to check.

Przykładexample.com
forcestringOpcjonalne

Set to "true" to bypass the cache and trigger a fresh fetch.

Przykładtrue

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesDNS records for the domain.
recordsobject[]Wymagane

List of DNS records.

Każdy element tablicy:
namestringWymagane

DNS record name (hostname).

Przykładexample.com
typestringWymagane

DNS record type.

PrzykładyAAAAAMXCNAMETXT
valuestringWymagane

DNS record value.

hostnamestringOpcjonalne

Resolved hostname.

prioritynumberOpcjonalne

Record priority (relevant for MX records).

ttlnumberOpcjonalne

Time-to-live in seconds.

createdAtDate | string | string | numberWymagane

When the record was first seen.

Jedna z 4 opcji:
Wariant 1
Date

When the record was first seen.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
updatedAtDate | string | string | numberWymagane

When the record was last refreshed.

Jedna z 4 opcji:
Wariant 1
Date

When the record was last refreshed.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
activebooleanWymagane

Whether the record is currently active.

Przykład odpowiedzi

application/json
{
  "records": [
    {
      "name": "example.com",
      "type": "A",
      "value": "example_value",
      "hostname": "example_hostname",
      "priority": 0,
      "ttl": 0,
      "active": false
    }
  ]
}

Przykład żądania

GET /api/v1/vikitron/dns-records-checker

get
curl -X GET "https://api.bizkithub.com/api/v1/vikitron/dns-records-checker?domain=example.com&force=true" \
  -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