搜索
沃尔玛搜索——接受的参数与返回的内容。
GET|POST /v1/walmart/searchPrice $0.001 per call. List price; the rate steps down above 1,000 calls a day.
| Parameter | Type | Required | Notes |
|---|---|---|---|
query | string | yes | Keywords to search for. Required: image search is not available on Walmart, so a keyword query is the only way to search. |
brands | string list | Brand names as the marketplace spells them, e.g. brands=Nike,Adidas. | |
categoryId | string | Narrow to one category, by the marketplace's own id. Opaque and per-marketplace; take it from Product.category[].id or from a result's facets. | |
facets | string | object list | Narrowings taken from a result's facets, e.g. facets=Color:Black. The escape hatch for filters the typed vocabulary has no word for; prefer a typed parameter where one exists. | |
page | integer | 1-based results page. There is no pageSize — the results page is server-fixed at about 50 organic items — and no cursor, since paging here is by number. | |
priceMax | number ≥ 0 | Highest price to return, in decimal major units. | |
priceMin | number ≥ 0 | Lowest price to return, in decimal major units. | |
ratingMin | number 0–5 | Lowest average star rating to return, on the marketplace's own 0-5 scale. | |
region | string | Buyer country as ISO 3166-1 alpha-2; sets availability, shipping and price. | |
sort | enum | Result ordering: best_match, price_asc, price_desc, newly_listed or best_seller. Defaults to best_match, Walmart's own relevance ordering. best_match price_asc price_desc newly_listed best_seller |
curl "https://gateway.apinoa.com/v1/walmart/search?query=running+shoes&brands=Nike&priceMin=40&priceMax=80&ratingMin=4" \
-H "x-api-key: YOUR_API_KEY"ratingMin 会向上贴合到某一档。 沃尔玛按评分区间筛选("4 – 5 Stars"、"3 – 3.9 Stars")而不是按阈值,
因此请求会选中仍能满足它的最低一档。要求 3.5 会选中 4–5 档,而不是 3–3.9 档——后者包含你本想排除的
3.2 星商品。要求 4.5 则根本不会发送评分筛选,因为沃尔玛提供的任何一档都无法满足它。
没有 pageSize——结果页由服务端固定在约 50 条自然结果。
也没有 cursor——翻页按页码进行。没有 condition 或 freeShipping——沃尔玛没有这两种筛选。
inStock 同样不支持。