The easiest way to start is to send a simple query without custom options. We will add all standard headers on our end, pick the fastest proxy, and deliver you the response body.
If you are observing low success rates or retrieve empty content, please try adding additional "x-oxylabs-render: html" header with your request. More information about JavaScript rendering can be found here.
To utilize additional functionalities of Web Unblocker, such as setting up proxy location or reusing the same IP for a few consecutive requests, please send additional headers with the request.
For optimal website unblocking, Web Unblocker employs pre-defined cookies, headers, and sessions. Please refrain from sending any custom parameters commonly used for unblocking, as they may interfere with Web Unblocker’s ability to get quality data.
Here's the full list of supported functionalities and headers:
Additional functionalities
Parameter
Description
Link to read more
X-Oxylabs-Session-Id
If you would like to reuse the same IP for multiple requests, add a session ID which can be a random string of characters.
If your target site returns a non-standard status code with a successful response, you can send the response status code, and our system will not retry the request.
import requests# Use your Web Unblocker credentials here.USERNAME, PASSWORD ='YOUR_USERNAME','YOUR_PASSWORD'# Define proxy dict.proxies ={'http':f'http://{USERNAME}:{PASSWORD}@unblock.oxylabs.io:60000','https':f'https://{USERNAME}:{PASSWORD}@unblock.oxylabs.io:60000',}response = requests.request('GET','https://ip.oxylabs.io/headers', verify=False, # Ignore the SSL certificate proxies=proxies,)# Print result page to stdoutprint(response.text)# Save returned HTML to result.html filewithopen('result.html', 'w')as f: f.write(response.text)