API REFERENCE
Shop Data Trend API
GET
/v1/shop/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/shop/data-analysis-tread?shop_id=21475836&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 |
|---|---|---|
| shop_id
query · required
| integer | Shop 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": 92,
"review_count": 9,
"sold_count": 97,
"day_time": 1794067200
},
{
"favorites_count": 85,
"review_count": 12,
"sold_count": 105,
"day_time": 1794153600
},
{
"favorites_count": 85,
"review_count": 8,
"sold_count": 109,
"day_time": 1794240000
}
],
"favorites_count": 170,
"review_count": 20,
"sold_count": 214
},
"credits": {
"type": "default",
"remaining_credits": 196533,
"consumed_credits": 0,
"total_credits": 196533
}
}
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) |
| »»» sold_count | integer | true | none | Sales growth on that day |
| »»» review_count | integer | true | none | Review growth on that day |
| »»» favorites_count | integer | true | none | Favorite growth on that day |
| »» sold_count | integer | true | none | Sales growth over the time range (last day minus first day) |
| »» review_count | integer | true | none | Review growth over the time range |
| »» favorites_count | integer | true | none | Favorite 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) |
