跳转到主要内容
POST
/
request
cURL
curl --request POST \
  --url https://api.brightdata.com/request \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "zone": "<string>",
  "url": "<string>",
  "format": "raw",
  "method": "GET",
  "country": "<string>"
}
'
"OK"

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

async
boolean

Set this to true for asynchronous

请求体

application/json
zone
string
必填

Name of the proxy zone which will service your request.

url
string
必填

Target URL for your request.

format
enum<string>
必填

Format for requesting a raw HTML via proxy is raw.

Format for request a JSON response is json.

可用选项:
raw,
json
method
string
默认值:GET

Method for requesting an HTML via proxy is GET.

country
string

Country code of proxy which request is relayed through.

响应

OK

The response is of type string.

示例:

"OK"