> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 多个请求

```json theme={null}
"multi":[
  {
    "query":{"q":"pizza","num":20}},
    {"query":{"q":"pizza","num":100}
  }
]
```

<Note>
  请注意，并行请求仅适用于异步模式。
</Note>

## 参数

<ParamField query="mutli" type="string" deprecated="true">
  通过我们的 API 服务器使用 POST 请求进行并行请求。

  并行请求将使用相同的对等体和会话，可用于比较测试，即使用 2 个不同的选定参数值进行相同的一对请求

  <CodeGroup>
    ```js 相同关键字，不同的 num theme={null}
    multi=[
      {"query":{"q":"pizza","num":20}},
      {"query":{"q":"pizza","num":100}}
    ]
    ```

    ```js 不同的关键字 theme={null}
    multi=[
      {"query":{"q":"pizza"}},
      {"query":{"q":"burger"}}
    ]
    ```
  </CodeGroup>
</ParamField>

<RequestExample>
  ```shell cURL highlight={5} theme={null}
  curl --request POST \
    --url https://api.brightdata.com/serp/req?zone=serp_api1 \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{"country": "US","multi":[{"query":{"q":"pizza","num":20}},{"query":{"q":"pizza","num":100}}]}'
  ```

  ```shell Native proxy highlight={4} theme={null}
  curl -i --silent --compressed \
    -H "Content-Type: application/json"
    -H "Authorization: Bearer API_KEY" \
    -d $'{"country":"us","multi":[{"query":{"q":"pizza","num":20}},{"query":{"q":"pizza","num":100}}]}'
    "https://api.brightdata.com/serp/req?customer=CUSTOMER_USERNAME&zone=ZONE_NAME"
  ```

  ```js Node.js highlight={10} theme={null}
  const options = {
    method: 'POST',
    headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
    body: JSON.stringify({
      query: {q: 'pizza', gl: 'au', hl: 'en', start: 20},
      country: 'US',
      multi: [{"query":{"q":"pizza","num":20}},{"query":{"q":"pizza","num":100}}]
    })
  };

  fetch('https://api.brightdata.com/serp/req?zone=serp_api1', options)
    .then(res => res.json())
    .then(res => console.log(res))
    .catch(err => console.error(err));
  ```

  ```python Python highlight={11} theme={null}
  import requests

  url = "https://api.brightdata.com/serp/req?zone=serp_api1"

  payload = {
      "multi": [{"query":{"q":"pizza","num":20}},{"query":{"q":"pizza","num":100}}],
      "country": "US",
      "brd_json": "json"
  }

  headers = {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
  }

  response = requests.post(url, json=payload, headers=headers)

  print(response.text)
  ```
</RequestExample>

```
```
