LLM Chat ScraperQuickstartTask Lifecycle

Task Lifecycle Details

Use the following reference to shape your requests and interpret every response that the LLM Chat Scraper API returns during a task’s lifetime.

Common Request Parameters

ParameterTypeRequiredDescription
actorstringYesFixed identifier that indicates which model you want to run.
webhookobjectNoObject containing optional webhook settings.
webhook.urlstringNoHTTPS endpoint that receives the result when the task finishes.
inputobjectYesActor-specific parameters such as prompt, mode, or country.

Result Data Structure

ParameterTypeRequiredDescription
statusstringYesTask status: pending, running, success, or failed.
messagestringNoError message if the task fails.
task_resultobjectNoFull payload for the actor. See the actor docs for field-level details.

Webhook Push Payload

If you set a webhook.url, Scrapeless issues a POST request with the following JSON shape:

ParameterTypeRequiredDescription
task_idstringYesIdentifier of the completed task.
statusstringYessuccess or failed.
inputstringYesOriginal task parameters serialized as JSON.
task_resultobjectNoSame structure you would receive when polling the result endpoint.

Push Example

curl --location '{webhook.url}' \
  --header 'Content-Type: application/json' \
  --data '{
    "task_id": "",
    "status": "",
    "input": "",
    "task_result": {}
  }'

HTTP Status Codes

StatusMeaning
200Success. The result has been retrieved.
201Task created successfully.
202Task still running—retry soon.
400Invalid request. Inspect the error message for details.
410Task result expired. Results remain available for 12 hours.
429Rate limit exceeded. Reduce request frequency or upgrade capacity.