List Browsercode Runs
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "<string>",
"status": "queued",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agent": "browsercode",
"browserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": "<string>",
"error": "<string>",
"totalInputTokens": 0,
"totalOutputTokens": 0,
"totalCostUsd": "0",
"missingFileIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
],
"nextCursor": "<string>",
"hasMore": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}browsercode
List Browsercode Runs
List browsercode runs, newest-first. Scope to one conversation with
?sessionId=. MOCKED items.
GET
/
agents
/
browsercode
/
runs
List Browsercode Runs
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}};
fetch('https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs \
--header 'X-Browser-Use-API-Key: <api-key>'import requests
url = "https://api-staging-ufcbwvyv9yifyyvc3.browser-use.com/api/v1/agents/browsercode/runs"
headers = {"X-Browser-Use-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"id": "<string>",
"status": "queued",
"sessionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"model": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"agent": "browsercode",
"browserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": "<string>",
"error": "<string>",
"totalInputTokens": 0,
"totalOutputTokens": 0,
"totalCostUsd": "0",
"missingFileIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
],
"nextCursor": "<string>",
"hasMore": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Required range:
1 <= x <= 200Was this page helpful?