Endpoint: POST https://api.brightdata.com/wsapi
示例请求
Request
API_KEY="your api key here"
curl -v \
--max-time 900 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{"zone": "unblocker","url": "https://example.com", "format": "json"}' \
https://api.brightdata.com/wsapi
Response
{
"status_code": 200,
"headers": {
"date": "Wed, 18 Sep 2024 04:46:04 GMT",
"expires": "-1",
"cache-control": "private, max-age=0",
"content-type": "text/html; charset=UTF-8",
"strict-transport-security": "max-age=31536000",
"content-security-policy": "object-src 'none';base-uri 'self';script-src 'nonce-h08eIpRAbozlS3uJWJNgkA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/sf",
"accept-ch": "Sec-CH-Prefers-Color-Scheme",
"server": "gws",
"x-xss-protection": "0",
"x-frame-options": "SAMEORIGIN",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"connection": "keep-alive",
"keep-alive": "timeout=5",
"transfer-encoding": "chunked"
},
"body": "<!doctype html><html><body>...</body></html>"
}
请求参数
string
必填
您想要加载的 URL
string
必填
您希望用于请求的代理区域
string
必填
您希望输出的响应格式 (
raw 或 json)