Skip to main content

Manage your export tasks

How to retrieve all recent tasks

This endpoint can be useful if you didn't stored your export task ID.

Command
curl -L -X GET 'https://api.talkwalker.com/api/v3/tasks/export?access_token=<access_token>
Response
{
"status_code": "0",
"status_message": "OK",
"request": "GET /api/v3/tasks/export?access_token***",
"result_tasks": {
"tasks": [
{
"creation_date": "2023-01-20T15:56:08.949Z",
"type": "export",
"id": "b870dfc9-2b97-41d2-924a-c6fcb0494562",
"processed": 10684,
"progress": 1.0,
"target": "export_collector",
"status": "finished"
},
{
"creation_date": "2022-12-13T11:47:43.906Z",
"type": "export",
"id": "898fd353-52a0-48a3-a186-416b9230fc13",
"processed": 1000,
"progress": 1.1884529907419512e-4,
"target": "collector_1",
"message": ["Result limit reached"],
"status": "result_limit_reached"
}
]
}
}

How to abort a task

Using the task ID a currently running export task can be aborted.

Command
curl -L -X DELETE 'https://api.talkwalker.com/api/v3/tasks/export/<task_id>?access_token=<access_token>

Response
{
"status_code": "0",
"status_message": "OK",
"request": "DELETE /api/v3/tasks/export/task-1?access_token=<access_token>",
"result_tasks": {
"tasks": [
{
"id": "task-1",
"status": "deleted"
}
]
}
}