v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-167122208.0 KB
stats

installs_count (by distro)

Retrieve the number of times a particular repository has been installed given a particular criteria. This is specific to a single repository.

Default date range is 7 days ago.

Everyone for public repositories, Owners & Collaborators for private repositories.

Example request:

/api/v1/repos/julio/test_repo/stats/installs/count.json
get/api/v1/repos/{user_id}/{repo}/stats/installs/{distro}/count.json

Path parameters

user_idstring required

The user this repo belongs to.

repostring required

The name of this repository.

distrostring required

The name of the distribution to filter repository installs by (i.e. ubuntu)

Query parameters

end_datestring

ISO8601 ending date, like 20160231Z.

master_tokenstring

The master_token name or id to filter repository installs by.

start_datestring

ISO8601 starting date, like 20160231Z.

user_agentstring

The user_agent to filter repository installs by.

versionstring

The version name of the distribution to filter repository installs by (i.e. precise)

Response

CountValue JSON object containing the value of the result.

valueinteger

The value of the result

Example response

{
  "value": 12312
}