API · GitHub
GET /github/repos/{owner}/{repo}/issues/{number}
One GitHub issue or pull request with its body, labels and reactions.
| Request | GET /v1/github/repos/{owner}/{repo}/issues/{number} |
| Operation id | github.issue.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One GitHub issue or pull request with its body, labels and reactions.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
owner | string | yes | Repository owner (user or organisation). Example: vercel. |
repo | string | yes | Repository name. Example: next.js. |
number | string | yes | Issue or pull request number. Example: 1. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The issue. | GitHubIssueResponse |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No public GitHub user, repository or issue by that name. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | GitHub is temporarily unavailable. Retryable; nothing was charged. | Error |
GitHubIssueResponse fields
| Field | Type | Description |
|---|---|---|
issue | GitHubIssue | An issue or pull request, as GitHub’s issues API serves it. |
pull | GitHubPull | The pull request’s own object (merged, diff size, branches) when the issue is one. |
Errors use one shape everywhere; see Errors for every code and what to do.