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.

PathReturnsAuth
/v1/commandsEvery command with its category, usage line and summary.None
/v1/categoriesCommand categories and how many commands each holds.None
/v1/versionCurrent API version and release date.None
/v1/statusCurrent state of each service component.None
/v1/healthA 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));