downloads_series (python)
Retrieve a time series of all the downloads for a particular package given a particular criteria. This is specific to a single package inside a repository.
Default date range is 7 days ago. See response headers for pagination information.
Everyone for public repositories, Owners & Collaborators for private repositories.
Instead of constructing these URLs by hand, you should use the generated versions returned from any of these API's, which are guaranteed to be correct for all supported package types:
Example request:
/api/v1/repos/julio/test_repo/package/gem/my-gem/1.2.0/stats/downloads/series/daily.json
Path parameters
The user this repo belongs to.
The name of this repository.
The name of the package. If the package is a scoped Node.JS package include the scope and an escaped '/' (e.g. @scope%2Fname).
The version number of the package.
Query parameters
An ISO8601 end date (e.g., 20160231Z).
The master_token name or id to filter downloads by.
The read_token name or id to filter downloads by (:master_token required).
The source to filter downloads by, must be "web" or "cli"
An ISO8601 starting date (e.g., 20160231Z).
The user_agent to filter downloads by.
Response
SeriesValue JSON object containing details of all downloads