session_id=12345
parameter in your requests, ZenRows® will ensure that all requests made with the same Session ID are routed through the same IP address for 10 minutes.
This feature is useful for web scraping sites that track sessions or limit IP rotation. It helps simulate a persistent session and avoids triggering anti-bot systems that flag frequent IP changes.
1
to 99999
for session_id
.403 Forbidden
or 500 Internal Server Error
).
If you need to retrieve the original HTTP status code returned by the target website, simply enable the original_status=true
parameter. This is particularly useful for debugging, understanding site-specific responses, or adapting scraping strategies based on the target site’s behavior.
404 Not Found
, 500 Internal Server Error
, or 503 Service Unavailable
. Even in these cases, the response might contain valuable information, such as error messages or partial content that can aid in debugging.
To access this content despite the error status, you can use the allowed_status_codes
parameter. This feature enhances the API’s debugging capabilities by allowing you to retrieve the content associated with specified error codes.
You can specify multiple status codes in a single request by separating them with commas.
allowed_status_codes
will incur charges!/v1/subscriptions/self/details
. This allows you to track your API usage in real time, enabling better management of your resources and ensuring you stay within your plan’s limits.
Calls made to this endpoint do not count against your concurrency limits, making it an efficient way to gather usage statistics without impacting your scraping activities.
To use this feature, include your API Key in the request header using X-API-Key
. This is necessary for authentication and to ensure that the usage data corresponds to your account.
/usage
is deprecated, so please use the updated endpoint for all future requests to avoid disruptions.What is the Session ID feature?
session_id
parameter (ranging from 1 to 99999), ZenRows® ensures that all requests with the same Session ID are routed through the same IP for up to 10 minutes. This helps avoid triggering anti-bot mechanisms on websites that track sessions, making it particularly useful for web scraping tasks where consistency is important.What should I do if I encounter errors during requests?
allowed_status_codes
parameter to access content even when error responses (like 404 or 500) are returned. This can provide valuable data for debugging and understanding the response from the server.How can I check my plan usage programmatically?
/v1/subscriptions/self/details
. This will return real-time usage data without counting against your concurrency limits. Include your API Key in the X-API-Key
header for authentication.