Explore Web Unlocker API’s advanced features like CAPTCHA solving, Premium Domains, Headers & Cookies management, and Browser Rendering for efficient web scraping.
How can I get started?
Expand to view current premium domains
-country-country_code
-ua-mobile
-ua-mobile
to your request.
x-unblock-data-format: markdown
header when using the native proxy interface, or set data_format: 'markdown'
when using the API.
x-unblock-data-format: screenshot
header when using the native proxy interface or add data_format: screenshot
to request body when using API interface.
Output format is .png
Access to Pre-approved List of Headers/Cookies
Send Request for New Headers/Cookies
Charging for All Requests
x-unblock-expect
header to instruct Web Unlocker to wait for specific elements or text before returning the response.x-unblock-expect
header seen below.
Add header
x-unblock-city
- Simulates selecting a city.x-unblock-zipcode
- Simulates selecting a ZIP code on Amazon.x-brd-debug
header for this purpose.
To activate the headers, add -debug-full
to your proxy username.
x-brd-debug
header looks like this:
Field | Description |
---|---|
req_id | The internal ID of your request into our system. Providing this can be helpful in bug reports as it will help us see details on what happened in your specific request. |
bytes_up | The amount of outgoing traffic our system recorded while processing this request |
bytes_down | The amount of incoming traffic our system recorded while processing this request |
billed | Whether our system considers this a billable request or not |
destination_ip | The IP address of the remote server used to fetch this data |
used_req_headers | Which request headers (if any) were used in the final request. This mainly applies when using Custom Web Unlocker API |
peer_ip | A unique identifier for the IP address used to make the request. This is mainly useful to validate IP rotation is working as you expect |
peer_country | The country of the peer that was used for the request |
render | Shows whether the returned page is the result after a browser rendered the HTML or the response body of a single HTTP request |
Error | Description |
---|---|
404 | Page not found. Invalid URL, which suggests the URL might be broken or dead. |
403 | The URL you’re trying to access is valid, but you are forbidden from accessing that URL. |
502 | Error code 502 is the most common error for Web Unlocker API users, the descriptive part is under the x-luminati-error-code . |
407 | This error code suggests one of your account credentials is incorrect (password or zone’s name). |
429 | This error code implies a rate limit (rare). In such cases, if the response appears as below, Bright Data is applying auto-throttling to the request, and you should open a ticket or email support@brightdata.com for assistance. |
401 411 444 | Bad request, usually happens in API requests when headers or cookies missing. |
503 | HTTP error code 503 means “Service Unavailable”. Browser check failed or browser check wasn’t completed |
Contact support for further assistance
curl
and your Web Unlocker API zone-v -o test
to your command (this will turn on verbose logging, and create an output file named ‘test’ for you to share with our support agents)curl
request you sent to generate the resultexample.com
or for a wildcard domain like example.*
in order to get statistics for all top-level domains.
Note: calling this API endpoint requires using your
API key
How to get statistics for a single domain?