Investigación de productos de 1688
Utiliza la API de Investigación de productos de 1688 para integración de API para ecommerce. Consulta los parámetros, los campos de respuesta y los ejemplos de código.
/v1 /alibaba /1688 /products /researchEjemplos de datos de la API
Consulta el cuerpo de la solicitud y la estructura completa de la respuesta de este endpoint.
{
"categoryId": "18",
"minUnits30d": 1000
}{
"request_id": "693e31c0-17c5-5c2e-809a-0e4a5b17efa0",
"data": [
{
"title": "床单固定器防跑防滑收纳被套被单被子夹子无针升级款",
"photo": "https://cbu01.alicdn.com/img/ibank/O1CN01YaodX721va7Ml0Ryd_!!2214413877047-0-cib.jpg",
"url": "https://detail.1688.com/offer/679734488950.html",
"price": 0.13,
"product_id": "679734488950",
"store_name": "佑吉泰(义乌)日用品有限责任公司",
"service_score": 4.5,
"service_score_detail": [
{
"title": "采购咨询",
"score": 3
},
{
"title": "物流时效",
"score": 4
},
{
"title": "纠纷解决",
"score": 4
}
],
"online_date": "2022-08-03",
"sales_of_30d": 348450,
"wholesale_price_range": [
{
"price": "0.13",
"purchase_quantity": "≥6个"
}
],
"repurchase_rate": 54,
"shipping_origin": "义乌市",
"shipping_time": "义乌市",
"seller_identities": [
"一件代发"
],
"offer_identities": [
"超级工厂",
"诚信通",
"深度认证"
],
"review_count": 866,
"score": 4.7,
"sku_count": 24,
"min_order_quantity": 6,
"is_drop_shipping": true,
"stock_count": 284457733
},
{
"title": "钓鱼小配件垂钓鱼具用品连接环八字环连接器8字环强拉力美式转环",
"photo": "https://cbu01.alicdn.com/img/ibank/O1CN01fYXHKR1YbJoo9ApCE_!!1117273077-0-cib.jpg",
"url": "https://detail.1688.com/offer/44814724267.html",
"price": 0.03,
"product_id": "44814724267",
"store_name": "慈溪市浒欣谊渔具配件厂",
"service_score": 4.5,
"service_score_detail": [
{
"title": "采购咨询",
"score": 3.5
},
{
"title": "物流时效",
"score": 4.14
},
{
"title": "纠纷解决",
"score": 4
}
],
"online_date": "2015-04-13",
"sales_of_30d": 334000,
"wholesale_price_range": [
{
"price": "0.03",
"purchase_quantity": "≥1"
}
],
"repurchase_rate": 69,
"shipping_origin": "慈溪市",
"shipping_time": "慈溪市",
"seller_identities": [],
"offer_identities": [
"超级工厂",
"诚信通",
"深度认证"
],
"review_count": 858,
"score": 5,
"sku_count": 102,
"min_order_quantity": 1,
"is_drop_shipping": false,
"stock_count": 69814303
}
]
}Esta página documenta el contrato público de Ecommerce Data API. Conserva los nombres de campos, las rutas y los ejemplos técnicos para que puedas integrarla directamente.
Availability: Available
This endpoint is active in the v1 gateway, OpenAPI, and subscription catalog. Each call consumes 1 billing unit, including calls that find nothing (
RESULT_NOT_FOUND).
POST /v1/alibaba/1688/products/research
The request and response fields below match the current public contract.
Mapeo de la API
| Item | Value |
|---|---|
| MCP Code | alibaba_1688_products_research |
Llamada rápida
First create an API key, then store it in a server-side environment variable:
export ECOMMERCE_DATA_API_KEY="your_api_key"curl --request POST \
--url https://ecommercedataapi.com/v1/alibaba/1688/products/research \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "18",
"minUnits30d": 1000
}'Integrate with an AI CLI
Copy for your AI CLI
Paste this task into Codex, Claude Code, Gemini CLI, or another coding agent.
Integrate the "1688 Product Research" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/es/docs/alibaba/1688/product-research
Endpoint: POST https://ecommercedataapi.com/v1/alibaba/1688/products/research
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"categoryId": "18",
"minUnits30d": 1000
}
Requirements:
1. Read the API documentation first, then inspect the repository's language, framework, HTTP client, directory structure, and environment-variable conventions.
2. Reuse the existing API client and error-handling patterns. If none exist, add the smallest reusable Ecommerce Data API client and an endpoint-specific wrapper.
3. Read the key from the server-side ECOMMERCE_DATA_API_KEY environment variable and send Content-Type: application/json plus the X-API-Key header. Never write a real key into source code, browser code, logs, test snapshots, or Git.
4. If the environment variable is missing, tell me to configure ECOMMERCE_DATA_API_KEY myself. Do not request, print, or invent the real key, and continue implementing code and tests that do not require a live request.
5. Implement request and response types from the documentation. Handle non-2xx responses, request_id, error.code, error.message, and 429 rate limits.
6. Add a minimal usage example or test that follows the repository's conventions. Run one minimal live request only when the key is already configured and external requests are allowed; otherwise use mocks or static validation.
7. Run the relevant formatter, type checker, and tests. Report changed files, usage, verification results, and any environment variable I still need to configure.Open this request in Postman
Download the preconfigured collection for this endpoint, then import it into Postman.
Node.js example
const response = await fetch(
'https://ecommercedataapi.com/v1/alibaba/1688/products/research',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '18',
minUnits30d: 1000,
}),
}
);
const result = await response.json();
if (!response.ok) {
throw new Error(`${result.error?.code}: ${result.error?.message}`);
}
console.log(result.data);Python example
import os
import requests
response = requests.post(
"https://ecommercedataapi.com/v1/alibaba/1688/products/research",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "18",
"minUnits30d": 1000,
},
timeout=30,
)
response.raise_for_status()
print(response.json()["data"])Request body
Send the fields below directly in the JSON body without an extra wrapper. Undefined fields are rejected.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
categoryId | String | No | 1688 category ID, from 1688 Category Tree. | 18 |
supplierType | String | No | Only powerful_merchant (实力商家) or super_factory (超级工厂) suppliers. | super_factory |
deepCertified | Boolean | No | true for deep-certified suppliers only, false for the others. | true |
services | Array | No | Only listings with these guarantees: free_returns_7d, shipping_insurance, ships_in_48h. | ["ships_in_48h"] |
minPrice | Number | No | Lower bound of dropshipping price, in CNY. | 10 |
maxPrice | Number | No | Upper bound of dropshipping price, in CNY. | 10 |
minTotalUnits | Integer | No | Lower bound of cumulative units sold. | 100 |
maxTotalUnits | Integer | No | Upper bound of cumulative units sold. | 100 |
minUnits30d | Integer | No | Lower bound of units sold in the last 30 days. | 100 |
maxUnits30d | Integer | No | Upper bound of units sold in the last 30 days. | 100 |
minRepurchaseRate | Number | No | Lower bound of repurchase rate, in %. | 30 |
maxRepurchaseRate | Number | No | Upper bound of repurchase rate, in %. | 30 |
minServiceScore | Number | No | Lower bound of overall service score, 0–5. | 4 |
maxServiceScore | Number | No | Upper bound of overall service score, 0–5. | 4 |
minSkus | Integer | No | Lower bound of SKU count. | 100 |
maxSkus | Integer | No | Upper bound of SKU count. | 100 |
minStock | Integer | No | Lower bound of stock. | 100 |
maxStock | Integer | No | Upper bound of stock. | 100 |
listedAfter | String | No | Listed on or after this date, YYYY-MM-DD. | 2025-01-01 |
listedBefore | String | No | Listed on or before this date, YYYY-MM-DD. | 2026-10-31 |
page | Integer | No | Page number, 20 results per page. | 1 |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Array | Endpoint business data. |
The fields below are inside data. For array endpoints they describe one array item; for paginated endpoints they describe one record in items[].
Response fields
| Field | Type | Description | Example |
|---|---|---|---|
title | String | Product title (1688 titles are in Chinese as 1688 shows them; MercadoLibre titles are in the listing language). | 床单固定器防跑防滑收纳被套被单被子夹子无针升级款 |
photo | String | Product main image URL. | https://cbu01.alicdn.com/img/ibank/O1CN01YaodX721va7Ml0Ryd_!!2214413877047-0-cib.jpg |
url | String | 1688 product detail page URL. | https://detail.1688.com/offer/679734488950.html |
price | Number | Product selling price, in CNY. | 0.13 |
product_id | String | 1688 product ID; pass it as productId to the 1688 Product Details endpoint. | 679734488950 |
store_name | String | Supplier store name, in Chinese as 1688 shows it. | 佑吉泰(义乌)日用品有限责任公司 |
service_score | Number | Overall service score, out of 5. | 4.5 |
service_score_detail | Array | Array of service score breakdowns. | - |
service_score_detail.title | String | Score dimension name, in Chinese as 1688 shows it (e.g. procurement inquiry, logistics timeliness, dispute resolution, quality experience, return and exchange experience). | 采购咨询 |
service_score_detail.score | Integer | Score of this dimension, out of 5. | 3 |
online_date | String | Product listing date, format yyyy-MM-dd. | 2022-08-03 |
sales_of_30d | Integer | Sales volume in the last 30 days, in units. | 348450 |
wholesale_price_range | Array | Array of wholesale price tiers. | - |
wholesale_price_range.price | String | Unit price of this tier, as a string in CNY. | 0.13 |
wholesale_price_range.purchase_quantity | String | Purchase quantity condition for this tier (e.g. ≥1, 500~999 units). | ≥6个 |
repurchase_rate | Integer | Repurchase rate, as a percentage value. | 54 |
shipping_origin | String | Shipping origin, in Chinese as 1688 shows it. | 义乌市 |
shipping_time | String | Shipping time, in Chinese as 1688 shows it (e.g. ships within 24 hours). | 义乌市 |
seller_identities | Array | Array of seller identity tags, in Chinese as 1688 shows them (e.g. super factory, powerful merchant). | - |
offer_identities | Array | Array of product tags, in Chinese as 1688 shows them (e.g. selected). | - |
review_count | Integer | Number of reviews. | 866 |
score | Number | Product rating, out of 5. | 4.7 |
sku_count | Integer | Number of SKUs (variations). | 24 |
min_order_quantity | Integer | Minimum order quantity, as an integer taken from the first purchase quantity tier. | 6 |
is_drop_shipping | Boolean | Whether one-piece dropshipping is supported; true means supported. | True |
stock_count | Integer | Stock count, as an integer. | 284457733 |
Response example
{
"request_id": "693e31c0-17c5-5c2e-809a-0e4a5b17efa0",
"data": [
{
"title": "床单固定器防跑防滑收纳被套被单被子夹子无针升级款",
"photo": "https://cbu01.alicdn.com/img/ibank/O1CN01YaodX721va7Ml0Ryd_!!2214413877047-0-cib.jpg",
"url": "https://detail.1688.com/offer/679734488950.html",
"price": 0.13,
"product_id": "679734488950",
"store_name": "佑吉泰(义乌)日用品有限责任公司",
"service_score": 4.5,
"service_score_detail": [
{
"title": "采购咨询",
"score": 3
},
{
"title": "物流时效",
"score": 4
},
{
"title": "纠纷解决",
"score": 4
}
],
"online_date": "2022-08-03",
"sales_of_30d": 348450,
"wholesale_price_range": [
{
"price": "0.13",
"purchase_quantity": "≥6个"
}
],
"repurchase_rate": 54,
"shipping_origin": "义乌市",
"shipping_time": "义乌市",
"seller_identities": ["一件代发"],
"offer_identities": ["超级工厂", "诚信通", "深度认证"],
"review_count": 866,
"score": 4.7,
"sku_count": 24,
"min_order_quantity": 6,
"is_drop_shipping": true,
"stock_count": 284457733
},
{
"title": "钓鱼小配件垂钓鱼具用品连接环八字环连接器8字环强拉力美式转环",
"photo": "https://cbu01.alicdn.com/img/ibank/O1CN01fYXHKR1YbJoo9ApCE_!!1117273077-0-cib.jpg",
"url": "https://detail.1688.com/offer/44814724267.html",
"price": 0.03,
"product_id": "44814724267",
"store_name": "慈溪市浒欣谊渔具配件厂",
"service_score": 4.5,
"service_score_detail": [
{
"title": "采购咨询",
"score": 3.5
},
{
"title": "物流时效",
"score": 4.14
},
{
"title": "纠纷解决",
"score": 4
}
],
"online_date": "2015-04-13",
"sales_of_30d": 334000,
"wholesale_price_range": [
{
"price": "0.03",
"purchase_quantity": "≥1"
}
],
"repurchase_rate": 69,
"shipping_origin": "慈溪市",
"shipping_time": "慈溪市",
"seller_identities": [],
"offer_identities": ["超级工厂", "诚信通", "深度认证"],
"review_count": 858,
"score": 5,
"sku_count": 102,
"min_order_quantity": 1,
"is_drop_shipping": false,
"stock_count": 69814303
}
]
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.