Get an app's download statistics
Returns download counts for the app from the download events the updater records in ClickHouse: the total, counts by version, platform and target, and a daily series (UTC days, oldest first). Narrow it with release_id, target, platform and a from/to time range; every filter is optional.
The caller must be able to read the app, as for GetConfig. A deployment that records no download events, or a failed query, answers UNAVAILABLE. An API key is refused with PERMISSION_DENIED: this needs a signed-in person.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= lengthoptional
optional
optional
optional
date-timeoptional
date-timeResponse Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/GetDownloadStats" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"total": "1842",
"byVersion": "map[1.4.1:639 1.4.2:1203]",
"byPlatform": "map[darwin:1120 win32:722]",
"byTarget": "map[beta:52 production:1790]",
"timeseries": [
"map[count:96 date:2026-10-20T00:00:00Z]",
"map[count:131 date:2026-10-21T00:00:00Z]"
]
}Get an app's updater config POST
Returns the app's updater configuration from its bucket's `/config.json`: display name, every branch, the targets and distributions the caller may see, the login redirect URL, the logo URL (empty when no logo is uploaded), the updater's public base URL and whether the source is public. An app with no config yet returns an empty one. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. `signing_secret` is returned only to a signed-in person with write access, never to an API key or a read-only token. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.
Get a module release and its artifacts POST
Returns one module release, found on whichever branch holds it, with its dependencies and every artifact uploaded to it. A module release that does not exist, or is on no target visible to the caller, is `NOT_FOUND`. Visibility follows the caller: a caller with write access sees everything; anyone else (the public download page's `client_credentials` token, a read-only token) sees public targets only, plus the private targets named in an updater token sent in the `X-Updater-Token` header and signed with the app's signing secret. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.