You must configure your HTTP client read timeout to 155s
to avoid any issues. Scrapfly will manage the timeout according
the strategy used. If you specify a custom timeout value, add 5s to your read timeout - screenshot, debug, cache add some overhead
Timeout configuration allow you set a deadline when you start a scrape. In that way you can ensure the scrape will not take more time than the defined timeout, Scrapfly will stop and return an error.
Time management is crucial in web scraping in order to recover as fast as possible. Everything steps are budgeted and tracked
to prevent and recover from issue as fast as possible and provide the best reliability. Some scrapes are fast <5s
, some other can require more time when
rendering javascript ~25s
or even more when using complex user scenario ~90s
To be able to customize a timeout, retry must be disable retry=false
.
If you are in the one of the following case:
Always +5s
to your client read timeout when you customize the scrape timeout.
If you disable retry while using ASP, the default timeout is 30s. However, regarding some targeting that require are quite slow to pass, we recommend to increase the timeout to 60s as minimum. Below 60s, there is a high chance that on slow website or challenge, our system is not able to recover, rotate and bypass again. It will result by a blocked scrape on your end.
retry=false&timeout=90000
, your http read timeout should be 95s
15s
retry=false&timeout=15000
, your http read timeout should be 20s
curl -G \
--request "GET" \
--url "https://api.scrapfly.io/scrape" \
--data-urlencode "key=__API_KEY__" \
--data-urlencode "url=https://httpbin.org/anything" \
--data-urlencode "retry=false" \
--data-urlencode "tags=player,project:default" \
--data-urlencode "timeout=15000"
"https://api.scrapfly.io/scrape?key=&url=https%3A%2F%2Fhttpbin.org%2Fanything&retry=false&tags=player%2Cproject%3Adefault&timeout=15000"
"api.scrapfly.io"
"/scrape"
key = ""
url = "https://httpbin.org/anything"
retry = "false"
tags = "player,project:default"
timeout = "15000"