From an Alibaba.com API search to full product detail
Start with body.query on alibaba-search, written the way a buyer would type it, and read product_id from each row of results. Pass that id straight to alibaba-product-detail as body.product_id to read the listing's full detail, including the quantity price ladder, specification table and supplier scorecard that a search row does not carry.
A search row's price already gives a card-level range, but only alibaba-product-detail's price_ladder breaks that price down tier by tier for the exact quantity you plan to order, which is why the second call still matters even when the first one already shows a price. Because alibaba-search's own ranking can reorder slightly between identical calls, de-duplicate the product_id values you collect across pages before working through them one by one, so the same listing is not read twice.
Estimating a landed cost from one listing
Once a listing's product_id or url is in hand, call alibaba-product-detail and read price_ladder for the per-unit price at the quantity you plan to order, moq for the smallest order the supplier will accept at all, and lead_time for the production days laddered by that same order size. shipping adds gross_weight and package_dimensions to the same call, which a freight calculation needs alongside the price; both are null wherever the supplier left them blank rather than zero, so treat a null there as missing input rather than a free or weightless shipment. Where a listing has no price tiers, read price_range and price_on_request instead, since price_ladder is empty on that listing.
Polling for new buyer requests before the quote window closes
To poll the demand side of the marketplace for newly posted requests, call alibaba-rfq-search with body.sort set to recent rather than the default relevance, and add body.posted_within (for example 1h) to catch only the newest requests on each poll. body.category_id and body.buyer_country narrow the same poll to the sourcing categories and buyer countries you can serve, using the same category ids alibaba-product-detail returns as category_id.
Read quote_slots_left on each row to prioritise requests that still accept more quotes over ones that are close to full; a row whose quote_slots_left has fallen to zero is still returned rather than dropped, so check that field before spending effort on a request that is effectively closed. with_attachments separates requests that already carry a drawing or reference photo from ones that do not, which is useful for prioritising requests a supplier can quote on without first asking the buyer for more detail.
Paging search and RFQ results to the end, not past it
Hold body.sort and every other filter fixed across a paging run on either operation, and increase body.page by one each call rather than jumping ahead. On alibaba-search, watch has_more rather than total_estimate, an estimate that can move between calls for the same query, and stop once results comes back empty, which is how the roughly 70 pages of 48 rows run out. On alibaba-rfq-search, by contrast, a body.page requested past the end of the board returns NOT_FOUND rather than an empty, successful page, the same response a query with no matching requests at all returns, so a paging loop on this operation should stop as soon as a call fails rather than wait for an empty result that will not arrive.
Combining price, order size and supplier filters in one search
A single alibaba-search call can combine body.min_price and body.max_price to bound the unit price in price, body.max_order to keep the order size within what you can commit to, and body.supplier_country to find suppliers outside China, where most of Alibaba.com's suppliers are based. Adding body.verified_supplier and body.min_review_score on top narrows the same call to suppliers Alibaba has inspected on site and rated at or above the score you choose. body.query still has to carry the keyword itself, since none of these six filters replaces it, so combine them all in the one call rather than issuing a separate call per filter.
Because body.min_order, body.category_id and a body.trade_assurance of true no longer filter anything on this operation, read each row's own moq.quantity and moq.unit after the call instead of trying to filter on them up front. certifications on each row is available to read the same way.
How Alibaba.com works
On Alibaba.com, a request for quotation lets a buyer post a product, a quantity and other requirements for registered suppliers to answer with their own price quotes, so a buyer can compare several suppliers' offers side by side before contacting any one of them. Trade Assurance is Alibaba.com's own payment-protection service: a buyer's payment is held until the agreed order conditions are met, with a claims window open after delivery for cases such as late shipping, a quality mismatch or transit damage.
A membership tier exists in which an independent inspection firm checks a supplier's facility on site before Alibaba.com issues its own on-site inspection badge. Each supplier sets its own minimum order quantity, usually above its own break-even point; a buyer facing a minimum that is too high can negotiate directly, look for a supplier with a lower minimum, or post a buying request instead.
[
{
"body": {
"query": "led strip",
"verified_supplier": true,
"min_review_score": "4.5"
}
},
{
"body": {
"product_id": "1600104532932"
}
}
]{
"body": {
"sort": "recent",
"buyer_country": "US",
"posted_within": "24h"
}
}Server-side request template
This server-side template shows authentication and request identity using the first operation of this API. Choose the operation for your use case and check its current availability and price on the API page. After a timeout, resend the unchanged request with the same Idempotency-Key.
The gateway request is always POST.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/alibaba/alibaba-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"product_id":"1600104532932"}}'Integration checklist
- The API key is stored in a server-side secret manager and never sent to a browser.
- Each request carries its own Idempotency-Key, kept until the request has a final answer.
- The integration reads ok and error.code and handles each error code as the error table describes.
- An uncertain POST is inspected using its original identity, never blindly repeated with a new one.
- The operation’s current availability and price have been checked on its API page.
Alibaba.com API: product detail, search and buyer RFQs overview and prices · Read the API reference · Try it in the playground