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

# 参数概览

> Decodo 网页数据 API 的全部 /scrape 参数，包括默认值、说明和示例。

<Note>
  请注意，支持的参数可能因目标模板而略有不同。[**了解更多**](/docs/cn/web-scraping-api-targets)。
</Note>

| 参数 | 默认值 | 说明 | 示例 | |
| :- | :- | :- | :- | - |
| `proxy_pool` | `premium` | `standard` 适用于简单页面；<br />`Premium` 可应对复杂的反爬虫机制，并用于目标模板 | `standard` | |
| `url` 或 `query` | `null` | 必填。部分[**目标模板**](/docs/cn/web-scraping-api-targets)支持 `query` 参数，其余情况必须提供 `url`。 | `https://ip.decodo.com` | |
| `target` | `null` | 使用特定[**目标模板**](/docs/cn/web-scraping-api-targets)时必填 | `google_search` | |
| `headless` | `null`<br />部分目标模板默认强制启用 JS 渲染 | `html` 值用于启用 JavaScript 渲染。[了解更多。](/docs/cn/web-data-api-scrape-javascript-rendering)<br />`png` 值用于启用截图响应。[了解更多。](/docs/cn/web-data-api-screenshot-response) | `html` | |
| `geo` | 自动随机 | 结果所依据的地理位置。请使用首字母大写的完整国家名称（`United States`）或大写的两位字母代码（`US`）。[**了解更多**](/docs/cn/web-data-api-scrape-localisation)。 | `United States` | |
| `domain` | `com` | 指定顶级域名：**com**、**co.uk**、**fr** 等。 | `com` | |
| `locale` | 与 `domain` 参数匹配 | 用于更改搜索页面的网页界面语言（不影响结果）。<br />示例：– en-US – en-GB | `en-gb` | |
| `headers` | `null` | 向目标请求添加请求头，请以对象形式发送。 | `{"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"}` | |
| `cookies` | `null` | 发送给目标网站的 Cookie，例如用于设置货币或语言偏好。请以包含 `key` 和 `value` 的对象数组形式发送。 | `[{"key": "currency", "value": "USD"}]` | |
| `force_cookies` | `false` | 默认情况下，用户提供的 Cookie 不会转发到目标网站。<br />将此参数设为 `true` 可更改此行为。 | `true` | |
| `force_headers` | `false` | 默认情况下，用户提供的请求头不会转发到目标网站。<br />将此参数设为 `true` 可更改此行为。 | `true` | |
| `device_type` | `desktop` | 设备类型和浏览器。[了解更多。](/docs/cn/web-data-api-scrape-device-types) | `desktop` | |
| `parse` | `false` | 部分目标模板提供专用解析器。<br />如需获取结构化数据，请将 `parse` 参数设为 `true`。[了解更多。](/docs/cn/web-data-api-scrape-parsing) | `true` | |
| `session_id` | `null` | 会话标识，可在最长 10 分钟内为多个请求重复使用同一 IP | `1234` | |
| `http_method` | `GET` | 用于发送 `POST` 请求而非 `GET` 请求。 | `POST` | |
| `payload` | `null` | 经 Base64 编码的 `POST` 请求体。当 `http_method` 为 `POST` 时使用。 | `eyJmb28iOiAiYmFyIn0=`（`{"foo": "bar"}` 的编码结果） | |
| `successful_status_codes` | `null` | 定义一个或多个您视为成功并希望获取其内容的 `HTTP` 响应代码。 | `401`、`404` | |
| `markdown` | `false` | 将 HTML 输出解析为 Markdown，在将结果输入 LLM 模型时可减少令牌消耗。[了解更多。](/docs/cn/web-data-api-markdown-response) | `true` | |
| `xhr` | `false` | 获取 XHR 和 fetch 请求列表。[了解更多。](/docs/cn/web-data-api-fetch-and-xhr) | `true` | |

***

<Columns cols={2}>
  <Card title="支持" href="https://direct.lc.chat/12092754" cta="让我们聊聊！">
    需要帮助或只是想打个招呼？我们的支持团队全天候为您服务。 \
    您也可以随时通过电子邮件 [support@decodo.com](mailto:support@decodo.com) 联系我们。
  </Card>

  <Card title="反馈" href="mailto:feedback@decodo.com" cta="分享反馈">
    找不到您要找的内容？请求一篇文章！ \
    有反馈意见？分享您对我们如何改进的想法。
  </Card>
</Columns>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.