Skip to main content

Crawl or Recrawl a Document Using the API

Send a POST request to the /v1/crawler endpoint to crawl a new URL or recrawl an already indexed URL.

Request Structure

Endpoint

POST /v1/crawler

Payload

Include the following JSON object in the request body:

{
"action": "FETCH",
"indexPublicKey": "SITEKEY",
"url": "http://foo.com/bar.html"
}
FieldDescriptionTypeNotes
actionSpecify the action to perform on the URLstringAcceptable value: FETCH to add or update the URL in the index
indexPublicKeyYour site's public key for identificationstringFind this key in your AddSearch dashboard
urlThe full URL of the document to crawl or recrawlstringMust include protocol (http or https), domain, and path
Example: https://www.example.com/page.html

Response

A successful request returns HTTP status 202 ACCEPTED with a JSON response like this:

{
"message": "Scheduled",
"docId": "doc id"
}
FieldDescriptionTypeNotes
messageStatus message about the crawlstringTypically indicates the request was scheduled
docIdUnique identifier for the documentstringMD5 hash of the URL, URL-encoded

Additional Information

  • Indexing usually starts within one minute after the API call.
  • This endpoint requires authentication. For details on how to authenticate your API requests, see API authentication.

Use this API to keep your site's search index updated by submitting URLs for initial crawl or recrawl.