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를 요청하면 3–3.9가 아니라 4–5 구간이 선택됩니다 — 그 구간에는 제외하려던 3.2점짜리가 들어 있기 때문입니다. 4.5를 요청하면 평점 필터가 아예 전달되지 않습니다. 월마트가 제공하는 어떤 구간도 그 조건을 만족시키지 못하기 때문입니다.

pageSize는 없습니다 — 결과 페이지는 서버에서 자연 검색 결과 약 50개로 고정됩니다.

cursor도 없습니다 — 페이지는 번호로 넘깁니다. conditionfreeShipping도 없습니다 — 월마트에는 둘 중 어느 필터도 없습니다. inStock도 지원하지 않습니다.