curl https://api.brightdata.com/request \
-H "Content-Type: application/json" \
-H "Authorization: Bearer API_KEY" \
-d '{
"zone": "web_unlocker1",
"url": "https://bright-data-unlocker-demo.vercel.app/",
"format": "json"
}'
(async () => {
const response = await fetch('https://api.brightdata.com/request', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY'
},
body: JSON.stringify({
zone: 'web_unlocker1',
url: 'https://bright-data-unlocker-demo.vercel.app/',
format: 'json'
})
});
const data = await response.json();
console.log(data);
})();
import requests
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer API_KEY',
}
payload = {
'zone': 'web_unlocker1',
'url': 'https://bright-data-unlocker-demo.vercel.app/',
'format': 'json'
}
response = requests.post('https://api.brightdata.com/request', json=payload, headers=headers)
print(response.json())
<!DOCTYPE html>
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div>
<h1>Bright Data Unlocker Demo</h1>
<h2>About Bright Data Unlocker</h2>
<p>Bright Data Unlocker is a service that helps bypass bot detection and access websites that might otherwise
block automated requests. It handles JavaScript rendering, manages cookies and sessions, and rotates IP
addresses.</p>
<h2>How It Works</h2>
<p>When you make a request through Bright Data Unlocker:</p>
<ol>
<li>Your request is routed through Bright Data's proxy network</li>
<li>The service handles any bot detection or anti-scraping measures</li>
<li>JavaScript is executed if needed to render dynamic content</li>
<li>The complete HTML response is returned to you </li>
</ol>
</div>
</body>
</html>
# Bright Data Unlocker Demo
## About Bright Data Unlocker
Bright Data Unlocker is a service that helps bypass bot detection and access websites that might otherwise block automated requests. It handles JavaScript rendering, manages cookies and sessions, and rotates IP addresses.
## How It Works
When you make a request through Bright Data Unlocker:
1. Your request is routed through Bright Data's proxy network
2. The service handles any bot detection or anti-scraping measures
3. JavaScript is executed if needed to render dynamic content
4. The complete HTML response is returned to you