POST
/v1/tasks/uploadUpload Tasks
Upload a CSV/TSV file containing multiple tasks for a squidThis 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
| Key | Value | Required |
|---|---|---|
| Authorization | Token YOUR_API_KEY | Yes |
| Content-Type | multipart/form-data | Yes |
Form Data Parameters
filefile
RequiredExample: tasks.csv
squidstring
RequiredExample: a1b2c3d4e5f6g7h8i9j0
Response Field Explanations
id
string
Example: 427a7bfc54cf4ce483d83ba23425164b
object
string
Example: task_upload
Pro Tip
Use the returned task ID with Check Upload Status to monitor the upload progress.
Note
CSV column headers must match the crawler's expected parameter keys (e.g., 'url', 'city', 'activity').
Warning
Large files may take time to process. Always check upload status before running the squid.
Pro Tip
TSV (tab-separated) files are also supported and may be easier to work with for URLs containing commas.