Transparent Status Codes & URLs
You can tell the ScrapeOps Proxy API to return the initial or final status code recieved from the target website using the
- Initial Status Code: To have the initial status code returned then add
initial_status_code=trueto your request. This is useful if you want to see if the request is getting redirected to another URL. The initial status code will be returned in the
- Final Status Code: To have the final status code returned then add
final_status_code=trueto your request. This is useful if you want to validate the response if correct. The final status code will be returned in the
When these parameters are enabled the proxy will also return the Final URL in the
final_status_code=true changes which proxy providers and proxy pools that can be used to process your request. If you enable this functionality it might change the selected proxy to one that performs worse than the normally selected proxy. So you should only enable this functionality if you really need to use this functionality.
Note: It is not possible to set both
final_status_code to true as they use different proxy providers.