GroundsocialDocs

API · GitHub

GET /github/repos/{owner}/{repo}/issues

Issues and pull requests of a GitHub repository, filtered by state, labels and date.

RequestGET /v1/github/repos/{owner}/{repo}/issues
Operation idgithub.repo.issues
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Issues and pull requests of a GitHub repository, filtered by state, labels and date.

Path parameters

NameTypeRequiredDescription
ownerstringyesRepository owner (user or organisation). Example: vercel.
repostringyesRepository name. Example: next.js.

Query parameters

NameTypeRequiredDescription
type"issue" | "pr" | "all"noissue, pr or all (default). One of issue, pr, all.
state"open" | "closed" | "all"noopen (default), closed or all. One of open, closed, all.
sort"created" | "updated" | "comments"nocreated (default), updated or comments. One of created, updated, comments.
direction"asc" | "desc"nodesc (default) or asc. One of asc, desc.
labelsstringnoComma-separated label names; issues must have all of them.
sincestringnoOnly issues updated at or after this date (YYYY-MM-DD or ISO 8601).
per_pageintegernoItems per page, 1-100 (default 30).
pageintegerno1-indexed page number (default 1).
afterstringnoCursor: the previous page’s next_cursor (instead of page).

Responses

StatusMeaningSchema
200A page of issues.GitHubIssuesResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No public GitHub user, repository or issue by that name.Error
429Too many requests. Wait for Retry-After seconds.Error
503GitHub is temporarily unavailable. Retryable; nothing was charged.Error

GitHubIssuesResponse fields

FieldTypeDescription
itemsGitHubIssue[]
pageinteger1-indexed page this is.
per_pageinteger
has_moreboolean
next_cursorstring | nullPass as after for the next page; null at the end.

Errors use one shape everywhere; see Errors for every code and what to do.