API REFERENCE
Product Daily Data API
GET
/v1/product/data-analysis-listFree·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-list?product_id=1284567890&start_time=1794067200&end_time=1794326400¤t_page=1&page_size=20' \
--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. |
| current_page
query · optional
| integer | Page number (min: 1, default: 1). |
| page_size
query · optional
| integer | Items per page (range: 1-100, default: 20). |
Response example
Response · JSON
{
"code": 200,
"message": "success",
"data": {
"data": [
{
"favorites_count": 18450,
"favorites_count_change": 80,
"views_count": 389214,
"views_count_change": 564,
"review_count": 2137,
"review_count_change": 3,
"real_sale_count": 6215,
"real_sale_count_change": 17,
"day_time": 1794240000
},
{
"favorites_count": 18370,
"favorites_count_change": 80,
"views_count": 388650,
"views_count_change": 550,
"review_count": 2134,
"review_count_change": 3,
"real_sale_count": 6198,
"real_sale_count_change": 18,
"day_time": 1794153600
},
{
"favorites_count": 18290,
"favorites_count_change": 68,
"views_count": 388100,
"views_count_change": 870,
"review_count": 2131,
"review_count_change": 2,
"real_sale_count": 6180,
"real_sale_count_change": 15,
"day_time": 1794067200
}
],
"page": {
"page_count": 1,
"current_page": 1,
"total_count": 3,
"page_size": 20
},
"favorites_count": 160,
"review_count": 6,
"views": 1114,
"real_sale_count": 35
},
"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 data, sorted from newest to oldest |
| »»» day_time | integer | true | none | Date (Unix timestamp of 00:00 on that day, seconds, UTC+8) |
| »»» real_sale_count | integer | true | none | Real sales as of that day |
| »»» real_sale_count_change | integer | true | none | Real sales growth on that day |
| »»» review_count | integer | true | none | Total reviews as of that day |
| »»» review_count_change | integer | true | none | Review growth on that day |
| »»» favorites_count | integer | true | none | Total favorites as of that day |
| »»» favorites_count_change | integer | true | none | Favorite growth on that day |
| »»» views_count | integer | true | none | Total views as of that day |
| »»» views_count_change | integer | true | none | View growth on that day |
| »» page | object | true | none | Pagination |
| »»» page_count | integer | true | none | Total pages |
| »»» current_page | integer | true | none | Current page number |
| »»» total_count | integer | true | none | Total records |
| »»» page_size | integer | true | none | Items per page |
| »» real_sale_count | integer | true | none | Real 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 |
| »» 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) |
