Shopee 商品リサーチ
Shopee 商品リサーチ API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"categoryId": "11001231",
"marketplace": "MY"
}{
"request_id": "b724cf19-4bb9-58b6-a538-a30c088b42df",
"data": {
"page": 1,
"page_count": 22,
"products": [
{
"title": "Square Cake Board White Board Papan Kek White Cake Board Cake Board Square Papan Kek Murah Premium White Papan Kek Petak",
"photo": [
"https://down-my.img.susercontent.com/file/sg-11134201-22100-xt31pz36ymiv61_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-22100-ylgufz36ymiv2f_tn",
"https://down-my.img.susercontent.com/file/a2d48d220969d5b53fafc48d151891b7_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-22100-qbnu0z36ymiv20_tn"
],
"product_id": "21954254648",
"sales_count": 5574,
"sales_count_of_7d": 1662,
"monthly_sales_growth": 22.51,
"sales_amount": 3957.54,
"his_sales_count": 100087,
"price": 0.71,
"shop_id": "115086339",
"shop_name": "my baking place",
"shop_location": "Selangor",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2022-10-13",
"ratings_count": 1168,
"like_count": 252,
"good_rate": 98.63,
"bad_rate": 1.37,
"category": "Home & Living",
"sub_category": [
"Bakeware"
],
"ratings": 4.94,
"variation_count": 0
},
{
"title": "Birthday Cake Knife Pisa Kek 蛋糕切刀Disposable Plastic Knife",
"photo": [
"https://down-my.img.susercontent.com/file/f9a23b067863baf884f5c9449225f834_tn"
],
"product_id": "9655852698",
"sales_count": 2171,
"sales_count_of_7d": 396,
"monthly_sales_growth": 20.61,
"sales_amount": 1085.5,
"his_sales_count": 107778,
"price": 0.5,
"shop_id": "265429894",
"shop_name": "Yenmyshop",
"shop_location": "Pulau Pinang",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2021-05-17",
"ratings_count": 2291,
"like_count": 224,
"good_rate": 99.04,
"bad_rate": 0.96,
"category": "Home & Living",
"sub_category": [
"Bakeware"
],
"ratings": 4.95,
"variation_count": 0
},
{
"title": "《 𝗙𝗥𝗢𝗦𝗧 𝗙𝗟𝗢𝗪 》 100pcs Disposable Piping Bag Pastry Icing Bags Baking Supplies Beg Paip 一次性裱花袋 NWD",
"photo": [
"https://down-my.img.susercontent.com/file/sg-11134201-824hr-mes2i4d3s54zd3_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824h5-mes2i5wyskck43_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824je-mes2jeuvvvgneb_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824io-mes2j6hc91ja09_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824is-mes2j0f33wu865_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824hb-mes2j0st8j5z05_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824gu-mes2j03f198m86_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824ht-mes2j14wzv2c1f_tn"
],
"product_id": "43369594832",
"sales_count": 1262,
"sales_count_of_7d": 174,
"monthly_sales_growth": 22.52,
"sales_amount": 3243.34,
"his_sales_count": 4866,
"price": 2.57,
"shop_id": "7727453",
"shop_name": "NWD - New World Depot",
"shop_location": "",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2025-09-18",
"ratings_count": 699,
"like_count": 268,
"good_rate": 98.43,
"bad_rate": 1.57,
"category": "Home & Living",
"sub_category": [
"Bakeware"
],
"ratings": 4.94,
"variation_count": 0
}
]
}
}このページでは 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/shopee/products/research
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | shopee_products_research |
クイック呼び出し
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/shopee/products/research \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "11001231",
"marketplace": "MY"
}'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 "Shopee 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/ja/docs/shopee/products-research
Endpoint: POST https://ecommercedataapi.com/v1/shopee/products/research
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"categoryId": "11001231",
"marketplace": "MY"
}
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/shopee/products/research',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '11001231',
marketplace: 'MY',
}),
}
);
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/shopee/products/research",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "11001231",
"marketplace": "MY",
},
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 |
|---|---|---|---|---|
marketplace | String | No | Marketplace code. Supported values are listed in the schema. Available values (Table 1.2): US, JP, UK, DE, FR, IT, ES, CA, IN, MX, BR, AU, AE | MY |
categoryId | String | No | Category ID, from the category search or tree of the same platform. | 11001231 |
minPrice | Number | No | Lower bound of price, in the marketplace currency. | 20 |
maxPrice | Number | No | Upper bound of price, in the marketplace currency. | 20 |
minMonthlyUnits | Integer | No | Lower bound of monthly units sold. | 100 |
maxMonthlyUnits | Integer | No | Upper bound of monthly units sold. | 100 |
minRating | Number | No | Lower bound of star rating, 0–5. | 4 |
maxRating | Number | No | Upper bound of star rating, 0–5. | 4 |
minReviews | Integer | No | Lower bound of review count. | 100 |
maxReviews | Integer | No | Upper bound of review count. | 100 |
minVariations | Integer | No | Lower bound of variation count. | 100 |
maxVariations | Integer | No | Upper bound of variation count. | 100 |
listedAfter | String | No | Listed on or after this date, YYYY-MM-DD. | 2026-01-01 |
listedBefore | String | No | Listed on or before this date, YYYY-MM-DD. | 2026-10-31 |
shopLocation | String | No | Shop location: local or cross_border. | local |
shopType | String | No | Shop type. Values are listed in the schema. | - |
page | Integer | No | Page number. | 1 |
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 |
|---|---|---|---|
page | Integer | Current page number. | 1 |
page_count | Integer | Total number of pages. | 22 |
products | Array | Array of products on the current page. | - |
products.title | String | Product title. | Square Cake Board White Board Papan Kek White Cake Board Cake Board Square Papan Kek Murah Premium White Papan Kek Petak |
products.photo | Array | Array of product image URLs; may be null when no public image is available. | - |
products.product_id | String | Shopee product ID. | 21954254648 |
products.sales_count | Integer | Monthly sales volume (units); -1 means it cannot be calculated. | 5574 |
products.sales_count_of_7d | Integer | Sales volume in the last 7 days (units); -1 means it cannot be calculated. | 1662 |
products.monthly_sales_growth | Number | Monthly sales growth rate (%, may be positive or negative). | 22.51 |
products.sales_amount | Number | Monthly sales amount, in the marketplace's local currency (e.g. MYR for MY); -1 means it cannot be calculated. | 3957.54 |
products.his_sales_count | Integer | Cumulative sales volume (units). | 100087 |
products.price | Number | Current selling price, in the marketplace's local currency (e.g. MYR for MY). | 0.71 |
products.shop_id | String | Shop ID (shopId). | 115086339 |
products.shop_name | String | Shop name. | my baking place |
products.shop_location | String | Shop location (string, may be empty). | Selangor |
products.shop_type | String | Shop type: regular, preferred or flagship. | regular |
products.shop_loc_type | String | Shop location type: local, cross_border or unknown. | local |
products.sale_time | String | Listing date (yyyy-MM-dd). | 2022-10-13 |
products.ratings_count | Integer | Number of ratings. | 1168 |
products.like_count | Integer | Number of likes / favorites. | 252 |
products.good_rate | Number | Positive rating rate (%, 0 to 100). | 98.63 |
products.bad_rate | Number | Negative rating rate (%, 0 to 100). | 1.37 |
products.category | String | Primary category (multi-language). | Home & Living |
products.sub_category | Array | Array of sub-category labels. | - |
products.ratings | Number | Star rating (out of 5). | 4.94 |
products.variation_count | Integer | Number of variations (SKUs). | 0 |
Response example
{
"request_id": "b724cf19-4bb9-58b6-a538-a30c088b42df",
"data": {
"page": 1,
"page_count": 22,
"products": [
{
"title": "Square Cake Board White Board Papan Kek White Cake Board Cake Board Square Papan Kek Murah Premium White Papan Kek Petak",
"photo": [
"https://down-my.img.susercontent.com/file/sg-11134201-22100-xt31pz36ymiv61_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-22100-ylgufz36ymiv2f_tn",
"https://down-my.img.susercontent.com/file/a2d48d220969d5b53fafc48d151891b7_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-22100-qbnu0z36ymiv20_tn"
],
"product_id": "21954254648",
"sales_count": 5574,
"sales_count_of_7d": 1662,
"monthly_sales_growth": 22.51,
"sales_amount": 3957.54,
"his_sales_count": 100087,
"price": 0.71,
"shop_id": "115086339",
"shop_name": "my baking place",
"shop_location": "Selangor",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2022-10-13",
"ratings_count": 1168,
"like_count": 252,
"good_rate": 98.63,
"bad_rate": 1.37,
"category": "Home & Living",
"sub_category": ["Bakeware"],
"ratings": 4.94,
"variation_count": 0
},
{
"title": "Birthday Cake Knife Pisa Kek 蛋糕切刀Disposable Plastic Knife",
"photo": [
"https://down-my.img.susercontent.com/file/f9a23b067863baf884f5c9449225f834_tn"
],
"product_id": "9655852698",
"sales_count": 2171,
"sales_count_of_7d": 396,
"monthly_sales_growth": 20.61,
"sales_amount": 1085.5,
"his_sales_count": 107778,
"price": 0.5,
"shop_id": "265429894",
"shop_name": "Yenmyshop",
"shop_location": "Pulau Pinang",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2021-05-17",
"ratings_count": 2291,
"like_count": 224,
"good_rate": 99.04,
"bad_rate": 0.96,
"category": "Home & Living",
"sub_category": ["Bakeware"],
"ratings": 4.95,
"variation_count": 0
},
{
"title": "《 𝗙𝗥𝗢𝗦𝗧 𝗙𝗟𝗢𝗪 》 100pcs Disposable Piping Bag Pastry Icing Bags Baking Supplies Beg Paip 一次性裱花袋 NWD",
"photo": [
"https://down-my.img.susercontent.com/file/sg-11134201-824hr-mes2i4d3s54zd3_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824h5-mes2i5wyskck43_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824je-mes2jeuvvvgneb_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824io-mes2j6hc91ja09_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824is-mes2j0f33wu865_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824hb-mes2j0st8j5z05_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824gu-mes2j03f198m86_tn",
"https://down-my.img.susercontent.com/file/sg-11134201-824ht-mes2j14wzv2c1f_tn"
],
"product_id": "43369594832",
"sales_count": 1262,
"sales_count_of_7d": 174,
"monthly_sales_growth": 22.52,
"sales_amount": 3243.34,
"his_sales_count": 4866,
"price": 2.57,
"shop_id": "7727453",
"shop_name": "NWD - New World Depot",
"shop_location": "",
"shop_type": "regular",
"shop_loc_type": "local",
"sale_time": "2025-09-18",
"ratings_count": 699,
"like_count": 268,
"good_rate": 98.43,
"bad_rate": 1.57,
"category": "Home & Living",
"sub_category": ["Bakeware"],
"ratings": 4.94,
"variation_count": 0
}
]
}
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.