List Tasks
Get paginated list of AI agent tasks with optional filtering by session and status.
GET
/
tasks
List Tasks
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.browser-use.com/api/v2/tasks \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llm": "<string>",
"task": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"output": "<string>",
"browserUseVersion": "<string>",
"isSuccess": true,
"judgement": "<string>",
"judgeVerdict": true,
"cost": "<string>",
"suggestions": [
{}
]
}
],
"totalItems": 123,
"pageNumber": 123,
"pageSize": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 1Enumeration of possible task execution states
Attributes: CREATED: Task has been created but not yet started. STARTED: Task has been started and is currently running. FINISHED: Task has finished and the agent has completed the task. FAILED: Task execution failed due to an error. STOPPED: Task execution has been manually stopped (cannot be resumed).
Available options:
created, started, finished, failed, stopped Response
Successful Response
Was this page helpful?
⌘I
List Tasks
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.browser-use.com/api/v2/tasks \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llm": "<string>",
"task": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"metadata": {},
"output": "<string>",
"browserUseVersion": "<string>",
"isSuccess": true,
"judgement": "<string>",
"judgeVerdict": true,
"cost": "<string>",
"suggestions": [
{}
]
}
],
"totalItems": 123,
"pageNumber": 123,
"pageSize": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}