API

Read install counts and install commands as JSON.

The API is public and read only. It needs no key and no account.

Endpoints

Endpoint Returns
GET /api/stats/{owner}/{repo} Install counts of one repository
GET /api/stats/{owner} Install counts across every repository of one owner
GET /api/stats Install counts across every repository
GET /api/trending Repositories whose installs grew the most in the last 7 days
GET /api/commands/{owner}/{repo} Install and uninstall commands of one repository, for every platform
GET /api/options Script URLs, query parameters and environment variables of the install scripts

Each endpoint page has a playground that sends a real request from your browser.

/api/openapi.json describes every endpoint in OpenAPI 3.1, for client generators and API tools such as Postman or Bruno.

Requests

The base URL is https://installer.dev. https://instl.sh serves the same API.

{owner} and {repo} are the two parts of a GitHub repository name, as in github.com/{owner}/{repo}. For github.com/installer/demo, request /api/stats/installer/demo.

Shell
curl https://installer.dev/api/stats/installer/demo
PowerShell
irm https://installer.dev/api/stats/installer/demo

Responses

Every response is JSON with Content-Type: application/json. Every endpoint allows cross-origin requests, so a web page can call it from the browser.

Stats are cached for up to a minute. Commands and options only change with installer itself, so they are cached for a day.

Each client can send 120 requests per minute. Cache the responses on your side instead of polling faster.

Errors

An error response has a status code and a message:

JSON
{ "error": "Not a valid GitHub repository name." }
Status When
400 A query parameter has a value the endpoint does not accept.
404 {owner} or {repo} is a name GitHub would not accept.
429 More than 120 requests in a minute from one client. Wait for the minute to pass.
503 The stats database is unreachable. Send the request again later.

The API does not check whether a repository exists on GitHub. A repository nobody installed yet returns zero counts, not 404.

Badges

Badges are images, not JSON. The badge generator builds the badge URL for your README.