> ## 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.

# Target 产品

> 网页抓取 API Target 产品模板

`target_product` 模板用于获取 Target 产品信息。

<Note>
  ### 有用链接

  * 此模板支持[**实时**](https://help.decodo.com/docs/cn/web-scraping-api-real-time-requests)和[**异步**](https://help.decodo.com/docs/cn/web-scraping-api-asynchronous-requests)集成方法
  * 还支持[**批量**](https://help.decodo.com/docs/cn/web-scraping-api-asynchronous-requests#queue-multiple-tasks)请求。
</Note>

## 输入参数

Target 产品模板可用的请求参数：

| 参数              | 类型      | 必需 | 描述                                                                                                                                                                                                               |
| --------------- | ------- | -- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `target`        | string  | ✅  | 目标类型必须设置为 `target_product`                                                                                                                                                                                       |
| `product_id`    | string  | ✅  | 8 或 10 个字符的 Target 产品 ID（SKU）。                                                                                                                                                                                   |
| `headless`      | string  |    | `html` 值启用 JavaScript 渲染。[**了解更多。**](https://help.decodo.com/docs/cn/web-scraping-api-javascript-rendering)<br />`png` 值启用截图响应。[**了解更多。**](https://help.decodo.com/docs/cn/web-scraping-api-screenshot-response) |
| `parse`         | boolean |    | 设置为 `true` 时自动解析结果。<br />默认值为 `false`。                                                                                                                                                                           |
| `device_type`   | string  |    | 指定设备类型和浏览器。[**了解更多。**](https://help.decodo.com/docs/cn/web-scraping-api-device-types)                                                                                                                            |
| `delivery_type` | string  |    | 定义配送方式，使用可用选项：`pickup`、`delivery`、`shipping`。                                                                                                                                                                    |
| `delivery_zip`  | string  |    | 设置配送地点的邮政编码。选择 `delivery` 或 `shipping` 配送方式时必须设置。                                                                                                                                                                |
| `store_id`      |         |    | 3 到 4 个字符的 Target 商店 ID。选择 `pickup` 配送方式时必须设置。                                                                                                                                                                   |
| `xhr`           | boolean |    | 设置为 `true` 以检索 XHR 和 fetch 请求列表。[**了解更多。**](https://help.decodo.com/docs/cn/web-scraping-api-fetch-and-xhr)<br />默认值为 `false`。                                                                                   |
| `markdown`      | boolean |    | 设置为 `true` 以接收 Markdown 响应。[**了解更多。**](https://help.decodo.com/docs/cn/web-scraping-api-markdown-response)<br />默认值为 `false`。                                                                                    |

### 请求示例

<CodeGroup>
  ```shellscript cURL theme={null}
  # 将 'TOKEN VALUE' 更新为您的授权令牌
  curl --request 'POST' \
          --url 'https://scraper-api.decodo.com/v2/scrape' \
          --header 'Accept: application/json' \
          --header 'Authorization: Basic TOKEN VALUE' \
          --header 'Content-Type: application/json' \
          --data '
      {
        "target": "target_product",     
        "product_id": "92186007",   
        "headless": "html",
        "parse": true,   
      }
  '
  ```

  ```javascript Node theme={null}

  const scrape = async() => {
    const response = await fetch("https://scraper-api.decodo.com/v2/scrape", {
      method: "POST",
      body: JSON.stringify({
        "target": "target_product",
        "product_id": "92186007",
        "headless": "html",
        "parse": true
      }),
      headers: {
        "Content-Type": "application/json",
        "Authorization": "Basic TOKEN VALUE" // 更新为您的授权令牌
      },
    }).catch(error => console.log(error));

    console.log(await response.json())
  }

  scrape()
  ```

  ```python Python theme={null}
  import requests
    
  url = "https://scraper-api.decodo.com/v2/scrape"
    
  payload = {
        "target": "target_product",
        "product_id": "92186007",
        "headless": "html",
        "parse": True
  }
    
  headers = {
      "accept": "application/json",
      "content-type": "application/json",
      "authorization": "Basic TOKEN VALUE" # 更新为您的授权令牌
  }
    
  response = requests.post(url, json=payload, headers=headers)
    
  print(response.text)
  ```
</CodeGroup>

## 输出

下表提供了已解析的 `JSON` `results` 部分中字段的描述。请注意，字段数量可能会根据提供的搜索查询而有所不同。

| 结果键           | 描述                 |
| ------------- | ------------------ |
| `url`         | Target 产品页面的 URL。  |
| `brand`       | 包含品牌名称和页面 URL 的对象。 |
| `price`       | 包含价格信息的对象。         |
| `title`       | 产品标题。              |
| `video`       | 包含产品视频信息的对象。       |
| `images`      | 包含产品图片信息的对象。       |
| `rating`      | 包含评分信息的对象。         |
| `seller`      | 包含卖家名称和页面 URL 的对象。 |
| `category`    | 包含类别名称和路径的对象。      |
| `currency`    | 用于表示价格的货币。         |
| `in_stock`    | 指定产品是否有货。          |
| `description` | 产品描述。              |

#### 响应示例

<CodeGroup>
  ```json JSON expandable theme={null}
  {
    "results": [
        {
            "content": {
                "results": {
                    "ean": "840216312395",
                    "url": "https://www.target.com/p/-/A-92186007",
                    "brand": {
                        "href": "/b/retrospec-bicycles/-/N-q643lei5wue",
                        "name": "Retrospec Bicycles"
                    },
                    "price": {
                        "current": 49.99,
                        "discounted": false
                    },
                    "title": "Retrospec Bicycles Cricket Mini 6\" Kids' Balance Bike",
                    "images": {
                        "main": "https://target.scene7.com/is/image/Target/GUEST_bba86b68-744b-4cdd-b268-de52b5d0de0c",
                        "alternate": [
                            "https://target.scene7.com/is/image/Target/GUEST_b999b79e-5317-43b2-8584-518e3ac048cf",
                            "https://target.scene7.com/is/image/Target/GUEST_ae4520de-d4ed-433e-b307-e9d88e5c427c",
                            "https://target.scene7.com/is/image/Target/GUEST_7361f460-18dd-41ed-a724-aa3b1514ab19"
                        ]
                    },
                    "rating": {
                        "count": 56,
                        "score": 4.4
                    },
                    "category": {
                        "name": "Balance Bikes",
                        "path": "target > Sports & Outdoors > Bikes & Cycling > Kidsâ Bikes > Balance Bikes"
                    },
                    "currency": "USD",
                    "in_stock": true,
                    "parse_status_code": 12000,
                    "product_offer_type": "reg"
                },
                "errors": [],
                "status_code": 12000,
                "task_id": "7399040490143769601"
            },
            "headers": {
                "date": "Tue, 25 Nov 2025 11:05:24 GMT",
                "etag": "\"8i188sq7vp85db\"",
                "vary": "Accept-Encoding",
                "content-type": "text/html; charset=utf-8",
                "accept-ranges": "bytes",
                "cache-control": "private, no-cache",
                "referrer-policy": "no-referrer-when-downgrade",
                "x-frame-options": "SAMEORIGIN",
                "content-encoding": "gzip",
                "x-content-type-options": "nosniff",
                "content-security-policy": "frame-ancestors 'self' https://*.target.com;",
                "strict-transport-security": "max-age=31536000; includeSubDomains"
            },
            "cookies": [
                {
                    "key": "refreshToken",
                    "path": "/",
                    "value": "dGFWfxNo_pxZzQPXkV9Sv1fFArQc53C_2mbX5G3Xs9yha58W9MO6_zPjOI8-LGKSqO9NmZxnGhQIFOWQSQlsbA",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1779620724.812215,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "idToken",
                    "path": "/",
                    "value": "eyJhbGciOiJub25lIn0.eyJzdWIiOiIxZDM3ODlkNy04OTg4LTRmYzAtODFlYS04ZmRmY2U5ZTY0ODciLCJpc3MiOiJNSTYiLCJleHAiOjE3NjQxNTUxMjMsImlhdCI6MTc2NDA2ODcyMywiYXNzIjoiTCIsInN1dCI6IkciLCJjbGkiOiJlY29tLXdlYi0xLjAuMCIsInBybyI6eyJmbiI6bnVsbCwiZm51IjpudWxsLCJlbSI6bnVsbCwicGgiOmZhbHNlLCJsZWQiOm51bGwsImx0eSI6ZmFsc2UsInN0IjoiR0EiLCJzbiI6bnVsbH19.",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "sapphire",
                    "path": "/",
                    "value": "1",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1766698470.81245,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "onboardingGuest",
                    "path": "/",
                    "value": "timestamp=1764068723995",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "TealeafAkaSid",
                    "path": "/",
                    "value": "Wmzsp4sAZ_WKHKZFLyHtp9gCPrab8QS8",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1766660744.589545,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "GuestLocation",
                    "path": "/",
                    "value": "27701|36.000|-78.890|NC|US",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1764155124.812544,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "visitorId",
                    "path": "/",
                    "value": "019ABAB08CC90201A0C035469CEC887D",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1798628724.812557,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "adScriptData",
                    "path": "/",
                    "value": "GA",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1764155124.812569,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "accessToken",
                    "path": "/",
                    "value": "eyJraWQiOiJlYXMyIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxZDM3ODlkNy04OTg4LTRmYzAtODFlYS04ZmRmY2U5ZTY0ODciLCJpc3MiOiJNSTYiLCJleHAiOjE3NjQxNTUxMjMsImlhdCI6MTc2NDA2ODcyMywianRpIjoiVEdULmJlZTE1MjZkMzk3ZjQ3MjI5ZTBiMDMzZTg5MjhlZDhjLWwiLCJza3kiOiJlYXMyIiwic3V0IjoiRyIsImRpZCI6IjA1YWMwNzg3Y2E3YzNmYzFjNmRmMDBkYTY1NWNjNmE4YmQwNWE0MzY2MDc0YmE0MDY0OWE3ODBiM2RmZmFiMDYiLCJzY28iOiJlY29tLm5vbmUsb3BlbmlkIiwiY2xpIjoiZWNvbS13ZWItMS4wLjAiLCJhc2wiOiJMIn0.pqyp4oxOtP3BsAKMktpjV56zskvPo7cYnpmxYgat04zkUkTsq2r9saMjhopas6VWfbSz0Bf5GJG0aK4sVeagtzPJ3hle_kRPzubqRcFbkGyXW9xGoqYu6fCa5oDWzkOnAv7IscEiyLAWTkz_uxThKlCI0T6tcGhr1CHv5GXF6BKVtLWJL5GWb7t0madmYxA92y3Sb6ypHT8pIxoNnnt2WOX5xzxGkpmAH70-MoDDG78RhWkpeFNfEkJXvq-DB5sGrOiFhSYb8gytcFMaFRQRupqcGQtfCtuDY48sJKyuNzLJykRum-VLO7LXouw-PGTsb7ODoUw1JmSwGt1YU7Pr0g",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "egsSessionId",
                    "path": "/",
                    "value": "8baa6950-5061-4c23-808d-6e32ec580eb9",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1764072324.812603,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "UserLocation",
                    "path": "/",
                    "value": "27701|36.000|-78.890|NC|US",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604730,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "ffsession",
                    "path": "/",
                    "value": "{%22sessionHash%22:%221946275391d38b1764068730056%22}",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "hideSadReg",
                    "path": "/",
                    "value": "true",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1764070530,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "fiatsCookie",
                    "path": "/",
                    "value": "DSI_1872|DSN_Durham|DSZ_27707",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604739,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "pxcts",
                    "path": "/",
                    "value": "aa65e13b-c9ee-11f0-82c0-32020ca19a8b",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "_pxvid",
                    "path": "/",
                    "value": "aa65da2b-c9ee-11f0-82bf-bde13c3a51ee",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1795604734,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "lux_uid",
                    "path": "/",
                    "value": "176406873525809480",
                    "domain": "www.target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1764070535.258653,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "sddStore",
                    "path": "/",
                    "value": "DSI_1872|DSN_Durham|DSZ_27701",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": -1,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "_tgt_session",
                    "path": "/",
                    "value": "35f5ace913774b949885930cb064b22b.ef5aaef1e9f164c7dba5b92a6780dfaf4d98bd80f6013f0d6df3e51df43644146f3ad27c764d6e7ff77b78b29d7e91c6b724a0b690376ee02763a67c7207b9d4eb9b66f7917fff9c7d6048b6281f2cb7e66b4c6bd7c30969763e0fbe7337f1b00977ba8c9ea71596b3d3c44fc49f1941b0cbb52a0ad7707536d52ebe9b595eb8fcec6298b5cddb032c7f688a162b0bf60968c286f85fc8afa1acc4e05f7c9c404fc20c348511c746e94d349654d07b43070976e1a1d6ca648230020431e3b85ad4d95631092cadd80d1dadc6baf7fd1b1b3f10841ae46fc9102404a08dc3feae95.0x7149d59baacdc94e4bfc3532a48f1e305ebbd3419716b793e04e425e0aa3f876",
                    "domain": "redsky.target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1764155139.434307,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "__gads",
                    "path": "/",
                    "value": "ID=13280caff92ce8a5:T=1764068741:RT=1764068741:S=ALNI_MaPC6E1YaL1BfH7vVHOrJzm4PF0Vw",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1797764741,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "__gpi",
                    "path": "/",
                    "value": "UID=00001312fc1b6d62:T=1764068741:RT=1764068741:S=ALNI_MYxDsEat5LQ_oc8rYGsXfkw9gjV-Q",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1797764741,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "__eoi",
                    "path": "/",
                    "value": "ID=19e3ef19c4a15acd:T=1764068741:RT=1764068741:S=AA-AfjbnNifGD9ZB5-HjyKFTTuD1",
                    "domain": ".target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1779620741,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "IDE",
                    "path": "/",
                    "value": "AHWqTUnTfCfSzLk1x3zFHTc4MnvmGNmmyXUmb4p0n6yyIifZvBnzVJHiybsQ4GT3vgo",
                    "domain": ".doubleclick.net",
                    "secure": true,
                    "comment": "",
                    "expires": 1798628751.476032,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "kampyle_userid",
                    "path": "/",
                    "value": "0cd6-482e-a933-c1b2-0704-5ad4-a2a0-79a8",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604754,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "kampyleUserSession",
                    "path": "/",
                    "value": "1764068754445",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604754,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "kampyleUserSessionsCount",
                    "path": "/",
                    "value": "1",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604754,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "kampyleUserPercentile",
                    "path": "/",
                    "value": "43.53656417161037",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604754,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "kampyleSessionPageCounter",
                    "path": "/",
                    "value": "1",
                    "domain": "www.target.com",
                    "secure": true,
                    "comment": "",
                    "expires": 1795604754,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                },
                {
                    "key": "_px3",
                    "path": "/",
                    "value": "acf7e28648f2e32a09eb89811b285cbc7e2137a127f0ca5eca3831f10341860e:ZiqSLnlXiwNwx5RRLt6kgHs9Y/BKDyT2BjyMwXa1J01pcDIzWuhw3ZlIFL1xV1vNIULbXzJ4WlvDf8Hr2Lh9tA==:1000:0/eeaamF7VemB8Zy/TGyZBEDMXYQ85WzkST7Ah5vJQNd1IYlBuSJvf1IqLV4XQypVXO48sM40rzp2vmLEIpLvFhksz7LKs28WIjWCXcAGBJpC1Un7TWDG2cB4sE8DxWpN39BwkJSGpckHm4IsgGDPPfdqAymldnn97wyiHKunYA0lY6y+0PSkpVqA+L3wwxg/WHrII8y6vGaxuGPyaShiK0+r8UgtkLp2nXQHfZ0SAjgr++B+U/RLvPN3JYzztGiqvgWXnqwnKzGfCEaxuzlBs5teymO8vzxxwUicjmMHp3rk0eLI4eVbwKFPt+aWoIfeJTPf2RktS7mhI37lpZSWy1hgsYafWrNWf+7WFJLDOCzGL8EXldOOqZdyEUS0sjh",
                    "domain": ".target.com",
                    "secure": false,
                    "comment": "",
                    "expires": 1764069089,
                    "max-age": "",
                    "version": "",
                    "httponly": "",
                    "samesite": ""
                }
            ],
            "status_code": 200,
            "task_id": "7399040490143769601",
            "created_at": "2025-11-25 11:05:20",
            "updated_at": "2025-11-25 11:06:03"
        }
    ]
  }
  ```
</CodeGroup>

***

<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>
