EtshopAPI Platform
EN / 中文
API REFERENCE

Shop Daily Data API

GET/v1/shop/data-analysis-list
Free·api.etshop.ai/open-api
Credits 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

AUTHORIZATIONAuthorization: {API Key}
CONTENT-TYPEapplication/json
ACCEPTapplication/json

Request example

cURL
curl --location --request GET 'https://api.etshop.ai/open-api/v1/shop/data-analysis-list?shop_id=21475836&start_time=1794067200&end_time=1794326400&current_page=1&page_size=20' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: {API Key}'

Request parameters 5 fields

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.
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": 48270,
                "favorites_count_change": 85,
                "review_count": 15830,
                "review_count_change": 8,
                "sold_count": 86214,
                "sold_count_change": 109,
                "day_time": 1794240000
            },
            {
                "favorites_count": 48185,
                "favorites_count_change": 85,
                "review_count": 15822,
                "review_count_change": 12,
                "sold_count": 86105,
                "sold_count_change": 105,
                "day_time": 1794153600
            },
            {
                "favorites_count": 48100,
                "favorites_count_change": 92,
                "review_count": 15810,
                "review_count_change": 9,
                "sold_count": 86000,
                "sold_count_change": 97,
                "day_time": 1794067200
            }
        ],
        "page": {
            "page_count": 1,
            "current_page": 1,
            "total_count": 3,
            "page_size": 20
        },
        "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 data, sorted from newest to oldest
»»» day_time integer true none Date (Unix timestamp of 00:00 on that day, seconds, UTC+8)
»»» sold_count integer true none Total sales as of that day
»»» sold_count_change integer true none 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
»» 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
»» 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)
Search the existing endpoint names and paths