Search for a product
Call search_offers, choose marketplaces and a sort, and read the three kinds of entry it returns.
search_offers takes a product keyword and returns one list: ranked offers, then comps, then diagnostics. Only query is required.
Run a search#
Call
search_offerswith a query and a sort.{ "query": "usb-c hub", "sort": "cheapest", "qty": 2 }To search fewer marketplaces, list them. The search then ends when the slowest listed lane ends.
{ "query": "usb-c hub", "marketplaces": ["ebay_au", "amazon_au"] }Read
kindon each entry.kindMeaning Order offerA listing you can buy, ranked by sort.First compA past sale price from ebay_sold.Second diagnosticA marketplace that returned no offers. diagnostic_codegives the reason.Last - Compare offers on
landed_audand checklanded_basisbeside it.exactincludes shipping,item_onlyleaves shipping out, andestimatedholds a forwarder estimate.
Choose a sort#
sort | Orders by |
|---|---|
best_value (default) | A score of price, speed and trust. |
cheapest | landed_aud. Grocery offers sort by unit_price_aud. |
fastest | The later bound of shipping.eta_days, then price. |
Ranking has the formulas.
Search Chinese marketplaces#
taobao, tmall, 1688 and jd match Chinese text far better than English. The server does not translate. Pass the query in Chinese as query_zh, and give the item weight so that the forwarder estimate uses it.
{
"query": "silicone kitchen utensils",
"query_zh": "\u7845\u80f6\u53a8\u5177",
"marketplaces": ["1688", "taobao", "jd"],
"qty": 50,
"est_weight_kg": 0.3
}The \u escapes spell silicone kitchenware in Chinese characters. JSON reads an escape as the character itself, so the server gets the same text whether you type the escapes or the characters.
An offer whose moq is larger than qty goes to the end of the list in every sort.
Change the destination#
The Destination is SHIP_TO_COUNTRY and SHIP_TO_POSTCODE, AU 4000 by default. To change it for one call, pass postcode, and ship_to for another country.
{ "query": "usb-c hub", "postcode": "3000" }ebay_au sends the postcode to eBay and gets the shipping options and costs for it. Pickup searches on facebook stay centred on SHIP_TO_LAT and SHIP_TO_LNG, which a call cannot change.
To drop listings that must be collected in person, pass "include_pickup": false.
Search eBay auctions and overseas sellers#
| Argument | Value | Result |
|---|---|---|
ebay_auctions | true | Auction listings only. price_aud is the current bid and auction holds the bid count and end time. |
ebay_seller_scope | domestic (default) | Items located in Australia. |
ebay_seller_scope | global | Sellers worldwide on the AU marketplace. |
ebay_seller_scope | auto | eBay's default ranking. |
Refresh one offer#
Call get_offer_detail with an offer_id from the search. taobao, tmall, 1688, jd and pdd ids are fetched from TMAPI, and ebay_au ids from eBay. For every other marketplace the tool returns the offer as the most recent search held it.
{ "offer_id": "ebay_au:v1|1234|0" }Timeouts#
All lanes run at once under one deadline of 55 seconds. A lane that has not replied by then is cancelled and returns a timeout diagnostic. Apify lanes take 30 to 90 seconds.
To give one search more time, pass deadline_s (5 to 300):
{ "query": "usb-c hub", "marketplaces": ["taobao", "jd"], "deadline_s": 120 }A search with a timeout, upstream_error or quota diagnostic is not cached, so the next call tries the source again.