For AI agents: a documentation index is available at /llms.txt
Skip to main content

Export pages and assets

Export a full page snapshot (HTML, stylesheets, scripts, images, and fonts) in a single request.

Prerequisites

Steps

POST to the /export endpoint with includeResources: true. The response is a ZIP file containing the page HTML and its linked assets (same-origin resources are always included; cross-origin resources depend on server configuration).

View Full Code on GitHub

1. Build the request

Append your token to the export endpoint:

https://production-sfo.browserless.io/export?token=YOUR_API_TOKEN_HERE

2. Send the request and save the ZIP

curl --fail -X POST \
"https://production-sfo.browserless.io/export?token=YOUR_API_TOKEN_HERE" \
-H "Content-Type: application/json" \
-d '{"url":"https://scraping-sandbox.netlify.app/harvest-direct","includeResources":true}' \
--output page.zip

echo "Saved page.zip"

Next steps