Create Task API
Generate custom scraping tasks tailored to your specific needs.
POST
/v1/tasks Request Body
{
"name": "scrape-product-reviews",
"description": "Scrape product reviews from e-commerce websites",
"depends_on": [],
"input_shape": {
"url": "string",
"maxReviews": "number"
}
}Response
{
"id": "tg_abc123",
"name": "scrape-product-reviews",
"status": "pending",
"created_at": "2024-01-20T10:30:00Z"
}Task generation costs 5 credits. Check the status using the task ID.