Scrapeless API
Dashboard
Dashboard
  1. Universal Scraping API
  • User
    • Get User Info
      GET
  • Scraping Browser
    • CDP API
    • Browser extensions
      • Upload extension
      • Upgrade extension
      • Delete extension
      • Extension info
      • Extension list
    • Connect
      WSS
    • Running sessions
      GET
    • Live URL
      GET
  • Scraping API
    • shopee
      • Actor List
      • Shopee Product
      • Shopee Search
      • Shopee Rcmd
    • br sites
      • Solucoes cnpjreva
      • Solucoes certidaointernet
      • Servicos receita
      • Consopt
    • amazon
      • API Parameters
      • product
      • seller
      • keywords
    • google search
      • API Parameters
      • Google Search
      • Google Images
      • Google Local
      • Google Shopping
      • Google Videos
    • google trends
      • API Parameters
      • AutoComplete
      • Interest Over Time
      • Compared Breakdown By Region
      • Interest By Subregion
      • Related Queries
      • Related Topics
      • Trending Now
    • google flights
      • API Parameters
      • Round trip
      • One way
      • Multi-city
    • google flights chart
      • API Parameters
      • chart
    • google maps
      • API Parameters(Google Maps)
      • API Parameters(Google Maps Autocomplete)
      • API Parameters(Google Maps Contributor Reviews)
      • API Parameters(Google Maps Directions)
      • API Parameters(Google Maps Reviews)
      • Google Maps
      • Google Maps Autocomplete
      • Google Maps Contributor Reviews
      • Google Maps Directions
      • Google Maps Reviews
    • google scholar
      • API Parameters(Google Scholar)
      • API Parameters(Google Scholar Author)
      • API Parameters(Google Scholar Cite)
      • API Parameters(Google Scholar Profiles)
      • Google Scholar
      • Google Scholar Author
      • Google Scholar Cite
      • Google Scholar Profiles
    • google jobs
      • API Parameters
      • Google Jobs
    • google shopping
      • API Parameters
      • Google Shopping
    • google hotels
      • API Parameters
      • Supported Google Vacation Rentals Property Types
      • Supported Google Hotels Property Types
      • Supported Google Vacation Rentals Amenities
      • Supported Google Hotels Amenities
      • Google Hotels
    • google news
      • API Parameters
      • Google News
    • google lens
      • API Parameters
      • Google Lens
    • google finance
      • API Parameters
      • Google Finance
      • Google Finance Markets
    • google product
      • API Parameters
      • Google Product
    • google play store
      • API Parameters
      • Supported Google Play Categories
      • Google Play Games
      • Google Play Books
      • Google Play Movies
      • Google Play Product
      • Google Play Apps
    • google ads
      • API Parameters
      • Google Ads
    • Scraper Request
      POST
    • Scraper GetResult
      GET
  • Universal Scraping API
    • JS Render Docs
    • JS Render
      POST
    • Web Unlocker
      POST
  • Crawler
    • Scrape
      • Scrape a single URL
      • Scrape multiple URLs
      • Cancel a batch scrape job
      • Get the status of a scrape
      • Get the status of a batch scrape job
      • Get the errors of a batch scrape job
    • Crawl
      • Crawl multiple URLs based on options
      • Cancel a crawl job
      • Get the status of a crawl job
      • Get the errors of a crawl job
  • Public
    • actor status
    • actor status
  1. Universal Scraping API

JS Render

POST
/api/v1/unlocker/request
Last modified:2025-06-10 03:09:41

Request

Authorization
Add parameter in header
x-api-token
Example:
x-api-token: ********************
Body Params application/json
actor
string 
required
fixed valueunlocker.webunlocker
proxy
object 
optional
proxy info
country
string 
required
proxy country
input
object 
required
url
string 
required
target URL
headless
boolean 
optional
headless: true or false
Default:
false
js_render
boolean 
optional
js_instructions
array [object {6}] 
optional
JavaScript Instructions Reference
block
object 
optional
js_wait_until
enum<string> 
optional
when to consider waiting succeeds. given an array of event strings, waiting is considered to be successful after all events have been fired
Allowed values:
loaddomcontentloadednetworkidle0networkidle2
Default:
domcontentloaded
outputs
enum<string> 
optional
filter data from HTML, it accepts a comma-separated list of filter names and returns the results in a escaped JSON string format. work in js render mode only
Allowed values:
phone_numbersheadingsimagesaudiosvideoslinksmenushashtagsemailsmetadatatablesfavicon
response_type
enum<string> 
optional
specify the return type of the string data in response. work in js render mode only
Allowed values:
htmlplaintextmarkdownpngjpeg
Default:
html
response_image_full_page
boolean 
optional
when true, takes a image of the full page. only work when response_type equals to png or jpeg
Default:
false
selector
string 
optional
CSS selector for output filters and specified response type. work in js render mode only
Example
{
    "actor": "unlocker.webunlocker",
    "proxy": {
        "country": "US"
    },
    "input": {
        "url": "https://www.scrapeless.com",
        "headless": false,
        "js_render": true,
        "js_instructions": [
            {
                "wait": 10000
            },
            {
                "wait_for": [
                    ".dynamic-content",
                    30000
                ]
            },
            {
                "click": [
                    "#load-more",
                    1000
                ]
            },
            {
                "fill": [
                    "#search-input",
                    "search term"
                ]
            },
            {
                "keyboard": [
                    "press",
                    "Enter"
                ]
            },
            {
                "evaluate": "window.scrollTo(0, document.body.scrollHeight)"
            }
        ],
        "block": {
            "resources": [
                "stylesheet",
                "image",
                "media",
                "font",
                "script",
                "texttrack",
                "xhr",
                "fetch",
                "eventsource",
                "websocket",
                "manifest",
                "other"
            ]
        }
    }
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.scrapeless.com/api/v1/unlocker/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token;' \
--data-raw '{
    "actor": "unlocker.webunlocker",
    "proxy": {
        "country": "US"
    },
    "input": {
        "url": "https://www.scrapeless.com",
        "headless": false,
        "js_render": true,
        "js_instructions": [
            {
                "wait": 10000
            },
            {
                "wait_for": [
                    ".dynamic-content",
                    30000
                ]
            },
            {
                "click": [
                    "#load-more",
                    1000
                ]
            },
            {
                "fill": [
                    "#search-input",
                    "search term"
                ]
            },
            {
                "keyboard": [
                    "press",
                    "Enter"
                ]
            },
            {
                "evaluate": "window.scrollTo(0, document.body.scrollHeight)"
            }
        ],
        "block": {
            "resources": [
                "stylesheet",
                "image",
                "media",
                "font",
                "script",
                "texttrack",
                "xhr",
                "fetch",
                "eventsource",
                "websocket",
                "manifest",
                "other"
            ]
        }
    }
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
data
string 
required
Example
{
    "code": 200,
    "data": ""
}
Modified at 2025-06-10 03:09:41
Previous
JS Render Docs
Next
Web Unlocker
Built with