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

Quickstart

Scrape a website with a single HTTP request using the Browserless REST APIs.

  1. Sign Up

    Sign up for a Browserless account (free plan available).

  2. Get API Token

    Get your API token from the account dashboard.

  3. Run Your First Request

    curl -X POST "https://production-sfo.browserless.io/scrape?token=YOUR_API_TOKEN_HERE" \
    -H "Content-Type: application/json" \
    -d '{"url":"https://example.com","elements":[{"selector":"h1"}]}'

    Response

    {
      "data": [
        {
          "results": [
            {
              "html": "Example Domain",
              "text": "Example Domain"
            }
          ],
          "selector": "h1"
        }
      ]
    }

FAQ & Troubleshooting

Why am I getting a 403 Forbidden response?

Your API token is missing or malformed. Pass it as a ?token= query parameter, not in the request body. Verify the token in your account dashboard.

Do I need Puppeteer or Playwright to use the REST APIs?

No. REST APIs are standalone HTTP endpoints. Send a POST request with your parameters and receive the result directly. No browser libraries, WebSocket connections, or SDKs required.

Next steps