Crawl website

Crawl website

Crawling your website is an important step in ensuring Rek.ai has the most up-to-date information about your content, especially useful after you've made significant changes to your website or added new content. Rek.ai normally crawls your website automatically every 2–12 hours, but you can manually trigger a crawl whenever you need to.

In the Rek.ai dashboard:

  1. Go to the "Settings" tab of your project.
  2. Click the "Re-index site" button.
Re-index your site in the Dashboard

In the Rek.ai API

You can also trigger a crawl of your website programmatically, using the Rek.ai API.

Endpoint:

POST http://admin.rek.ai/crawl/{projectId}

Replace {projectId} with your actual project ID.

Required headers:

HeaderDescription
rek-secretYour project's secret key. Used to authenticate your request.

Example request:

POST http://admin.rek.ai/crawl/YOUR_PROJECT_ID
rek-secret: YOUR_PROJECT_SECRET

Example response:

{
    "message": "Site queued for crawl",
    "data": {
        "site": "nameofthesite"
    },
    "status": 200
}