Skip to main content
POST
/
batch
/
scrape_sitemap
Batch Scrape Sitemap
curl --request POST \
  --url https://api.blat.ai/batch/scrape_sitemap \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "urls": [
    "https://example.com/"
  ],
  "webhook": {
    "events": [
      "data"
    ],
    "headers": {},
    "metadata": {},
    "url": "https://example.com/scrape_hook"
  }
}'
{
  "batch_id": "batch_id"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Batch sitemap scraping request parameters

urls
string[]
required

List of sitemap URLs to scrape

Example:
["https://example.com/"]
webhook
object

Optional webhook configuration

Response

OK

batch_id
string

The ID of the batch scrape. Used to check the status of the batch later.

I