Skip to main content
import requests

response = requests.get(
"https://api.simplex.sh/download_session_files",
headers={"Authorization": f"Bearer {api_key}"},
params={"session_id": "session_123"}
)

with open("session_files.zip", "wb") as f:
f.write(response.content)
This response does not have an example.
Downloads files that were saved during a browser session. If a specific filename is provided, returns that single file. Otherwise, returns all files from the session as a zip archive.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Query Parameters

session_id
string
required

The ID of the session to download files from

filename
string

Specific filename to download. If omitted, all files are returned as a zip

Response

File download response

Single file download