Git reference data over HTTP
A small, read-only JSON API that serves Git commands, usage lines and categories. Use it in editors, terminals, docs and learning tools. No key is needed for public endpoints.
https://api.gitcontrol.ir/v1
Read the reference
GET
Endpoints
All endpoints use GET and return application/json.
| Path | Returns | Auth |
|---|---|---|
/v1/commands | Every command with its category, usage line and summary. | None |
/v1/categories | Command categories and how many commands each holds. | None |
/v1/version | Current API version and release date. | None |
/v1/status | Current state of each service component. | None |
/v1/health | A minimal liveness check for monitors. | None |
Fetch from a shell
Pipe the response into jq to pick the fields you need.
curl -s https://api.gitcontrol.ir/v1/commands \
| jq '.data[] | select(.category=="undo") | .usage'
Fetch from a browser
CORS is open for read requests, so you can call the API from any origin.
const res = await fetch('/v1/categories');
const { data } = await res.json();
console.log(data.map(c => c.label));