BizKitHub
DokumentacePrůzkumník APIVikitron/api/v1/vikitron/crawl-start
postVikitronVeřejné 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

Parametry

JSON tělo

Tělo požadavku

application/json
domainstringPovinné

Domain name (or subdomain) to crawl.

Délka: 4–∞
Příkladexample.com

Schéma odpovědi

1 zdokumentovaný stavový kód

200ÚspěchCrawl 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 pole:
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ázka odpovědi

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ázka požadavku

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

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč