BizKitHub
DokumentacjaEksplorator APIVikitron/api/v1/vikitron/crawl-start
postVikitronPubliczne 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

Treść JSON

Treść żądania

application/json
domainstringWymagane

Domain name (or subdomain) to crawl.

Długość: 4–∞
Przykładexample.com

Schemat odpowiedzi

1 udokumentowany kod statusu

200SukcesCrawl start result.
domainstringWymagane

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

domainIdstringWymagane

Opaque domain identifier (use for the status endpoint).

inputHoststringWymagane

Hostname the caller submitted, after normalisation.

redirectedbooleanWymagane

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

redirectChainobject[]Wymagane

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

Każdy element tablicy:
fromstringWymagane

Hostname before this hop.

tostringWymagane

Hostname after this hop.

httpCodenumberWymagane

HTTP status code that produced this hop.

state"queued" | "running" | "completed"Wymagane

Current crawl state.

startedbooleanWymagane

Whether this call actually started a new crawl.

messagestringWymagane

Human-readable summary of the action taken.

countsobjectWymagane
pendingnumberWymagane

URLs waiting to be fetched.

runningnumberWymagane

URLs currently being fetched.

oknumberWymagane

Successfully fetched URLs (2xx).

errornumberWymagane

URLs that failed to fetch.

redirectnumberWymagane

URLs that returned a 3xx redirect.

skippednumberWymagane

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

totalnumberWymagane

Total URLs discovered so far.

crawlBudgetnumberWymagane

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

Przykład odpowiedzi

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
}

Przykład żądania

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

Potrzebujesz klucza API?

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

Uzyskaj klucz API