ScrapeforLLM Docs
ScrapeforLLM Docs
Getting StartedScrape a PageScreenshotCrawl a SiteMap, Search & ExtractList & Get ScrapesError Codes

Error Codes

Every error the API can return and how to handle them.

Error Codes

All errors return a JSON body with an error field. Some include a message field with more detail.

{
  "error": "Insufficient credits",
  "message": "You need at least 1 scrape credit(s) for a scrape operation."
}

Error Reference

StatusErrorWhenWhat to Do
400A valid URL is requiredMissing or invalid url in request bodyCheck your request body includes a valid URL
401UnauthorizedMissing or invalid API keyCheck your Authorization: Bearer header
401Invalid API keyAPI key doesn't exist or was revokedCreate a new key at /app/api-keys
402Insufficient creditsNot enough credits for the operationBuy more credits or wait for monthly renewal
403Batch scraping not availableYour plan doesn't support batchUpgrade to Pro or Business plan
403API access not availableYour plan doesn't include API accessUpgrade to Starter or above
404Scrape not foundInvalid scrape ID or not owned by youCheck the scrape ID is correct
422Scrape failedTarget page couldn't be scrapedTry a different URL or adjust options
429Concurrent scrape limit reachedToo many active scrapes for your planWait for current scrapes to finish
500Internal Server ErrorUnexpected server errorRetry after a few seconds
502Scraping service unavailableInternal scraping engine is downRetry after a few seconds

Common Errors

402 — Insufficient credits: Check your remaining credits at /app/plan. Credits renew monthly on your billing date.

429 — Concurrent limit: Your plan has a max number of simultaneous scrapes. Wait for one to finish or upgrade for higher limits.

Tips

  • Always check the HTTP status code before parsing the response body.
  • For 502 errors, implement a simple retry with exponential backoff.
  • If you get 401, verify your API key hasn't been revoked at /app/api-keys.

List & Get Scrapes

Retrieve your scrape history and check on individual scrape results.

On this page

Error CodesError ReferenceTips