GitHub top issues API
The open issues people react to most, as a ranked list of feature requests and complaints.
GET /v1/github/repos/{owner}/{repo}/top-issues3 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/github/repos/vercel/next.js/top-issues",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 3 credits{ "repo": "vercel/next.js", "top_feature_request": null, "top_complaint": { "id": 1481791496, "number": 43810, "title": "Unable to import react-dom/server in a server component", "state": "open", "html_url": "https://github.com/vercel/next.js/issues/43810", "user": { "login": "janus-reith", "id": 1831220, "node_id": "MDQ6VXNlcjE4MzEyMjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1831220?v=4", "html_url": "https://github.com/janus-reith", "type": "User", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/janus-reith", "followers_url": "https://api.github.com/users/janus-reith/followers", "…": "9 more fields" }, "labels": [ { "name": "bug", "id": 2471906168, "node_id": "MDU6TGFiZWwyNDcxOTA2MTY4", "url": "https://api.github.com/repos/vercel/next.js/labels/bug", "color": "fddf99", "default": true, "description": "Issue was opened via the bug report template.", "archived_at": null, "archived_by": null } ], "comments": 25, "created_at": "2022-12-07T12:22:15Z", "updated_at": "2026-09-02T15:27:28Z", "…": "25 more fields" }, "feature_requests": [], "complaints": [ { "id": 1481791496, "number": 43810, "title": "Unable to import react-dom/server in a server component", "state": "open", "html_url": "https://github.com/vercel/next.js/issues/43810", "user": { "login": "janus-reith", "id": 1831220, "node_id": "MDQ6VXNlcjE4MzEyMjA=", "avatar_url": "https://avatars.githubusercontent.com/u/1831220?v=4", "html_url": "https://github.com/janus-reith", "type": "User", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/janus-reith", "followers_url": "https://api.github.com/users/janus-reith/followers", "…": "9 more fields" }, "labels": [ { "…": "9 fields" } ], "comments": 25, "created_at": "2022-12-07T12:22:15Z", "updated_at": "2026-09-02T15:27:28Z", "…": "25 more fields" }, "… 4 more" ], "most_reacted": [ { "id": 1697275399, "number": 49279, "title": "[NEXT-1151] App router issue with Framer Motion shared layout animations", "state": "open", "html_url": "https://github.com/vercel/next.js/issues/49279", "user": { "login": "maurocolella", "id": 761780, "node_id": "MDQ6VXNlcjc2MTc4MA==", "avatar_url": "https://avatars.githubusercontent.com/u/761780?v=4", "html_url": "https://github.com/maurocolella", "type": "User", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/maurocolella", "followers_url": "https://api.github.com/users/maurocolella/followers", "…": "9 more fields" }, "labels": [ { "…": "9 fields" } ], "comments": 145, "created_at": "2023-05-05T09:11:12Z", "updated_at": "2026-10-24T20:02:47Z", "…": "25 more fields" }, "… 4 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
ownerpath · required | string | Repository owner (user or organisation). Example: vercel. |
repopath · required | string | Repository name. Example: next.js. |
Response fields
200 with a GitHubTopIssuesResponse, in GitHub’s own REST v3 objects.
| Field | Type | Description |
|---|---|---|
repo | string | |
top_feature_request | object | |
top_complaint | object | |
feature_requests | GitHubIssue[] | Open issues labelled as enhancements or feature requests, most 👍 first (up to 5). |
complaints | GitHubIssue[] | Open bugs, most 👍 first (up to 5). |
most_reacted | GitHubIssue[] | Open issues of any label, most 👍 first (up to 5). |
Status codes
| Status | Meaning |
|---|---|
200 | The top issues. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No public GitHub user, repository or issue by that name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | GitHub is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
GitHub is a trademark of GitHub, Inc. We are not affiliated with or endorsed by GitHub.