跳到主要内容

下载次数统计

GET 

/api/v5/repos/:owner/:repo/download_statistics

Request​

Path Parameters

    owner stringrequired

    仓库所属空间地址(企业、组织或个人的地址path)

    repo stringrequired

    仓库路径(path)

Query Parameters

    access_token string

    用户授权码

    start_date string

    统计起始日期包含当前日期(eg:2024-01-06)

    end_date string

    统计截止日期包含当前日期 (eg: 2024-12-06)

    direction string

    排序方式: 升序(asc),降序(desc)。默认: desc

Responses​

成功响应

Response Headers
    Schema
      download_statistics_detail object[]
    • Array [
    • pdatestring
      repo_idstring
      today_dl_cntinteger
      total_dl_cntinteger
    • ]
    • download_statistics_totalinteger
      download_statistics_history_totalinteger