AliExpress 商品詳細
AliExpress 商品詳細 API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"productId": "3256813302984638"
}{
"request_id": "d08e8a35-4e1b-4c9e-bb54-9aba2deaa96d",
"data": {
"url": "https://www.aliexpress.com/item/3256813302984638.html",
"price": 241.64,
"title": "24 Pieces 0.4 in Thick Interlocking Floor Mats, 23.6x23.6 in EVA Foam Fitness Tiles – Non-Slip Home Gym Mats with Rubber Top for Workout, Yoga, Playroom, Office",
"video": null,
"images": [
"https://ae-pic-a1.aliexpress-media.com/kf/S2d09e0fb6f454e61a5757b412a587933G.jpg_960x960.jpg",
"https://ae-pic-a1.aliexpress-media.com/kf/S3ef95b419e8243cfb5e1d91a598af81ea.jpg_960x960.jpg"
],
"rating": null,
"options": [
{
"name": "Ships From",
"values": [
"United States"
]
}
],
"store_id": "1104265660",
"currency": "USD",
"ship_from": "United States",
"variants": [
{
"image": null,
"price": 241.64,
"sku_id": "12000061321190160",
"in_stock": true,
"attributes": {
"Ships From": "United States"
},
"original_price": 891.55,
"quantity_available": 9
}
],
"product_id": "3256813302984638",
"sold_count": 1,
"store_name": "LuxMark Department Stores Store",
"seller_level": "14-s",
"seller_score": 176,
"free_shipping": true,
"return_policy": null,
"reviews_count": 0,
"shipping_cost": 0,
"original_price": 891.55,
"seller_country": "China",
"wishlist_count": 4,
"specifications": [
{
"name": "High-concerned chemical",
"value": "None"
},
{
"name": "Origin",
"value": "Mainland China"
}
],
"delivery_days_max": 8,
"delivery_days_min": 2,
"seller_opened_at": "2024-11-01T00:00:00.000Z",
"is_top_rated_seller": false,
"quantity_available": 9,
"seller_feedback_count": 244,
"seller_feedback_percent": 88.2
}
}このページでは Ecommerce Data API の公開契約を説明します。フィールド名、パス、技術例はそのまま保持しているため、そのまま統合できます。
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/aliexpress/products/detail
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | aliexpress_products_detail |
クイック呼び出し
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/aliexpress/products/detail \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"productId": "3256813302984638"
}'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 "AliExpress Product Detail" endpoint from Ecommerce Data API into the current repository. Make the changes directly instead of only returning sample code.
API documentation: https://ecommercedataapi.com/ja/docs/aliexpress/detail
Endpoint: POST https://ecommercedataapi.com/v1/aliexpress/products/detail
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"productId": "3256813302984638"
}
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/aliexpress/products/detail',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
productId: '3256813302984638',
}),
}
);
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/aliexpress/products/detail",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"productId": "3256813302984638",
},
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 |
|---|---|---|---|---|
productId | String | Yes | AliExpress product ID, the number in the product link. | 3256806808957451 |
shipTo | String | No | Ship-to country, ISO code such as US or DE. Changes price, stock and delivery days. | US |
currency | String | No | Price currency, ISO code such as USD or EUR. | USD |
Response structure
| Field | Type | Description |
|---|---|---|
request_id | String | Unique identifier for this request. |
data | Object | 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 |
|---|---|---|---|
url | String | Page link. | - |
price | Number | Price. | 241.64 |
title | String | Title. | - |
video | String | Video link, when there is one. | - |
images | Array | Image links. | - |
rating | String | Average rating out of 5. | - |
options | Array | Option names and their values. | - |
options.name | String | Option name. | Ships From |
options.values | Array | Option values. | - |
store_id | String | Store ID. | 1104265660 |
currency | String | Currency. | USD |
ship_from | String | Ships from. | United States |
variants | Array | Variants (SKUs). | - |
variants.image | String | Variant image. | - |
variants.price | Number | Variant price. | 241.64 |
variants.sku_id | String | Variant SKU ID. | 12000061321190160 |
variants.in_stock | Boolean | Variant in stock. | true |
variants.attributes | Object | Variant option values by option name. | - |
variants.original_price | Number | Variant price before discount. | 891.55 |
variants.quantity_available | Integer | Variant quantity available. | 9 |
product_id | String | Product ID. | 3256813302984638 |
sold_count | Integer | Orders. | 1 |
store_name | String | Store name. | LuxMark Department Stores Store |
seller_level | String | Seller level. | 14-s |
seller_score | Integer | Seller score. | 176 |
free_shipping | Boolean | Free shipping. | true |
return_policy | String | Return policy. | - |
reviews_count | Integer | Review count. | 0 |
shipping_cost | Integer | Shipping cost; on search results it is the text eBay shows. | 0 |
original_price | Number | Price before discount. | 891.55 |
seller_country | String | Seller country. | China |
wishlist_count | Integer | Times added to wishlists. | 4 |
specifications | Array | Product specifications. | - |
specifications.name | String | Specification name. | High-concerned chemical |
specifications.value | String | Specification value. | None |
delivery_days_max | Integer | Slowest delivery, days. | 8 |
delivery_days_min | Integer | Fastest delivery, days. | 2 |
seller_opened_at | String | Store opened, ISO 8601. | 2024-11-01T00:00:00.000Z |
is_top_rated_seller | Boolean | Top-rated seller. | false |
quantity_available | Integer | Quantity available. | 9 |
seller_feedback_count | Integer | Seller feedback count. | 244 |
seller_feedback_percent | Number | Seller positive feedback, percent. | 88.2 |
Response example
{
"request_id": "d08e8a35-4e1b-4c9e-bb54-9aba2deaa96d",
"data": {
"url": "https://www.aliexpress.com/item/3256813302984638.html",
"price": 241.64,
"title": "24 Pieces 0.4 in Thick Interlocking Floor Mats, 23.6x23.6 in EVA Foam Fitness Tiles – Non-Slip Home Gym Mats with Rubber Top for Workout, Yoga, Playroom, Office",
"video": null,
"images": [
"https://ae-pic-a1.aliexpress-media.com/kf/S2d09e0fb6f454e61a5757b412a587933G.jpg_960x960.jpg",
"https://ae-pic-a1.aliexpress-media.com/kf/S3ef95b419e8243cfb5e1d91a598af81ea.jpg_960x960.jpg"
],
"rating": null,
"options": [
{
"name": "Ships From",
"values": ["United States"]
}
],
"store_id": "1104265660",
"currency": "USD",
"ship_from": "United States",
"variants": [
{
"image": null,
"price": 241.64,
"sku_id": "12000061321190160",
"in_stock": true,
"attributes": {
"Ships From": "United States"
},
"original_price": 891.55,
"quantity_available": 9
}
],
"product_id": "3256813302984638",
"sold_count": 1,
"store_name": "LuxMark Department Stores Store",
"seller_level": "14-s",
"seller_score": 176,
"free_shipping": true,
"return_policy": null,
"reviews_count": 0,
"shipping_cost": 0,
"original_price": 891.55,
"seller_country": "China",
"wishlist_count": 4,
"specifications": [
{
"name": "High-concerned chemical",
"value": "None"
},
{
"name": "Origin",
"value": "Mainland China"
}
],
"delivery_days_max": 8,
"delivery_days_min": 2,
"seller_opened_at": "2024-11-01T00:00:00.000Z",
"is_top_rated_seller": false,
"quantity_available": 9,
"seller_feedback_count": 244,
"seller_feedback_percent": 88.2
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.