POST
/v1/tasksAdd Tasks
Create new tasks within a specified squidThis endpoint creates new tasks within a specified squid. Tasks define the specific scraping jobs to be executed, such as URLs to scrape or search parameters.
Note: The accepted task input keys (e.g., url, city, activity) depend on the crawler used in your squid. Use the Get Crawler Parameters endpoint to discover valid keys for your crawler.
Headers
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | application/json | Yes |
Request Body
squidstring
RequiredExample: a1b2c3d4e5f6g7h8i9j0
tasksarray
RequiredExample: [{url: https://example.com}]
Response Field Explanations
duplicated_count
integer
Example: 0
tasks
array
Example: [...]
tasks[].id
string
Example: c5e29d2aba8b77cdc56391e7405302de
tasks[].created_at
string
Example: 2025-02-10T14:19:32.916901
tasks[].is_active
boolean
Example: true
tasks[].params
object
Example: {url: ...}
tasks[].object
string
Example: task
Pro Tip
Use the Get Crawler Parameters endpoint to discover which task keys are valid for your specific crawler.
Note
Duplicate tasks (same parameters) are automatically detected and not added. Check duplicated_count in the response.
Warning
Task parameters vary by crawler. Using invalid keys will result in task creation failure.
Pro Tip
For bulk task creation, consider using the Upload Tasks endpoint with a CSV file instead.