Get Task
Get detailed task information including status, progress, steps, and file outputs.
GET
/
tasks
/
{task_id}
Get Task
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks/{task_id}', 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} \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks/{task_id}"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llm": "<string>",
"task": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"number": 123,
"memory": "<string>",
"evaluationPreviousGoal": "<string>",
"nextGoal": "<string>",
"url": "<string>",
"actions": [
"<string>"
],
"screenshotUrl": "<string>",
"duration": 123
}
],
"outputFiles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileName": "<string>"
}
],
"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": [
{}
]
}{
"detail": "Task not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Response
Successful Response
View model for representing a task with its execution details
Was this page helpful?
⌘I
Get Task
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api.browser-use.com/api/v2/tasks/{task_id}', 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} \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api.browser-use.com/api/v2/tasks/{task_id}"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"llm": "<string>",
"task": "<string>",
"status": "created",
"createdAt": "2023-11-07T05:31:56Z",
"steps": [
{
"number": 123,
"memory": "<string>",
"evaluationPreviousGoal": "<string>",
"nextGoal": "<string>",
"url": "<string>",
"actions": [
"<string>"
],
"screenshotUrl": "<string>",
"duration": 123
}
],
"outputFiles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fileName": "<string>"
}
],
"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": [
{}
]
}{
"detail": "Task not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}