Skip to main content
GET
/
runs
List Runs
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};

fetch('https://api.browser-use.com/api/v4/runs', 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/v4/runs \
--header 'X-Browser-Use-API-Key: <api-key>'
import requests

url = "https://api.browser-use.com/api/v4/runs"

headers = {"X-Browser-Use-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
{
  "runs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "task": "<string>",
      "title": "<string>",
      "model": "<string>",
      "contextLimit": 123,
      "result": "<string>",
      "error": "<string>",
      "sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "totalInputTokens": 123,
      "totalOutputTokens": 123,
      "totalCostUsd": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "attachedFileIds": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "judgement": {}
    }
  ],
  "nextCursor": "<string>",
  "hasMore": false
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

X-Browser-Use-API-Key
string
header
required

Query Parameters

limit
integer
default:50
cursor
string | null

Keyset cursor from a prior response.

sessionId
string<uuid> | null

Response

Successful Response

runs
RunSummary · object[]
required
nextCursor
string | null
hasMore
boolean
default:false