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 |
Each repository page has a badge builder with a live preview. It writes the URL for you.
Query parameters
| Parameter | Default | Effect |
|---|---|---|
label |
installs |
Text of the left half, up to 40 characters. Empty shows the count alone. |
style |
flat |
flat, flat-square or for-the-badge. |
platform |
all | linux, macos or windows counts one platform. |
period |
all time | month counts the last 30 days, week the last 7. The value reads 1.2k/month. |
color |
green |
Color of the count. |
labelColor |
slate |
Color of the label. |
logo |
true |
false hides the installer mark. |
Colors take a name or hex digits without #, such as 0969da. The names are green, blue, violet, orange, red, gray, slate, black and white. Text turns dark on light colors.
An invalid value falls back to its default, so a typo never breaks the image in a README.
[](https://instl.sh/OWNER/REPO)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 |