Get package download stats
packagecloud_get_package_downloadsDownload statistics of one package version: a count, a time series, or (repository owners only) the detail of each download. Default range is the last 7 days; pass start_date=19700101Z for all time. Pass the package_url of the package; Java and generic files have no download stats. GET {package_url minus .json}/stats/downloads/{count|detail|series/}.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | count = total, series = per interval, detail = one record per download (owners only). | count |
| page | No | Page number, from 1 (default 1). Pass the previous reply's next_page. | |
| source | No | Only downloads from the "web" or the "cli". | |
| end_date | No | An ISO 8601 date, for example 20260101Z or 2026-01-01. | |
| interval | No | Series interval, "daily" (default) or "weekly". | daily |
| per_page | No | Results per page (default 30; the server caps it at its own Max-Per-Page). | |
| start_date | No | An ISO 8601 date, for example 20260101Z or 2026-01-01. | |
| user_agent | No | Only downloads whose user agent equals this. | |
| package_url | Yes | The package_url of a package object, exactly as returned by the API (a /api/v1/repos/... path). |