Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
JavaScript
const options = {method: 'GET', headers: {'X-Browser-Use-API-Key': '<api-key>'}}; fetch('https://api.browser-use.com/api/v4/workspaces/{workspace_id}/size', 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/workspaces/{workspace_id}/size \ --header 'X-Browser-Use-API-Key: <api-key>'
import requests url = "https://api.browser-use.com/api/v4/workspaces/{workspace_id}/size" headers = {"X-Browser-Use-API-Key": "<api-key>"} response = requests.get(url, headers=headers) print(response.text)
{ "usedBytes": 1, "maxBytes": 123 }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Return current storage usage and the plan-specific workspace quota.
Successful Response
Current workspace storage usage in bytes.
x >= 0
Maximum workspace storage allowed in bytes.
Was this page helpful?