Apinoa Docs

搜索

Shopify 搜索——接受的参数与返回的内容。

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

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

ParameterTypeRequiredNotes
querystringyesKeywords to search for. Required: Shopify search always needs a keyword, which is also why Shopify has no keyword-less browse.
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.
conditionenumItem condition: new or used. refurbished is refused by name rather than folded into used — the catalog sells new and secondhand, and those are different claims. new used
cursorstringOpaque; comes from the previous response and carries the page index. Shopify pages by cursor rather than by number — this is the only paging knob, and page is refused by name.
inStockboolean | enumOnly listings the marketplace reports as purchasable now.
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.
curl "https://gateway.apinoa.com/v1/shopify/search?query=wool+socks&priceMin=20&priceMax=60&ratingMin=4&inStock=true" \
  -H "x-api-key: YOUR_API_KEY"

Shopify 按游标翻页,而不是页码。 取上一份响应里的 cursor 回传即可;page 会被拒绝。

没有 pageSize——无论你要多少,商品库都会把每次响应限制在 50 条。

没有 sort Shopify 搜索完全不提供排序,是这里唯一没有排序的平台。

没有 brands

搜索没有 currency——计价币种随 region 而定。而 product 可以接受 currency,因为一个店铺 前台可能被固定在某一种币种上。

condition=refurbished 会被拒绝,而不是映射成 used:这个商品库出售的是 newsecondhand, 二者是不同的断言。