Documentation
Alibaba.com API reference
Reference for the Alibaba.com API: what its three operations accept, their defaults and bounds, and what each reply holds, from price ladders to buyer requests.
See also: Alibaba.com API: product detail, search and buyer RFQs overview and prices · Alibaba.com API guide: sourcing and RFQ workflows
On this page
alibaba-product-detail in the Alibaba.com API
Send either body.product_id, read out of the digits before '.html' in a product-detail page address, or body.url, that full address itself; the table marks each one optional on its own because the pair is not required together, but a call with neither returns no listing to read, and body.product_id also accepts id, productId and offer_id as alternative names for the same value. The reply's price_ladder lists the listing's quantity tiers from the smallest order size to an open-ended top tier, each tier carrying its own price and price_usd, Alibaba's own USD conversion; a listing with no tiers at all returns an empty price_ladder alongside price_range and, where the supplier only takes enquiries, price_on_request. moq and lead_time give the minimum order quantity and the production days laddered by order size.
shipping carries gross_weight, package_dimensions, the port, supply ability, logistics modes and the Incoterm in trade_price_type; specifications carries the full attribute table, including a Packaging and delivery group, alongside certifications, images, videos and customizable. Each row of variants carries its own sku_id, stock, in_stock and unlimited_stock, but never its own price, which stays null because wholesale price is tiered by quantity at the product level rather than per SKU; sold_count, rating and supplier close the reply with trust aggregates and the supplier's own scorecard.
Fields in this section (3)
alibaba-product-detail, body.product_id, body.url
alibaba-rfq-search inputs: filtering and paging the buyer board
Leaving body.query out browses every open request on the board rather than narrowing it to one; where it is sent, it also accepts q, keyword, keywords, search and SearchText as alternative names for the same field. body.page runs from 1 to 500 at 20 requests per page, defaulting to 1, and an invalid value is ignored in favour of that default. body.sort chooses between relevance, Alibaba's own Best Match mix and the default, and recent, which puts the newest requests first; an unrecognised value is rejected rather than replaced.
body.buyer_country takes an upper-case two-letter code, with Alibaba spelling the United Kingdom 'UK' rather than 'GB', and a code it does not recognise is rejected; country and buyer_location are accepted as alternative names. body.category_id takes the same category ids alibaba-product-detail returns, and also accepts categoryIds; an invalid value here is ignored rather than rejected. body.posted_within takes one of eight named windows from 1h up to older_than_7d, which is Alibaba's own inverse facet returning requests older than a week rather than newer; posted and age are its alternative names.
body.with_attachments and body.open_only are both booleans, the first keeping only requests with an attached file and the second only requests Alibaba still lists as open for quoting; their alternative names are attachment, and availability or open, and an invalid value for either one is ignored rather than rejected. A query with no matching requests, and a page requested past the end of the board, both return NOT_FOUND rather than an empty, successful reply.
Fields in this section (9)
alibaba-rfq-search, body.query, body.page, body.sort, body.buyer_country, body.category_id, body.posted_within, body.with_attachments, body.open_only
What an alibaba-rfq-search row returns
results holds one buying request per row. rfq_id is Alibaba's own numeric id as a string; title, description and url identify the request, with description truncated by Alibaba at roughly 210 characters and description_truncated marking the rows where that happened. quantity and quantity_unit must be read together, since the unit is whatever the buyer typed in their own language rather than a normalised one.
buyer carries name, the contact name the buyer chose to publish, country, always present, country_code, Alibaba's own two-letter code left null on the rows where Alibaba writes a full country name instead, and level. posted_ago_text is Alibaba's relative phrase for the posting time, posted_hours_ago the same age as a number, and posted_at_estimate a UTC timestamp derived from that phrase and no more precise than it. quote_slots_left is Alibaba's own 'Quotes left' counter; has_attachments, rfq_level, rfq_star_level, rfq_star_max and tags describe the request further.
expires_at, budget and budget_currency are defined fields Alibaba leaves null on nearly every row measured, meaning no value was published rather than zero or no deadline. total_estimate is Alibaba's own count for the filtered board, alongside the plain page, page_size, has_more and next_page paging fields.
Fields in this section (2)
alibaba-rfq-search, body.query
alibaba-search inputs: price, order size and supplier filters
body.query is required and also accepts q, keyword, keywords, search and SearchText as alternative names. body.page runs from 1 to 100, defaulting to 1 with an invalid value ignored. body.sort now only accepts relevance, its default; the formerly supported sales and response_rate orders are rejected, since the current search carries no order besides relevance and no price-based order either, which is what body.min_price and body.max_price are for instead.
body.max_order filters by maximum order quantity and also accepts max_moq, while body.min_order has the opposite effect its name suggests: any value sent for it is rejected, because the current search carries no minimum-order filter any more. body.category_id is rejected the same way; put category words into body.query instead. body.trade_assurance set to true is likewise rejected, while false is accepted and simply has no effect, since the current search no longer applies a Trade Assurance filter.
body.supplier_country takes the supplier's two-letter country code, also accepted as country or supplier_location, and body.verified_supplier (alias verified) narrows to suppliers Alibaba has inspected on site as part of its own supplier-inspection programme; an invalid value for either is ignored, not rejected. body.min_review_score accepts 4, 4.5 or 5 to keep only suppliers at or above that score.
Fields in this section (13)
alibaba-search, body.query, body.page, body.sort, body.min_price, body.max_price, body.min_order, body.max_order, body.supplier_country, body.category_id, body.verified_supplier, body.trade_assurance, body.min_review_score
What an alibaba-search row returns, and how its paging ends
results holds one supplier offer per row. product_id is Alibaba's own numeric id, ready to pass straight to alibaba-product-detail; price is the card price, showing a tiered listing's cheapest and dearest tier when they differ, equal to one another on a flat-priced listing, and null on listings marked 'Contact for price'. moq gives quantity and unit together, present on every row measured.
is_ad marks Alibaba's own paid placements, which are returned rather than dropped; sold_count is populated only where sales are recorded, and rating and review_count are null on listings with no reviews yet. image and images are the smaller card renditions the search grid shows, while the full-size gallery is only on alibaba-product-detail; supplier.logo is always null now that Alibaba's current search no longer publishes it, though the field is kept so existing calls do not break. The ranking itself can reorder slightly between identical calls, so two calls for the same page share most but not all of their rows; de-duplicate on product_id when paging.
total_estimate is Alibaba's own estimate for the query and can move between calls, so page by has_more instead. Results run out after roughly 70 pages of 48 rows; past that point the reply is still ok, just with an empty results.
Fields in this section (2)
alibaba-search, body.page
{
"body": {
"product_id": "1600104532932"
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
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.
Product detail
POST /api/v1/alibaba/alibaba-product-detail
Reads one alibaba.com listing's price ladder, MOQ, lead time, shipping, specification table, variant matrix and supplier scorecard by product id or listing URL.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.product_id | string | Optional | — | — |
body.url | string | Optional | — | — |
Request examples
# 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"}}'Buyer RFQ search
POST /api/v1/alibaba/alibaba-rfq-search
Searches buying requests posted by alibaba.com buyers, filtered by keyword, buyer country, category, posting age and whether a buyer attached a file.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.buyer_country | string | Optional | — | — | — |
body.category_id | string | Optional | — | — | — |
body.open_only | boolean | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–500 |
body.posted_within | string | Optional | — | "1h""3h""12h""24h""2d""3d""7d""older_than_7d" | — |
body.query | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""recent" | — |
body.with_attachments | boolean | Optional | — | — | — |
Request examples
# 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-rfq-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"packaging box"}}'Supplier offer search
POST /api/v1/alibaba/alibaba-search
Searches alibaba.com supplier offers by keyword and returns each row's price, minimum order quantity, ratings and certifications.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.category_id | string | Optional | — | — | — |
body.max_order | integer | Optional | — | — | 1–9007199254740991 |
body.max_price | number | Optional | — | — | ≥ 0 |
body.min_order | integer | Optional | — | — | 0–9007199254740991 |
body.min_price | number | Optional | — | — | ≥ 0 |
body.min_review_score | string | Optional | — | "4""5""4.5" | — |
body.page | integer | Optional | 1 | — | 1–100 |
body.sort | string | Optional | "relevance" | "relevance" | — |
body.supplier_country | string | Optional | — | — | — |
body.trade_assurance | boolean | Optional | — | — | — |
body.verified_supplier | boolean | Optional | — | — | — |
Request examples
# 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-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"led strip"}}'How calls work
POST /api/v1/alibaba/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: