Stats API and badges
Install counts as JSON and as README badges.
Counts update in real time and responses are cached for up to a minute. Every endpoint allows cross-origin requests.
An install is one script request from a terminal. Browsers and crawlers are not counted.
Badges
| URL | Shows |
|---|---|
https://instl.sh/OWNER/REPO/badge.svg |
Installs of one repository |
https://instl.sh/badge.svg |
Installs through instl.sh |
Add ?label=downloads to change the left half. Labels are up to 40 characters.
JSON
GET /api/stats/OWNER/REPO
{
"repository": "installer/demo",
"total": 1520,
"platforms": { "linux": 980, "macos": 410, "windows": 130 },
"daily": [{ "date": "2026-12-01", "installs": 14 }]
}daily holds the last 90 days, oldest first, including days without installs. The repository name is lowercase.
GET /api/stats
{
"total": 482113,
"platforms": { "linux": 301245, "macos": 120112, "windows": 60756 },
"repositories": 1830,
"top": [{ "repository": "installer/demo", "installs": 1520 }],
"daily": [{ "date": "2026-12-01", "installs": 912 }]
}top lists up to 50 repositories with at least 10 installs.
Errors
A name GitHub would not accept returns 404. When the database is unreachable, the JSON endpoints return 503 with { "error": "..." }, and badges show n/a.
Earlier endpoints
These endpoints from the first version of instl.sh keep working:
| URL | Returns |
|---|---|
/api/v1/stats |
Totals keyed by owner/repo/platform |
/api/v1/stats/total |
The total as plain text |
/api/v1/stats/OWNER/REPO |
linux, macos, windows and total |
/api/v1/badge/shields.io/stats/OWNER/REPO |
A shields.io endpoint badge |
/api/v1/badge/shields.io/stats/total |
The same for all installs |