Scrape JavaScript websites

Some sites render content with JavaScript (SPAs). Enable render mode to get the final DOM. Start here, then read the full API doc for details.

Note: Install the SDKs if you haven’t already: https://docs.supacrawler.com/api/install

Quickstart

curl -G https://api.supacrawler.com/api/v1/scrape \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d url="https://spa-example.com" \
  -d format="markdown" \
  -d render_js=true \
  -d wait=3000 \
  -d device=desktop

Tips:

  • Use render_js=true only when needed; non-rendered fetch is faster/cheaper
  • wait/wait_for_selector improves reliability for JS hydration
  • device can change layout and content

Links: Scrape API

Was this page helpful?