Upload Tasks
Task
Upload Tasks
Upload a CSV/TSV file containing multiple tasks for a squid
POST
Upload Tasks
This endpoint allows you to upload a file (CSV/TSV) containing multiple tasks for a specific squid. The file should contain task parameters in columns matching the crawler’s expected keys. This is ideal for bulk task creation.
Headers
Your API authentication token. Value:
Token YOUR_API_KEYMust be multipart/form-data for file upload. Value:
multipart/form-dataForm Data Parameters
CSV or TSV file containing task data. Column headers should match crawler parameter keys. Example:
tasks.csvThe hash ID of the squid to add tasks to. Example:
"a1b2c3d4e5f6g7h8i9j0"Response Field Explanations
Upload task identifier for tracking progress. Example:
"427a7bfc54cf4ce483d83ba23425164b"Always “task_upload”. Example:
"task_upload"CSV column headers must match the crawler’s expected parameter keys (e.g., ‘url’, ‘city’, ‘activity’).
Code Examples
Response
200