BizKitHub
DokumentáciaPrieskumník APIVikitron/api/v1/vikitron/crawl-start
postVikitronVerejné API v1

/api/v1/vikitron/crawl-start

Idempotently registers a domain as a crawl target and kicks off an immediate crawl. Will not start a second crawl while one is in progress and will not re-run a finished crawl.

vikitronpostApiV1VikitronCrawl-start

Parametre

JSON telo

Telo požiadavky

application/json
domainstringPovinné

Domain name (or subdomain) to crawl.

Dĺžka: 4–∞
Príkladexample.com

Schéma odpovede

1 zdokumentovaný stavový kód

200ÚspechCrawl start result.
domainstringPovinné

Normalised hostname being crawled (may differ from input after homepage redirects).

domainIdstringPovinné

Opaque domain identifier (use for the status endpoint).

inputHoststringPovinné

Hostname the caller submitted, after normalisation.

redirectedbooleanPovinné

True when the homepage probe followed a same-apex redirect chain.

redirectChainobject[]Povinné

Same-apex redirect chain followed at start (empty when no redirect).

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

Hostname before this hop.

tostringPovinné

Hostname after this hop.

httpCodenumberPovinné

HTTP status code that produced this hop.

state"queued" | "running" | "completed"Povinné

Current crawl state.

startedbooleanPovinné

Whether this call actually started a new crawl.

messagestringPovinné

Human-readable summary of the action taken.

countsobjectPovinné
pendingnumberPovinné

URLs waiting to be fetched.

runningnumberPovinné

URLs currently being fetched.

oknumberPovinné

Successfully fetched URLs (2xx).

errornumberPovinné

URLs that failed to fetch.

redirectnumberPovinné

URLs that returned a 3xx redirect.

skippednumberPovinné

URLs explicitly skipped (e.g. disallowed by robots.txt).

totalnumberPovinné

Total URLs discovered so far.

crawlBudgetnumberPovinné

Maximum number of URLs the crawler will fetch for this domain.

Ukážka odpovede

application/json
{
  "domain": "example_domain",
  "domainId": "example_domainId",
  "inputHost": "example_inputHost",
  "redirected": false,
  "redirectChain": [
    {
      "from": "example_from",
      "to": "example_to",
      "httpCode": 0
    }
  ],
  "started": false,
  "message": "example_message",
  "counts": {
    "pending": 0,
    "running": 0,
    "ok": 0,
    "error": 0,
    "redirect": 0,
    "skipped": 0,
    "total": 0
  },
  "crawlBudget": 0
}

Ukážka požiadavky

POST /api/v1/vikitron/crawl-start

post
curl -X POST "https://api.bizkithub.com/api/v1/vikitron/crawl-start" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "domain": "example.com"
}'

Potrebujete API kľúč?

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

Získať API kľúč