--- title: "Get Task" api: "GET /api/v1/task/{task_id}" description: "Get comprehensive information about a task" --- Returns comprehensive information about a task, including its current status, steps completed, output, and other metadata. ## Path Parameters ID of the task to retrieve ## Response The unique identifier for the task The original task instructions The final output or result from the task (if completed) Enumeration of possible task states. - created: Task is initialized but not yet started - running: Task is currently executing - finished: Task has completed successfully - stopped: Task was manually stopped - paused: Task execution is temporarily paused - failed: Task encountered an error and could not complete Available options: `created`, `running`, `finished`, `stopped`, `paused`, `failed` ISO 8601 timestamp of when the task was created List of task steps with execution details Unique identifier for the step Step number in the execution sequence Assessment of the previous goal's completion Description of what the next step aims to achieve URL of the page where the step was executed URL to view live task execution. To preview the url you can directly integrate it in `` Which will display the task execution and allows you to control the agent live. It is pure VNC implementation. ISO 8601 timestamp of when the task finished (if completed) Browser session data (if save_browser_data was enabled) This field is only available if save_browser_data is set to True in the request. List of cookies from the browser session List of files uploaded by the user for this task List of files generated during task execution Public URL for sharing the task (if public sharing was enabled) Custom metadata key-value pairs associated with the task ```python python import requests url = "https://api.browser-use.com/api/v1/task/{task_id}" headers = {"Authorization": "Bearer "} response = requests.request("GET", url, headers=headers) print(response.text) ``` ```bash curl curl --request GET \ --url https://api.browser-use.com/api/v1/task/{task_id} \ --header 'Authorization: Bearer ' ``` ```javascript javascript const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; fetch('https://api.browser-use.com/api/v1/task/{task_id}', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err)); ``` ```json 200 { "id": "", "task": "", "live_url": "", "output": "", "status": "created", "created_at": "2023-11-07T05:31:56Z", "finished_at": "2023-11-07T05:31:56Z", "steps": [ { "id": "", "step": 123, "evaluation_previous_goal": "", "next_goal": "", "url": "" } ], "browser_data": { "cookies": [ {} ] }, "user_uploaded_files": [ "" ], "output_files": [ "" ], "public_share_url": "", "metadata": { "campaign": "q4-automation", "team": "marketing" } } ``` ```json 422 { "detail": [ { "loc": [ "" ], "msg": "", "type": "" } ] } ```