Documentation
1688 API reference for 6 operations
Reference for the 1688 API: the endpoint of each of its 6 operations, each input with any default and bounds, and the fields each operation returns.
See also: 1688 Wholesale Marketplace API overview and prices · 1688 API guide: sourcing workflows with search and offers
On this page
1688 API request shape and shared input
These rules apply inside body:
- Alternative names are also accepted:
qandkeywordforbody.query,offerIdforbody.offer_id,categoryIdforbody.category_id,pageNoforbody.pageandlangforbody.language. body.max_rotationsis accepted by every operation and sets how many attempts a call may make before giving up.- A
body.max_rotationsvalue outside its range is rejected rather than adjusted.
Leave body.max_rotations at the default unless calls give up too early.
Fields in this section (2)
body, body.max_rotations
Category tree: post-1688-categories
body.language sets the language of the category names: zh returns them in Chinese as 1688 publishes them, the other values return names that 1688 translates itself, and a value outside the list is rejected. Whatever the language, each node keeps its Chinese name in name_zh, which can serve directly as a Chinese search term. body.depth sets how many levels come back:
- depth 1 returns the 54 top-level categories
- depth 2 adds the middle level
- depth 3 returns the full tree, about 2.4 MB
A node carries either its nested children or only a child_count, level gives its level in the tree, and is_leaf marks a node with no subcategories. A node id is the value to send as body.category_id for category offers.
Fields in this section (4)
post-1688-categories, body.language, body.depth, body.category_id
Category offers: post-1688-category-offers
body.category_id also accepts an id taken from the category ids of a keyword search row. body.page counts from 1, and a page number above 200 is rejected.
The page length is fixed at 30 rows, and consecutive pages share no offer ids, so a category can be walked page by page rather than sampled; has_next tells a client when the category ends. In each row:
fulfilmentlists the supplier's fulfilment promisescertificationslists any cross-border certifications on the listingmoqis the minimum order quantitylisted_onis when the offer was listedpriceis in CNY, withprice_displaybeside it
These rows are the unpromoted view of the category.
Fields in this section (3)
post-1688-category-offers, body.category_id, body.page
Offer detail: post-1688-product-detail
body.offer_id takes either the digits of an offer id, such as 864971848115, or a full offer url, and the id of any keyword search or category offer row works.
price is a number in CNY, and price_type tells which prices apply:
- with
rangePrice, all variants share one quantity ladder inprice_tiers, each tier giving itsmin_qty,max_qtyandprice - with
skuPrice, each variant has its own price invariants
moq gives the minimum order quantity with its unit, and stock is the total orderable stock. mix holds the mixed-batch terms, and sold_count gives the units sold. attributes is the specification table as name and value pairs, such as material, brand or model.
seller identifies the supplier company with its member and login ids and storefront url. variants lists the colour, size or spec axes and every sellable SKU with its own price, stock and weight_kg, which is null where the supplier did not publish a weight.
Fields in this section (2)
post-1688-product-detail, body.offer_id
Buyer reviews: post-1688-product-reviews
post-1688-product-reviews takes the same body.offer_id as offer detail. rating is the average star rating as a number out of 5, given with rating_scale, and good_percent is the positive-feedback percentage as a number, given with good_percent_display. review_count comes with review_count_display, and where 1688 prints the count as 100+, review_count is a lower bound rather than an exact total.
reviews holds one page of individual entries, and in each entry:
contentis the review textbuyeris the buyer nickname, which 1688 masksquantityis the quantity boughtspecis the chosen variantimagesholds the buyer photos
There is no page input, so each call returns that single page. An offer without reviews returns an empty list and a zero count, which is a valid answer rather than an error.
Fields in this section (2)
post-1688-product-reviews, body.offer_id
Keyword search: post-1688-search
body.query takes free text: Chinese terms such as 蓝牙耳机 return by far the richest results, and English or pinyin terms also match. The answer is one shortlist of about 20 offers per keyword: there is no page input, has_next is always false, and repeating the call returns a rotating selection that levels off near 38 distinct offers. In each row:
priceis a number in CNY with itsunitattributesare the name and value pairs the seller publishedoffer_repurchase_ratebelongs to the offer andshop_repurchase_rateto the whole shopsellergives the company name andyears_on_1688category_idsrun from broad to leafis_admarks paid placements; for most keywords it is true on every row
Rows carry no minimum order quantity and no price ladder, so call offer detail for those.
Fields in this section (2)
post-1688-search, body.query
Factory search: post-1688-supplier-search
post-1688-supplier-search finds manufacturers that make a product, rather than offers that sell it. body.query behaves as in keyword search.
The result comes from the curated manufacturer shortlist 1688 keeps for the keyword, not from a full index, so expect a handful of rows rather than a page. In each row:
workersis how many workers the factory hasfloor_area_sqmis the factory's floor area in square metresmakesis what the factory manufacturesmedalandmedal_levelare the factory's gold-manufacturer medal and levelreply_rate_30dis the 30-day reply ratethird_party_auditshows whether a firm such as SGS has audited the factoryoffer_idscan be sent to offer detail
An empty items list means the shortlist has no factory for that keyword; it is a valid answer, and repeating the same query does not change it.
Fields in this section (2)
post-1688-supplier-search, body.query
{
"body": {
"category_id": "1031910",
"page": 2
}
}{
"body": {
"language": "en",
"depth": 1
}
}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.
Category tree
POST /api/v1/alibaba-1688/post-1688-categories
Returns 1688 category nodes from 1 to 3 levels deep, named in any of the 9 listed languages, with the original Chinese name kept beside each node.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.depth | integer | Optional | 2 | — | 1–3 |
body.language | string | Optional | "en" | "zh""en""ru""es""pt""fr""de""ja""ko" | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
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-1688/post-1688-categories' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"depth":1,"language":"ru"}}'Response fields
items[]idnamename_zhlevelis_leafchildren[]child_count
countlanguagedepth
Category offers
POST /api/v1/alibaba-1688/post-1688-category-offers
Pages through the offers of one 1688 category, 30 per page up to page 200; each row carries a CNY price, minimum order quantity, listing date, fulfilment promises and certifications.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.category_id | string | Required | — | — | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
body.page | integer | Optional | 1 | — | 1–200 |
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-1688/post-1688-category-offers' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"category_id":"1031910"}}'Response fields
items[]idtitleurlimagepriceprice_displaycurrencymoqlisted_onfulfilment[]certifications[]sales
countcategory_idpagehas_next
Offer detail
POST /api/v1/alibaba-1688/post-1688-product-detail
For one offer id or url, returns title, images, CNY price and price type, the quantity price ladder, MOQ, stock, mixed-batch terms, attributes, a seller block and per-variant SKUs.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.offer_id | string | Required | — | — | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
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-1688/post-1688-product-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"offer_id":"864971848115"}}'Response fields
idtitleurlimages[]priceprice_displaycurrencyunitprice_typeprice_tiers[]min_qtymax_qtypriceprice_display
moqquantityunit
stockmixsupportedmin_qtymin_amount
sold_countcategorytop_idpost_id
attributes[]namevalue
sellermember_iduser_idlogin_idnameurl
in_stockvariantsaxes[]namevalues[]
skus[]sku_idspecpricediscount_pricestocksold_countweight_kg
countprice_rangeprice_typeship_from_code
Buyer reviews
POST /api/v1/alibaba-1688/post-1688-product-reviews
For one offer id, returns the average rating out of 5, the positive-feedback percentage, a review count and one page of reviews with text, quantity, variant, photos and date.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.offer_id | string | Required | — | — | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
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-1688/post-1688-product-reviews' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"offer_id":"864971848115"}}'Response fields
ratingrating_scalegood_percentgood_percent_displayreview_countreview_count_displayreviews[]contentbuyerquantityspecimages[]dateplus_user
Keyword search
POST /api/v1/alibaba-1688/post-1688-search
Searches 1688 offers by keyword and returns a shortlist of about 20 offers, each with price, seller company, both repeat-purchase rates, attributes, category ids and an ad flag.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
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-1688/post-1688-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"蓝牙耳机"}}'Response fields
items[]idtitleurlimageimages[]videopriceprice_displaycurrencyunitsold_displayattributes[]namevalue
service_tags[]offer_repurchase_rateshop_repurchase_ratesellercompanylogin_idmember_idyears_on_1688
category_ids[]is_ad
countqueryquery_echohas_next
Factory search
POST /api/v1/alibaba-1688/post-1688-supplier-search
Searches the curated 1688 manufacturer shortlist by keyword and returns location, workforce, floor area, medal, repeat-buyer and on-time rates, audit status and offer ids.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.query | string | Required | — | — | — |
body.max_rotations | integer | Optional | 4 | — | 1–8 |
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-1688/post-1688-supplier-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"query":"蓝牙耳机"}}'Response fields
items[]namemember_idurllocationyears_on_1688workersfloor_area_sqmmakes[]medalmedal_levelrepeat_buyer_rateon_time_ratereply_rate_30dthird_party_auditis_super_factoryoffer_ids[]
countquerynote
How calls work
POST /api/v1/alibaba-1688/<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: