Apinoa Docs

搜索

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

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

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

ParameterTypeRequiredNotes
querystringyesKeywords to search for. Required here: eBay's keyword search cannot be asked anything without words — to list a category with no keyword, use browse.
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.
conditionenumItem condition. new used refurbished
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.
freeShippingboolean | enumOnly listings the marketplace itself advertises as shipping free.
pageinteger1-based page number. eBay pages by number, so there is no cursor; each page is charged separately.
pageSizeintegerResults per page: 60, 120 or 240 only, the three page sizes eBay offers. Larger pages take longer to return (about 5 s for 240 items), but a page of any size costs one call.
priceMaxnumber ≥ 0Highest price to return, in decimal major units.
priceMinnumber ≥ 0Lowest price to return, in decimal major units.
regionstringBuyer country as ISO 3166-1 alpha-2; sets availability, shipping and price.
sortenumResult ordering. price_asc/price_desc are eBay's price-plus-shipping sorts rather than its bare-price ones, and ending_soonest orders by auction close. best_match ending_soonest newly_listed price_asc price_desc
curl "https://gateway.apinoa.com/v1/ebay/search?query=running+shoes&brands=Nike&condition=new&freeShipping=true&sort=price_asc" \
  -H "x-api-key: YOUR_API_KEY"

pageSize 会在服务端归入三档(25/50/60 → 60,100/120 → 120,200/240 → 240),因此只接受这三个值; 接受其他值就等于收下它再忽略它。

更大的页数耗时更长(240 条约 5 秒),但仍只计一次调用。

没有 cursor——翻页按页码进行。没有 ratingMin——eBay 的结果不提供评分筛选。没有 inStock ——买不到的商品本来就不会被列出。

没有 currency 币种随 region 而定。接受一个我们无法兑现的币种,比直接拒绝更糟。