POST Scrape URLs

Submit up to 10 URLs for scraping in a single request

Batch URL Scraping

POSThttps://api.anakin.io/v1/url-scraper/batch

Submit up to 10 URLs for scraping in a single request. All URLs are processed in parallel. Use the returned jobId to poll for results.


Request Body

{
  "urls": [
    "https://example.com/page1",
    "https://example.com/page2",
    "https://example.com/page3"
  ],
  "country": "us",
  "useBrowser": false,
  "generateJson": false
}
ParameterTypeDescription
urls requiredstring[]Array of URLs to scrape (1–10).
countrystringCountry code for proxy routing. Default "us". See Supported Countries (207 locations).
useBrowserbooleanUse headless Chrome with Playwright. Default false.
generateJsonbooleanAI-extract structured JSON from the content. Default false.

Response

202 Accepted
{
  "jobId": "batch_abc123",
  "status": "pending"
}

You receive a parent job ID that tracks overall batch progress. Use GET /v1/url-scraper/{id} to poll for results — the response will include a results array with individual URL outcomes.


Code Examples

curl -X POST https://api.anakin.io/v1/url-scraper/batch \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://example.com/page1",
      "https://example.com/page2",
      "https://example.com/page3"
    ],
    "country": "us",
    "useBrowser": false,
    "generateJson": true
  }'