Using the js_instructions parameter, you can get the scraped site after performing various Javascript instructions.
Javascript instructions can only be applied with JavaScript rendering enabled.
Javascript Instructions parameters
Parameter
Details
action
Choose between click, scrollTo, focus, value and submit (only for FORM elements).
selector
The CSS selector.
timeout
Perform a timeout after each javascript instruction. Measured in ms.
Javascript Instructions examples
GET https://scrape.shifter.io/v1?api_key=api_key&url=https://example.com&js_instructions=%5B%7B%22action%22%3A%22scrollTo%22%2C%22selector%22%3A%22div.navFooterBackToTop%22%2C%22timeout%22%3A%205000%2C%20%22block%22%3A%20%22start%22%7D%5D
⇡ Input
curl --request GET --url "https://scrape.shifter.io/v1?api_key=api_key&url=https://example.com&js_instructions=%5B%7B%22action%22%3A%22scrollTo%22%2C%22selector%22%3A%22div.navFooterBackToTop%22%2C%22timeout%22%3A%205000%2C%20%22block%22%3A%20%22start%22%7D%5D"
var client = new RestClient("https://scrape.shifter.io/v1?api_key=api_key&url=https://example.com&js_instructions=%5B%7B%22action%22%3A%22scrollTo%22%2C%22selector%22%3A%22div.navFooterBackToTop%22%2C%22timeout%22%3A%205000%2C%20%22block%22%3A%20%22start%22%7D%5D");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);