Forcing Timeouts
When using a browser to make requests, some URLs have the tendency to have long timeouts, because some esoteric part of the DOM is still loading. For that reason, Shifter's Scraping API returns all the HTML that could be gathered until the timeout was triggered.
The example on this page demonstrates how to force a timeout after timeout=3000
3 seconds. The maximum value that can be set for this parameter is 60000.
Forcing Timeouts examples
You can specify the maximum allowed time that the engine is allowed to render, by passing the timeout parameter.
GET https://scrape.shifter.io/v1?api_key=api_key&url=https://httpbin.org/get&render_js=1&timeout=200
⇡ Input
⇣ Output
Last updated
Was this helpful?