GitHub Repo Intel API
Get structured repository intelligence from GitHub — stats, language breakdown, top contributors, and recent commit activity in a single call.
GET
/api/github/repo
5 sats
Full repository intel including description, stars, forks, language breakdown, top contributors, and recent commits — all in one call.
| Parameter | Type | Description |
|---|---|---|
owner | string | Repository owner (user or org) |
repo | string | Repository name |
curl "https://agent-commerce.store/api/github/repo?owner=bitcoin&repo=bitcoin"
GET
/api/github/repo/contributors
3 sats
Top contributors ranked by commit count with profile URLs.
| Parameter | Type | Description |
|---|---|---|
owner | string | Repository owner |
repo | string | Repository name |
limit | int | Max results (1-100, default 10) |
curl "https://agent-commerce.store/api/github/repo/contributors?owner=bitcoin&repo=bitcoin&limit=5"
GET
/api/github/repo/activity
3 sats
Recent commit activity with author, message, and timestamp.
| Parameter | Type | Description |
|---|---|---|
owner | string | Repository owner |
repo | string | Repository name |
limit | int | Max results (1-100, default 10) |
curl "https://agent-commerce.store/api/github/repo/activity?owner=bitcoin&repo=bitcoin&limit=5"
Usage tips: The /repo endpoint makes 4 parallel upstream calls (repo info, languages, contributors, commits) — much faster than calling GitHub's API 4 times yourself. Uses unauthenticated GitHub API (60 req/hr shared across all users). For high-volume usage, results are cached.
Value-Add
- Aggregates 4 GitHub API calls into a single request
- Language breakdown as percentages, not raw byte counts
- Top contributors with commit counts pre-sorted
- Flattened commit history with author and timestamp
- Input validation prevents wasted upstream calls
Upstream Source
GitHub REST API v3 (unauthenticated, 60 requests/hour).