# Headless Browsers (JavaScript Rendering)

Use the JavaScript token when the content you need to crawl is generated via JavaScript, either because it's a JavaScript built page (React, Angular, etc.) or because the content is dynamically generated on the browser.

JavaScript token

_JS_TOKEN_

# How it works?

When you send a request using your JavaScript token to the Crawling API, internally we let your request run on our headless browser infrastructure. Using the JS token allows you to benefit from more features like capturing screenshots of images and bypassing block of websites that only work on browser enabled crawlers. Check the parameters section with the list of features you can use that are only available while JS crawling.

# JavaScript API Rate Limit

By default the Crawling API is rate limited to 20 requests per second (1.728M req/day) for JavaScript crawling. If you require a higher rate limit, please contact support (opens new window) with your usecase.

# JavaScript request example

  • curl
  • ruby
  • node
  • php
  • python
  • go
curl "https://api.crawlbase.com/?token=_JS_TOKEN_&url=https://www.missguidedau.com/petite-black-msgd-insert-mesh-cut-out-gym-leggings-10202499"

# JavaScript Execution

If you want to execute a custom JavaScript code in the pages you want to scrape before we return your HTML, please contact support (opens new window) with your use-case.