GitHub issue search API
Search issues and pull requests with GitHub qualifiers, sort and order.
GET /v1/github/search/issues1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/github/search/issues?q=is:issue%20is:open%20label:bug%20repo:vercel/next.js",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "total_count": 229, "incomplete_results": false, "items": [ { "id": 4274545145, "number": 92877, "title": "`@vercel/otel` fetch instrumentation stripped after HMR in dev mode — `resetFetc…", "state": "open", "html_url": "https://github.com/vercel/next.js/issues/92877", "user": { "login": "Strernd", "id": 2428581, "node_id": "MDQ6VXNlcjI0Mjg1ODE=", "avatar_url": "https://avatars.githubusercontent.com/u/2428581?v=4", "html_url": "https://github.com/Strernd", "type": "User", "site_admin": false, "gravatar_id": "", "url": "https://api.github.com/users/Strernd", "followers_url": "https://api.github.com/users/Strernd/followers", "…": "9 more fields" }, "labels": [ { "…": "9 fields" }, "… 2 more" ], "comments": 4, "created_at": "2026-04-16T09:14:13Z", "updated_at": "2026-09-17T18:42:28Z", "…": "25 more fields" }, "… 29 more" ], "page": 1, "per_page": 30, "has_more": true, "next_cursor": "eyJzIjoic2k6aXM6aXNzdWUgaXM6b3BlbiBsYWJlbDpidWcgcmVwbzp2ZXJjZWwvbmV4dC5qczo6ZGVz…"}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | GitHub issue search query. Example: repo:vercel/next.js is:issue is:open label:bug. |
sortquery | "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated" | Sort field (default: best match). One of comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, updated. |
orderquery | "asc" | "desc" | desc (default) or asc. One of asc, desc. |
sincequery | string | Only items on or after this date (YYYY-MM-DD or ISO 8601). |
untilquery | string | Only items on or before this date (that whole UTC day for YYYY-MM-DD). |
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 GitHubIssueSearchResponse, in GitHub’s own REST v3 objects.
| Field | Type | Description |
|---|---|---|
total_count | integer | |
incomplete_results | boolean | |
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 | Matching issues and pull requests. |
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.