GitHub Pull Requests API
List repo PRs — draft, labels, author{}, head/base, opaque Link cursor (state echoed).
List pull requests for a repository via GitHub REST /pulls. Default state=open (pass closed|all — the applied filter is echoed as data.state). Each row: number, title, state, draft, labels[], author{id,login,avatar,url}, head/base refs, assignees[], requestedReviewers[], closedAt/mergedAt. Empty labels / assignees / requestedReviewers are [] — GitHub told us the collection is empty, not that we failed to read it. Opaque nextCursor from GitHub's Link header (not a bare page number). Billing scales with results (~0.4/PR, min ~12 at default limit).
Request
- Base URL: https://api.captapi.com
- URL: https://api.captapi.com/v1/github/pull-requests
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Query parameters
Repository URL or owner/name, e.g. vercel/next.js.
open (API default), closed, or all. Echoed as data.state. Docs example uses closed so mergedAt is visible.
Max items to return (default 30, max 100). Billed per result.
Opaque cursor from a previous nextCursor (GitHub Link page=). Not a bare page number.
Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
Response
Success. The data object for this endpoint.
Changes
No recorded changes to this operation across all 3 revisions of this API.