Target 搜索 API
Search Target.com by keyword with optional sort, price-range, and page filters and get title, price, rating, and brand for each product in one normalized response.
价格与服务商
Target 搜索 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Target 搜索
{
"data": {
"hasMore": true,
"items": [
{
"brand": "Acme Inc",
"brandUrl": "https://example.com/page",
"category": "general",
"currency": "USD",
"image": "https://example.com/image.jpg",
"images": [
"https://example.com/image.jpg"
],
"isSponsored": true,
"listPrice": 19.99,
"position": 1,
"price": 19.99,
"rating": 4.6,
"reviewsCount": 12500,
"tcin": "example",
"title": "Example title",
"url": "https://example.com/page"
}
],
"totalPages": 12500,
"totalResults": 12500
},
"found": true,
"reason": "not_found"
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-12-03 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- querystring
coffee maker
Search keywords, e.g. "coffee maker" or "lego".
- maxPricenumber
Optional maximum product price in USD.
- minPricenumber
Optional minimum product price in USD.
- pageinteger
1-based results page of 24 products; Target serves no products past page 50. Each page is billed as one request.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `totalPages`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. Naming a combination that no single source returns together is refused as invalid input, with no charge.
- sortenum
Result sort order; omit for Target's own relevance order (e.g. price_low sorts by lowest price first).
响应
JSON,每个字段一个示例值。
Search result wrapper, or null when nothing matched.
- hasMoreboolean可设为必填
True when another page of results exists; request it with page + 1. Null when the serving source does not report it.
- totalPagesinteger可设为必填
Highest page number available for the query, or null when the serving source does not report it.
- totalResultsinteger
Total number of matching products Target reports for the query, or null when not reported.
Matching Target product records for the requested page. Populated whenever the provider has data for the entity.
- brandstring
Brand name, or null when not reported.
- brandUrlstring
Target brand page URL, or null when not reported.
- categorystring
Target product type the result belongs to, e.g. "Coffee Makers", or null when not reported.
- currencystring
Price currency code, e.g. "USD", or null when no price is shown.
- imagestring
Primary product image URL. Populated whenever the provider has data for the entity.
- imagesstring[]可设为必填
All product image URLs, primary first, or null when the serving source returns only the primary image.
- isSponsoredboolean可设为必填
True when the result is a sponsored placement, or null when the serving source does not report it.
- listPricenumber
Regular price when the product is on sale, or null when it is not discounted.
- positioninteger
1-based position of the result in this page.
- pricenumber
Current price in USD, or null when the result shows no current price. Populated whenever the provider has data for the entity.
- ratingnumber可设为必填
Average customer rating, 0-5, or null when the product is unrated. One source rounds it to one decimal.
- reviewsCountinteger
Number of customer ratings, or null when the product has none.
- tcinstring
Target product id (TCIN), the number after /A- in a target.com URL; use the product URL with the Target Product or Target Reviews SKU. Populated whenever the provider has data for the entity.
- titlestring
Product title. Populated whenever the provider has data for the entity.
- urlstring
Target product page URL with tracking query parameters removed. Populated whenever the provider has data for the entity.
- foundboolean
True when the search returned at least one product.
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Target 搜索 API
AnyAPI 的 Target 搜索 API 只需一次 POST 请求 /v1/run/target.search,就以统一格式的 JSON 返回 Target 数据。Search Target.com by keyword with optional sort, price-range, and page filters and get title, price, rating, and brand for each product in one normalized response.AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$0.85 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Target 搜索 API 调用中有 91.2% 成功,响应时间中位数为 2.0 秒,共测量 34 次调用。