100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
ownerpath · requiredstringRepository owner (user or organisation). Example: vercel.
repopath · requiredstringRepository 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.
labelsquerystringComma-separated label names; issues must have all of them.
sincequerystringOnly issues updated at or after this date (YYYY-MM-DD or ISO 8601).
per_pagequeryintegerItems per page, 1-100 (default 30).
pagequeryinteger1-indexed page number (default 1).
afterquerystringCursor: the previous page’s next_cursor (instead of page).
Response fields

200 with a GitHubIssuesResponse, in GitHub’s own REST v3 objects.

FieldTypeDescription
itemsGitHubIssue[]
pageinteger1-indexed page this is.
per_pageinteger
has_moreboolean
next_cursorstring | nullPass as after for the next page; null at the end.
Status codes
StatusMeaning
200A page of issues.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No public GitHub user, repository or issue by that name.
429Too many requests. Wait for Retry-After seconds.
503GitHub 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.