TikTok Shop 商品リサーチ
TikTok Shop 商品リサーチ API でEC データ API の連携を行えます。リクエストパラメーター、レスポンスのフィールド、実行可能なコード例を確認してください。
API データの例
このエンドポイントのリクエスト本文とレスポンス全体の構造を確認できます。
{
"categoryId": "601925",
"marketplace": "US"
}{
"request_id": "a282fdf4-35a7-5c82-b4de-5ad2ddebf330",
"data": [
{
"product_id": "1729620396376297861",
"product_name": "One Fish Privacy Screen Protector Tempered Glass Shockproof Phone Protective Film For Samsung, iPhone,Crystal Clear, Proof Phone Screen Protector Privacy Screen Protector Protective Phone Accessori.",
"photo": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/bd10f5938d5f4bd29c4efac9174b8804~tplv-fhlh96nyum-crop-webp:1000:1000.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=d741f1be&idc=useast5&from=2378011839",
"store_name": "OneFish Screenpro USA",
"shop_type": "2",
"seller_id": "7495895780545759621",
"brand_name": null,
"cumulative_sale_count": 189069,
"monthly_sale_count": 18371,
"monthly_sale_amount": 146784.29,
"weekly_sale_count": 3814,
"weekly_sale_amount": 0,
"price": 7.99,
"author_count": 0,
"video_count": 601,
"category": {
"name": "Phones & Electronics",
"node_id": "601739"
},
"sub_category": [
{
"name": "Mobile Phone Accessories",
"node_id": "909064"
}
],
"review_count": 24862,
"star": 4.4,
"is_free_shipping": true,
"shipping_fee": 0,
"location": "local",
"exposure_time": "2024-09-10"
},
{
"product_id": "1732385020938129953",
"product_name": "ONEFISH [2-Pack] Protective Privacy Screen Protector for iPhone 17 Pro Max, iPhone 17 Pro, Samsung & Google Phones - Polarized Eye Care, Scratch Resistant, Easy Installation, Mobile Phone Accessories",
"photo": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/7a444101f5e343a0b4d35c1558cd65ea~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"store_name": "ONEFISH",
"shop_type": "0",
"seller_id": "7494620934181586465",
"brand_name": "ONEFISH",
"cumulative_sale_count": 44157,
"monthly_sale_count": 10672,
"monthly_sale_amount": 148340.8,
"weekly_sale_count": 1218,
"weekly_sale_amount": 0,
"price": 13.9,
"author_count": 0,
"video_count": 132,
"category": {
"name": "Phones & Electronics",
"node_id": "601739"
},
"sub_category": [
{
"name": "Cases, Screen Protectors & Stickers",
"node_id": "601925"
}
],
"review_count": 6023,
"star": 4.4,
"is_free_shipping": true,
"shipping_fee": 0,
"location": "local",
"exposure_time": "2026-05-05"
}
]
}このページでは 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/tiktok/shop/products/research
The request and response fields below match the current public contract.
API マッピング
| Item | Value |
|---|---|
| MCP Code | tiktok_shop_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/tiktok/shop/products/research \
--header "Content-Type: application/json" \
--header "X-API-Key: ${ECOMMERCE_DATA_API_KEY}" \
--data '{
"categoryId": "601925",
"marketplace": "US"
}'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 "TikTok Shop 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/tiktok/shop/product-research
Endpoint: POST https://ecommercedataapi.com/v1/tiktok/shop/products/research
API key environment variable: ECOMMERCE_DATA_API_KEY
Example request:
{
"categoryId": "601925",
"marketplace": "US"
}
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/tiktok/shop/products/research',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ECOMMERCE_DATA_API_KEY,
},
body: JSON.stringify({
categoryId: '601925',
marketplace: 'US',
}),
}
);
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/tiktok/shop/products/research",
headers={
"Content-Type": "application/json",
"X-API-Key": os.environ["ECOMMERCE_DATA_API_KEY"],
},
json={
"categoryId": "601925",
"marketplace": "US",
},
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 | US |
categoryId | String | No | Category ID, from the category search or tree of the same platform. | 601925 |
brand | String | No | Only this brand. | Anker |
seller | String | No | Only this seller name. | Anker Official |
sellerId | String | No | Seller (shop) ID, from TikTok Shop Seller Lookup or a product’s seller_id. | 7496087265863108853 |
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 |
minWeeklyUnits | Integer | No | Lower bound of weekly units sold. | 100 |
maxWeeklyUnits | Integer | No | Upper bound of weekly 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 |
minCreators | Integer | No | Lower bound of affiliate creators promoting it. | 100 |
maxCreators | Integer | No | Upper bound of affiliate creators promoting it. | 100 |
minVideos | Integer | No | Lower bound of promo videos. | 100 |
maxVideos | Integer | No | Upper bound of promo videos. | 100 |
shipFrom | String | No | Ship-from: local or overseas. | 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 | 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 |
|---|---|---|---|
product_id | String | Product ID. | 1729620396376297861 |
product_name | String | Product title. | One Fish Privacy Screen Protector Tempered Glass Shockproof Phone Protective Film For Samsung, iPhone,Crystal Clear, Pr |
photo | String | Product main image URL; may be null when no public image is available. | https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/bd10f5938d5f4bd29c4efac9174b8804~tplv-fhlh96nyu |
store_name | String | Store name. | OneFish Screenpro USA |
shop_type | String | Shop type: gold_star, silver_star, official or regular. | 2 |
seller_id | String | Seller ID (sellerId). | 7495895780545759621 |
brand_name | String | Brand name; empty string when unavailable. | - |
monthly_sale_count | Integer | Monthly sales count. | 18371 |
monthly_sale_amount | Number | Monthly sales amount, in the marketplace's local currency. | 146784.29 |
weekly_sale_count | Integer | Weekly sales count. | 3814 |
weekly_sale_amount | Integer | Weekly sales amount, in the marketplace's local currency. | 0 |
cumulative_sale_count | Integer | Cumulative sales count. | 189069 |
price | Number | Product selling price, in the marketplace's local currency. | 7.99 |
author_count | Integer | Number of affiliate creators (US marketplace only). | 0 |
video_count | Integer | Number of promo videos (US marketplace only). | 601 |
category | Object | Top-level category of the product, as an object. | - |
category.Name | String | Top-level category name. | - |
category.NodeId | String | Top-level category ID. | - |
sub_category | Array | Leaf categories of the product, as an array. | - |
sub_category.Name | String | Leaf category name. | - |
sub_category.NodeId | String | Leaf category ID. | - |
star | Number | Star rating; 0 when there are no reviews. | 4.4 |
review_count | Integer | Review count; 0 when there are no reviews. | 24862 |
is_free_shipping | Boolean | Whether free shipping is offered. | True |
shipping_fee | Integer | Shipping fee, in the marketplace's local currency. | 0 |
location | String | Shipping origin, returned as local or overseas; empty when unavailable. | local |
exposure_time | String | Date the product was first seen on the marketplace, format yyyy-MM-dd. | 2024-09-10 |
Response example
{
"request_id": "a282fdf4-35a7-5c82-b4de-5ad2ddebf330",
"data": [
{
"product_id": "1729620396376297861",
"product_name": "One Fish Privacy Screen Protector Tempered Glass Shockproof Phone Protective Film For Samsung, iPhone,Crystal Clear, Proof Phone Screen Protector Privacy Screen Protector Protective Phone Accessori.",
"photo": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/bd10f5938d5f4bd29c4efac9174b8804~tplv-fhlh96nyum-crop-webp:1000:1000.webp?dr=12190&t=555f072d&ps=933b5bde&shp=8dbd94bf&shcp=d741f1be&idc=useast5&from=2378011839",
"store_name": "OneFish Screenpro USA",
"shop_type": "2",
"seller_id": "7495895780545759621",
"brand_name": null,
"cumulative_sale_count": 189069,
"monthly_sale_count": 18371,
"monthly_sale_amount": 146784.29,
"weekly_sale_count": 3814,
"weekly_sale_amount": 0,
"price": 7.99,
"author_count": 0,
"video_count": 601,
"category": {
"name": "Phones & Electronics",
"node_id": "601739"
},
"sub_category": [
{
"name": "Mobile Phone Accessories",
"node_id": "909064"
}
],
"review_count": 24862,
"star": 4.4,
"is_free_shipping": true,
"shipping_fee": 0,
"location": "local",
"exposure_time": "2024-09-10"
},
{
"product_id": "1732385020938129953",
"product_name": "ONEFISH [2-Pack] Protective Privacy Screen Protector for iPhone 17 Pro Max, iPhone 17 Pro, Samsung & Google Phones - Polarized Eye Care, Scratch Resistant, Easy Installation, Mobile Phone Accessories",
"photo": "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/7a444101f5e343a0b4d35c1558cd65ea~tplv-fhlh96nyum-crop-webp:800:800.webp?dr=12190&t=555f072d&ps=933b5bde&shp=c940a200&shcp=9b759fb9&idc=useast5&from=3376456192",
"store_name": "ONEFISH",
"shop_type": "0",
"seller_id": "7494620934181586465",
"brand_name": "ONEFISH",
"cumulative_sale_count": 44157,
"monthly_sale_count": 10672,
"monthly_sale_amount": 148340.8,
"weekly_sale_count": 1218,
"weekly_sale_amount": 0,
"price": 13.9,
"author_count": 0,
"video_count": 132,
"category": {
"name": "Phones & Electronics",
"node_id": "601739"
},
"sub_category": [
{
"name": "Cases, Screen Protectors & Stickers",
"node_id": "601925"
}
],
"review_count": 6023,
"star": 4.4,
"is_free_shipping": true,
"shipping_fee": 0,
"location": "local",
"exposure_time": "2026-05-05"
}
]
}See Errors and rate limits for error payloads, request tracing, and rate-limit headers.