Apinoa Docs

搜索

沃尔玛搜索——接受的参数与返回的内容。

查看原始 .mdx
GET|POST /v1/walmart/search

Price $0.001 per call. List price; the rate steps down above 1,000 calls a day.

ParameterTypeRequiredNotes
querystringyesKeywords to search for. Required: image search is not available on Walmart, so a keyword query is the only way to search.
brandsstring listBrand names as the marketplace spells them, e.g. brands=Nike,Adidas.
categoryIdstringNarrow 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.
facetsstring | object listNarrowings 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.
pageinteger1-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.
priceMaxnumber ≥ 0Highest price to return, in decimal major units.
priceMinnumber ≥ 0Lowest price to return, in decimal major units.
ratingMinnumber 0–5Lowest average star rating to return, on the marketplace's own 0-5 scale.
regionstringBuyer country as ISO 3166-1 alpha-2; sets availability, shipping and price.
sortenumResult 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——翻页按页码进行。没有 conditionfreeShipping——沃尔玛没有这两种筛选。 inStock 同样不支持。