GitHub Stats API
Development analytics for GitHub profiles, repositories, commits, stars, pull requests, and contribution heatmaps.
Every canonical endpoint shares one response envelope across all platforms, so you can swap providers without rewriting your client. Legacy aliases stay available and are clearly marked.
Make your first request
Send a GET request to any handle. Replace demo with the username you want to inspect — no API key required.
# Fetch a GitHub profile
curl /demo/profile
Prefer a browser? Try the live playground, open /demo/profile for raw JSON, or explore every route interactively in the OpenAPI explorer.
Response envelope
Successful responses follow one consistent shape. The data object carries the endpoint-specific payload while the outer fields stay identical everywhere.
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": { ... }
}
Canonical endpoints
The canonical surface — build against these. Click any endpoint to see its path parameters and an example response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": {
"totalSolved": 1263,
"totalActiveDays": 608
}
}| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": {
"displayName": "Shaurya Rahlon",
"username": "demo",
"avatar": "https://...",
"country": "India",
"countryFlag": null,
"institution": null,
"company": null,
"bio": "Building things.",
"websites": [
"https://example.dev"
],
"social": {
"github": "https://github.com/demo",
"twitter": null,
"linkedin": "https://linkedin.com/in/demo"
},
"verified": false
}
}| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": {
"totalSolved": 859,
"totalQuestions": 3000,
"acceptanceRate": 65.5,
"byDifficulty": {
"easy": 267,
"medium": 472,
"hard": 120
},
"topicAnalysis": [
{
"topic": "Arrays",
"count": 506
},
{
"topic": "Dynamic Programming",
"count": 152
}
]
}
}| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
| Name | Type | Description | |
|---|---|---|---|
theme | string | optional | dark (default) or light. |
exclude | string | optional | Comma-separated topics/languages to omit from the bars. |
Returns image/svg+xml (not JSON). Use the playground to preview the card live.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": {
"totalSubmissions": 592,
"totalActiveDays": 608,
"currentStreak": 4,
"longestStreak": 138,
"maxDailySubmissions": 12,
"firstActiveDate": "2024-01-03",
"lastActiveDate": "2026-05-29",
"dailyContributions": [
{
"date": "2024-01-03",
"count": 3,
"level": 1
}
],
"yearlyContributions": [
{
"year": 2025,
"totalSubmissions": 320,
"activeDays": 120
}
]
}
}| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
{
"status": "success",
"platform": "github",
"username": "demo",
"cached": false,
"data": {
"count": 4,
"active": {
"id": "pull-shark",
"name": "Pull Shark",
"icon": "https://github.githubassets.com/assets/pull-shark-default-498c279a747d.png",
"level": "x3"
},
"list": [
{
"id": "pull-shark",
"name": "Pull Shark",
"icon": "https://github.githubassets.com/assets/pull-shark-default-498c279a747d.png",
"level": "x3"
},
{
"id": "pair-extraordinaire",
"name": "Pair Extraordinaire",
"icon": "https://github.githubassets.com/assets/pair-extraordinaire-default-579438a20e01.png",
"level": null
},
{
"id": "quickdraw",
"name": "Quickdraw",
"icon": "https://github.githubassets.com/assets/quickdraw-default-39c6aec8ff89.png",
"level": null
},
{
"id": "yolo",
"name": "YOLO",
"icon": "https://github.githubassets.com/assets/yolo-default-be0bbff04951.png",
"level": null
}
]
}
}| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
| Name | Type | Description | |
|---|---|---|---|
username | string | required | The GitHub username to look up. |
No inline example for this shape — see the OpenAPI schema for the exact response.
Legacy compatibility
Kept working for existing integrations. Prefer the canonical routes above for anything new.
No legacy aliases — every path already uses the canonical route files.