EtshopAPI Platform
中文 / EN
接口参考

店铺每日数据 API

GET/v1/shop/data-analysis-list
免费·api.etshop.ai/open-api
Credits 消耗规则

计费规则:店铺/商品列表与热销榜每返回 1 条扣 1 Credit,店铺详情每次扣 2 Credits;详情、趋势、每日数据、评论免费(需 3 天内在列表或详情中返回过)。关键词搜索每个词扣 1 Keyword Credit,30 天内同一个词免费。店铺监控每个店铺扣 1 Monitor Credit,监控 30 天,停止后不退还。空结果不扣费,服务器错误自动退还。

请求头

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

请求示例

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}'

请求参数 5 项

按参数标注的位置传入请求。

参数 类型 说明
shop_id
query · 必填
integer 店铺 ID
start_time
query · 可选
integer 开始时间(Unix 时间戳,秒),包含当天
end_time
query · 可选
integer 结束时间(Unix 时间戳,秒),不包含该时间点;只统计 start_time ≤ 日期 < end_time 的数据
current_page
query · 可选
integer 页码,最小 1,默认 1
page_size
query · 可选
integer 每页条数,范围 1-100,默认 20

返回示例

返回示例 · 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
    }
}
文档中的示例数据

返回数据结构

名称 类型 必选 约束 说明
» code integer true none 业务状态码
» message string true none 响应消息
» data object true none 响应数据
»» data [object] true none 每日数据,按日期从新到旧排列
»»» day_time integer true none 日期(当天 00:00 的 Unix 时间戳,秒,UTC+8)
»»» sold_count integer true none 截至当天的总销量
»»» sold_count_change integer true none 当天销量增长
»»» review_count integer true none 截至当天的总评论数
»»» review_count_change integer true none 当天评论增长
»»» favorites_count integer true none 截至当天的总收藏数
»»» favorites_count_change integer true none 当天收藏增长
»» page object true none 分页信息
»»» page_count integer true none 总页数
»»» current_page integer true none 当前页码
»»» total_count integer true none 总条数
»»» page_size integer true none 每页条数
»» sold_count integer true none 时间范围内的销量增长(最后一天减第一天)
»» review_count integer true none 时间范围内的评论增长
»» favorites_count integer true none 时间范围内的收藏增长
» credits object true none 本次请求的 Credits 信息,见计费规则
»» type string true none Credits 类型,本接口为 default
»» remaining_credits integer true none 本次请求后剩余的 Credits
»» consumed_credits integer true none 本次请求消耗的 Credits,本接口为 0
»» total_credits integer true none 本次请求前的 Credits 余额(remaining_credits + consumed_credits)
来自现有接口目录与文档 · 支持接口名称和地址搜索