JavaScript
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}}; fetch('https://api.browser-use.com/api/v3/sessions', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "sessions": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "created", "model": "bu-mini", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "title": "<string>", "output": "<unknown>", "outputSchema": {}, "stepCount": 0, "lastStepSummary": "<string>", "isTaskSuccessful": true, "liveUrl": "<string>", "recordingUrls": [], "profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "proxyCountryCode": "ad", "maxCostUsd": "<string>", "totalInputTokens": 0, "totalOutputTokens": 0, "proxyUsedMb": "0", "llmCostUsd": "0", "proxyCostUsd": "0", "browserCostUsd": "0", "totalCostUsd": "0", "screenshotUrl": "<string>", "agentmailEmail": "<string>" } ], "total": 123, "page": 123, "pageSize": 123 }
List sessions for the authenticated project.
Page number (1-indexed).
x >= 1
Number of sessions per page (max 100).
1 <= x <= 100
Successful Response
List of sessions.
Show child attributes
Total number of sessions matching the query.
Current page number (1-indexed).
Number of sessions per page.
Was this page helpful?