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

# 设置 Google Shopping 产品信息任务

> 排队查询某个具体 Google Shopping 商品，返回任务 id。

排队查询某个具体 Google Shopping 商品，返回任务 `id`。用 `product_id` 加上从 `get_dataforseo_merchant_google_products_fetch` 结果里拿到的 `gid` 或 `data_docid` 定位商品。本家族全程异步：submit 在 `tasks[0].id` 返回任务 `id`，结果就绪后由 fetch 取回。💰 **费用发生在 submit**，fetch 免费，重复 fetch 也不再收费。 用 `get_dataforseo_merchant_google_product_info_fetch` 取结果。

## 示例

<CodeGroup>
  ```bash REST theme={null}
  curl -X POST "https://api.aisa.one/apis/v1/dataforseo/merchant/google/product_info/task_post" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -d '[{"product_id": "...", "data_docid": "...", "gid": "..."}]'
  ```

  ```jsonc MCP theme={null}
  // 把整段复制给 Claude Code、Codex、Cursor 或任意 coding agent。
  // 连接、授权、跑通这个例子需要的东西都在里面 ——
  // 不用粘贴任何 key，浏览器里点一次 Allow 就好。
  {
    "operation_id": "post_dataforseo_merchant_google_product_info_submit",
    "arguments": {},
    "max_price_usd": 0.05
  }
  // ── for the agent ─────────────────────────────────────────────────────────
  // Register the AIsa MCP server, then call its `use` tool with the JSON above.
  //   name       aisa
  //   endpoint   https://mcp.aisa.one/mcp
  //   transport  streamable-http
  //   auth       OAuth. The server publishes RFC 9728 metadata, so open a
  //              browser and the user clicks Allow once — nothing to paste.
  //              If AISA_API_KEY is set, send it as a bearer header instead.
  // Use your own MCP mechanism, not a hand-edited config file:
  //   Codex        codex mcp add aisa --url https://mcp.aisa.one/mcp
  //   Claude Code  claude mcp add --transport http -s user aisa https://mcp.aisa.one/mcp
  //   Cursor / VS Code   a "url" entry for https://mcp.aisa.one/mcp in the MCP config
  // The server lists five tools over https://mcp.aisa.one/servers worth of APIs:
  // search, get_details, use, batch_use, list_categories. search and
  // get_details are free; use is billed per call and max_price_usd refuses
  // anything above the cap before spending. This operation's full contract —
  // every argument, the response shape, the price and the pitfalls — is at
  //   https://aisa.one/docs/zh/api-reference/dataforseo/post_dataforseo-merchant-google-product-info-task-post.md
  // Then run the call and show me the result.
  ```
</CodeGroup>

<Note>
  **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
  Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
  Allow，不需要粘贴任何 key。各客户端的具体命令和每次调用的价格见
  [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。
</Note>

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/dataforseo/post_dataforseo-merchant-google-product-info-task-post)


## OpenAPI

````yaml openapi/zh/dataforseo.json POST /dataforseo/merchant/google/product_info/task_post
openapi: 3.0.3
info:
  title: DataForSEO API
  version: 1.0.0
  description: 通过 AIsa 统一网关提供的 DataForSEO API 端点。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /dataforseo/merchant/google/product_info/task_post:
    post:
      summary: 设置 Google Shopping 产品信息任务
      description: >-
        排队查询某个具体 Google Shopping 商品，返回任务 `id`。用 `product_id` 加上从
        `get_dataforseo_merchant_google_products_fetch` 结果里拿到的 `gid` 或
        `data_docid` 定位商品。本家族全程异步：submit 在 `tasks[0].id` 返回任务 `id`，结果就绪后由 fetch
        取回。💰 **费用发生在 submit**，fetch 免费，重复 fetch 也不再收费。 用
        `get_dataforseo_merchant_google_product_info_fetch` 取结果。
      operationId: post_dataforseo_merchant_google_product_info_submit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  product_id:
                    type: string
                    description: >-
                      Google Shopping 上的唯一商品标识符。如果未指定 data_docid 或
                      gid，则为必填字段。为获得最佳结果，建议同时指定 product_id、data_docid 和
                      gid；您可以通过向 Google Shopping Products
                      端点单独发送请求，获取特定商品的此值。示例：4485466949985702538。有关此参数的更多信息，请参阅此帮助中心指南。
                  data_docid:
                    type: string
                    description: >-
                      SERP 数据元素的唯一标识符，必填字段（如果未指定 product_id 或
                      gid）；为获得最佳结果，建议同时指定 data_docid、product_id 和 gid；可通过向
                      Google Shopping Products
                      端点单独发起请求，获取特定元素的此值；示例：13071766526042404278
                  gid:
                    type: string
                    description: >-
                      Google Shopping 上的全局产品标识符。如果未指定 product_id 或
                      data_docid，则为必填字段。为获得最佳结果，建议同时指定 gid、product_id 和
                      data_docid；您可以通过单独请求 Google Shopping Products
                      端点获取特定产品的此值。示例：4702526954592161872。有关此参数的更多信息，请参阅帮助中心指南
                  priority:
                    type: integer
                    description: >-
                      任务优先级，可选字段，可采用以下值：1 – 普通执行优先级（默认设置）；2 –
                      高执行优先级。高执行优先级任务将收取额外费用。
                  location_name:
                    type: string
                    description: >-
                      位置的完整名称。如果未指定 location_code 或
                      location_coordinate，则为必填字段。如果使用此字段，则无需指定 location_code 或
                      location_coordinate。您可以通过单独请求
                      https://api.dataforseo.com/v3/merchant/google/locations，获取可用
                      Google Shopping 位置及其 location_name
                      的列表。示例：London,England,United Kingdom
                  location_code:
                    type: integer
                    description: >-
                      位置代码；如果未指定 location_name 或
                      location_coordinate，则为必填字段。如果使用此字段，则无需指定 location_name 或
                      location_coordinate。您可以向
                      https://api.dataforseo.com/v3/merchant/google/locations
                      单独发起请求，获取包含 location_code 的可用 Google Shopping 位置列表。示例：2840
                  location_coordinate:
                    type: string
                    description: >-
                      位置的 GPS 坐标。如果未指定 location_name 或
                      location_code，则此字段为必填字段。如果使用此字段，则无需指定 location_name 或
                      location_code。location_coordinate
                      参数应采用“latitude,longitude,radius”格式。“latitude”和“longitude”的最大小数位数：7；“radius”的最小值：199.9。示例：53.476225,-2.243572,200
                  language_name:
                    type: string
                    description: >-
                      语言的完整名称 如果未指定 language_code，则为必填字段 如果使用此字段，则无需指定
                      language_code 可以通过向
                      https://api.dataforseo.com/v3/merchant/google/languages
                      单独发送请求，获取包含 language_name 的可用 Google Shopping 语言列表
                      示例：English
                  language_code:
                    type: string
                    description: >-
                      语言代码；如果未指定 language_name，则为必填字段；如果使用此字段，则无需指定
                      language_name；可通过向
                      https://api.dataforseo.com/v3/merchant/google/languages
                      单独发起请求，获取包含 language_code 的可用 Google Shopping 语言列表；示例：en
                  se_domain:
                    type: string
                    description: >-
                      搜索引擎域名 可选字段
                      我们会根据你指定的位置和语言自动选择相关搜索引擎域名；但你也可以在此字段中设置自定义搜索引擎域名，例如：google.co.uk、google.com.au、google.de
                      等
                  tag:
                    type: string
                    description: >-
                      用户定义的任务标识符。可选字段。字符数限制为 255。您可以使用此参数标识任务并将其与结果匹配；您将在响应的
                      data 对象中找到指定的 tag 值
                  postback_url:
                    type: string
                    description: >-
                      用于发送任务结果的 URL，可选字段；任务完成后，我们会向指定的 postback_url 发送 POST
                      请求，其结果采用 gzip 格式压缩；可以使用字符串 ‘$id’ 作为 $id 变量，并使用 ‘$tag’ 作为经过
                      URL 编码的 $tag
                      变量。我们会在发送请求前设置必要的值。示例：http://your-server.com/postbackscript?id=$id
                      http://your-server.com/postbackscript?id=$id&tag=$tag
                      注意：postback_url 中的特殊字符将经过 URL 编码；例如，# 字符将被编码为
                      %23；有关更多信息，请参阅我们的帮助中心
                  postback_data:
                    type: string
                    description: postback_url 数据类型，可选字段；对应将发送到您服务器的数据类型。可选值：advanced
                  pingback_url:
                    type: string
                    description: >-
                      已完成任务的通知 URL。可选字段。任务完成后，我们将通过向您指定的 URL 发送 GET
                      请求来通知您。您可以使用字符串 ‘$id’ 作为 $id 变量，并使用 ‘$tag’ 作为经过 urlencoded
                      编码的 $tag
                      变量。我们会在发送请求前设置必要的值。示例：http://your-server.com/pingscript?id=$id
                      http://your-server.com/pingscript?id=$id&tag=$tag
                      注意：pingback_url 中的特殊字符将经过 urlencoded 编码；例如，# 字符将被编码为
                      %23。请在我们的帮助中心了解更多信息
                allOf:
                  - anyOf:
                      - required:
                          - location_name
                      - required:
                          - location_code
                      - required:
                          - location_coordinate
                  - anyOf:
                      - required:
                          - language_name
                      - required:
                          - language_code
                  - anyOf:
                      - required:
                          - product_id
                      - required:
                          - data_docid
                      - required:
                          - gid
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    type: string
                    description: API 的当前版本
                  status_code:
                    type: integer
                    description: 通用状态码；您可以在此处查看完整的响应码列表。注意：我们强烈建议设计必要的系统来处理相关异常或错误情况
                  status_message:
                    type: string
                    description: 常规信息消息；可在此处查看常规信息消息的完整列表
                  time:
                    type: string
                    description: 执行时间（秒）
                  cost:
                    type: number
                    description: 任务总成本（美元）
                  tasks_count:
                    type: integer
                    description: tasksarray 中的任务数量
                  tasks_error:
                    type: integer
                    description: 返回错误的 tasks 数组中的任务数量
                  tasks:
                    type: array
                    items:
                      type: string
                    description: 任务数组
                  tasks.id:
                    type: string
                    description: 系统中采用通用唯一标识符（UUID）格式的唯一任务标识符
                  tasks.status_code:
                    type: integer
                    description: DataForSEO 生成的任务状态码；范围可以是 10000-60000
                  tasks.status_message:
                    type: string
                    description: 任务的信息性消息
                  tasks.time:
                    type: string
                    description: 执行时间（秒）
                  tasks.cost:
                    type: number
                    description: 任务成本（美元）
                  tasks.result_count:
                    type: integer
                    description: 结果数组中的元素数量
                  tasks.path:
                    type: array
                    items:
                      type: string
                    description: URL 路径
                  tasks.data:
                    type: object
                    description: 包含您在 POST 请求中指定的相同参数
                  tasks.result:
                    type: array
                    items:
                      type: string
                    description: 结果数组；在此情况下，该值将为 null
        '400':
          description: 错误请求
        '401':
          description: 未授权
        '429':
          description: 超出速率限制
        '500':
          description: 内部服务器错误
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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