API REFERENCE
Product Data Trend API
GET
/v1/product/data-analysis-treadFree·api.etshop.ai/open-apiCredits usage rules
Billing: shop/product lists and top sellers cost 1 Credit per returned record; shop details cost 2 Credits per call. Details, trends, daily data and reviews are free (the record must have been returned by a list or details call within 3 days). Keyword search costs 1 Keyword Credit per keyword, and the same keyword is free for 30 days. Shop monitoring costs 1 Monitor Credit per shop for 30 days and is not refunded when stopped. Empty results are free and server errors are refunded automatically.
Request headers
AUTHORIZATION
Authorization: {API Key}CONTENT-TYPE
application/jsonACCEPT
application/jsonRequest example
cURL
curl --location --request GET 'https://api.etshop.ai/open-api/v1/product/data-analysis-tread?product_id=1284567890&start_time=1794067200&end_time=1794326400' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}' Request parameters
Pass each parameter in its specified location.
| Parameter | Type | Description |
|---|---|---|
| product_id
query · required
| integer | Product ID |
| start_time
query · optional
| integer | Start time (Unix timestamp, seconds), inclusive. |
| end_time
query · optional
| integer | End time (Unix timestamp, seconds), exclusive. Only days where start_time ≤ date < end_time are returned. |
Response example
Response · JSON
{
"code": 200,
"message": "success",
"data": {
"data": [
{
"favorites_count": 68,
"views": 870,
"review_count": 2,
"day_time": 1794067200
},
{
"favorites_count": 80,
"views": 550,
"review_count": 3,
"day_time": 1794153600
},
{
"favorites_count": 80,
"views": 564,
"review_count": 3,
"day_time": 1794240000
}
],
"favorites_count": 160,
"review_count": 6,
"views": 1114
},
"credits": {
"type": "default",
"remaining_credits": 196531,
"consumed_credits": 0,
"total_credits": 196531
}
}
Example data from the existing documentation
Response structure
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
| » code | integer | true | none | Status Code |
| » message | string | true | none | Response message |
| » data | object | true | none | Response data |
| »» data | [object] | true | none | Daily growth, sorted from oldest to newest |
| »»» day_time | integer | true | none | Date (Unix timestamp of 00:00 on that day, seconds, UTC+8) |
| »»» review_count | integer | true | none | Review growth on that day |
| »»» favorites_count | integer | true | none | Favorite growth on that day |
| »»» views | integer | true | none | View growth on that day |
| »» review_count | integer | true | none | Review growth over the time range (last day minus first day) |
| »» favorites_count | integer | true | none | Favorite growth over the time range |
| »» views | integer | true | none | View growth over the time range |
| » credits | object | true | none | Credits information of this request. See Billing Rules. |
| »» type | string | true | none | Credits type. default for this endpoint. |
| »» remaining_credits | integer | true | none | Remaining Credits after this request |
| »» consumed_credits | integer | true | none | Credits consumed by this request (0 for this endpoint) |
| »» total_credits | integer | true | none | Credits balance before this request (remaining_credits + consumed_credits) |
