Get Task Status
Lightweight endpoint optimized for polling task status.
Returns only the task status, output, and cost without loading steps, files, or session details. Use this endpoint for efficient polling instead of GET /tasks/.
Recommended polling pattern:
- POST /tasks to create a task
- Poll GET /tasks//status until status is ‘finished’ or ‘stopped’
- GET /tasks/ once at the end for full details including steps
GET
/
tasks
/
{task_id}
/
status
Get Task Status
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks/{task_id}/status', 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/{task_id}/status \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks/{task_id}/status"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"output": "<string>",
"finishedAt": "2023-11-07T05:31:56Z",
"isSuccess": true,
"cost": "<string>"
}{
"detail": "Task not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Response
Successful Response
Lightweight view optimized for polling. Use GET /tasks/{id}/status for efficient polling instead of GET /tasks/{id} which loads full step details.
Was this page helpful?
⌘I
Get Task Status
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks/{task_id}/status', 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/{task_id}/status \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks/{task_id}/status"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"output": "<string>",
"finishedAt": "2023-11-07T05:31:56Z",
"isSuccess": true,
"cost": "<string>"
}{
"detail": "Task not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}