跳到主要内容

Download Count Statistics

GET 

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

Request​

Path Parameters

    owner stringrequired

    Repository space address (address path of the enterprise, organization, or individual)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token string

    User authorization code

    start_date string

    The start date for the statistics includes the current date (e.g.: 2024-01-06)

    end_date string

    The end date for statistics includes the current date (e.g., 2024-12-06)

    direction string

    Sort order: asc for ascending, desc for descending. Default: desc

Responses​

Successful Response

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