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

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

url = "https://api.browser-use.com/api/v4/browsers/{session_id}/downloads"

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

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

print(response.text)
{
  "files": [
    {
      "path": "<string>",
      "size": 123,
      "lastModified": "2023-11-07T05:31:56Z",
      "url": "<string>"
    }
  ],
  "nextCursor": "<string>",
  "hasMore": false
}
{
  "detail": "Session not found"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

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

Path Parameters

session_id
string<uuid>
required

Query Parameters

limit
integer
default:50
Required range: 1 <= x <= 100
cursor
string | null
includeUrls
boolean
default:false

Response

Successful Response

Paginated list of browser downloads with optional presigned URLs.

files
BrowserDownloadFile · object[]
required

List of files downloaded by the browser

nextCursor
string | null

Cursor for the next page. Pass as the cursor query parameter to fetch the next page.

hasMore
boolean
default:false

Whether there are more files beyond this page.