GitHub repository issues API
A repository’s issues with state, labels, sort, direction and since filters.
GET /v1/github/repos/{owner}/{repo}/issues1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/github/repos/facebook/react/issues?state=open",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "items": [ { "id": 6631679693, "number": 38401, "title": "[Flight] Stop adding rows once a render's last task completes", "state": "open", "html_url": "https://github.com/react/react/pull/38401", "user": { "login": "acdlite", "id": 3624098, "node_id": "MDQ6VXNlcjM2MjQwOTg=", "avatar_url": "https://avatars.githubusercontent.com/u/3624098?v=4", "html_url": "https://github.com/acdlite", "type": "User", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/acdlite", "followers_url": "https://api.github.com/users/acdlite/followers", "…": "9 more fields" }, "labels": [ { "…": "9 fields" }, "… 1 more" ], "comments": 0, "created_at": "2026-11-26T17:11:04Z", "updated_at": "2026-11-26T17:20:24Z", "…": "23 more fields" }, "… 29 more" ], "page": 1, "per_page": 30, "has_more": true, "next_cursor": "eyJzIjoiaXNzdWVzOmZhY2Vib29rL3JlYWN0OntcInN0YXRlXCI6XCJvcGVuXCIsXCJzb3J0XCI6XCJj…"}Parameters
| Name | Type | Description |
|---|---|---|
ownerpath · required | string | Repository owner (user or organisation). Example: vercel. |
repopath · required | string | Repository name. Example: next.js. |
typequery | "issue" | "pr" | "all" | issue, pr or all (default). One of issue, pr, all. |
statequery | "open" | "closed" | "all" | open (default), closed or all. One of open, closed, all. |
sortquery | "created" | "updated" | "comments" | created (default), updated or comments. One of created, updated, comments. |
directionquery | "asc" | "desc" | desc (default) or asc. One of asc, desc. |
labelsquery | string | Comma-separated label names; issues must have all of them. |
sincequery | string | Only issues updated at or after this date (YYYY-MM-DD or ISO 8601). |
per_pagequery | integer | Items per page, 1-100 (default 30). |
pagequery | integer | 1-indexed page number (default 1). |
afterquery | string | Cursor: the previous page’s next_cursor (instead of page). |
Response fields
200 with a GitHubIssuesResponse, in GitHub’s own REST v3 objects.
| Field | Type | Description |
|---|---|---|
items | GitHubIssue[] | |
page | integer | 1-indexed page this is. |
per_page | integer | |
has_more | boolean | |
next_cursor | string | null | Pass as after for the next page; null at the end. |
Status codes
| Status | Meaning |
|---|---|
200 | A page of 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.