Introducing the Instagram APIRead more →

GitHub Pull Requests API. Pull requests, page by page.

Pull requests a user opened, with merge state. We handle the proxies, blocks and platform changes.

In your agent: GitHub MCP server →

GitHub Pull Requests API at a glance

Returns the public pull requests a GitHub user or bot opened, across every repository, from its username, account ID or link, a page at a time. Each comes with its repository, number, title, description, state (open, closed or merged) and close reason, labels, assignees, milestone, draft flag, comment and reaction counts, and when it was opened, updated, closed and merged.

GET /v1/github/profile_pull_requests

Read the API reference
  • 1 credit per page, $0.75–$1.97 per 1,000 pages
  • 28 typed fields null when unknown
  • 50 pull requests per page, newest first
  • handle is all it needs, e.g. torvalds

Send one request. Get up to 50 pull requests back.

Copy the request in your language, or hand it to your agent. Sign up for an API key and your first 100 credits are free.

$ npm install socialtap
handle = torvalds
GET /v1/github/profile_pull_requestsTry in
const params = new URLSearchParams({
  handle: "torvalds",
});
const res = await fetch(`https://socialtap.dev/v1/github/profile_pull_requests?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, page, meta } = body;
console.log(data, meta.credits_charged);
200 OK · GET https://socialtap.dev/v1/github/profile_pull_requestsLong arrays and strings are shortened here. Real responses are complete.Docs

What you send and what comes back.

The response reference lists every field, its type and when it is null. See the full schema.

  • Null means unknown

    A field GitHub doesn't show is null, never zero or an empty string, so a real zero always means zero.

  • What it accepts

    The GitHub account whose pull requests to list: its username (login), with or without the @; its numeric account ID, which survives a rename; its link (github.com/torvalds, with any tab, api.github.com/users/<username>); or a bot by its login (dependabot[bot]) or its app's page (github.com/apps/dependabot).

  • What comes back

    Issues and pull requests with their state, labels, author, assignees, milestone, comment and reaction counts, and for pull requests the branches, merge time and lines changed.

platformstring
Platform ID (github, …).
idstring
The item's full reference on its host (owner/repo#123; group/project!34 for a GitLab merge request), as the host writes it to link it from anywhere; the issue endpoint takes it as input. It follows the repository's current name.
urlstring
The item's page (an issue's or a pull request's).
repositoryobject
The repository it belongs to (id null when the answer names it by path alone).
numberinteger
The item's number in its repository (the 123 of #123).
is_pull_requestboolean
true for a pull request (a merge request on GitLab), false for an issue (a discussion on Hugging Face).
titlestring
The item's title.
textstring
The description as its author wrote it (Markdown source); null when it has none.

What teams build with the GitHub Pull Requests API.

  • Review a candidate's open source contributions

  • Track a maintainer's merged pull requests

  • Measure how much of a bot's work gets merged

  • Find the projects a developer contributes to

Good to know before you build.

  • GitHub serves the first thousand pull requests of an account in any one order, after which the walk ends with page.end_reason platform_limit: narrow it with status, or since and until, to reach the rest.
  • An organization opens no pull requests of its own, so its list is empty: its members' pull requests are under their own usernames.
  • A pull request's branches, changed lines, commits and who merged it are not in this list; the GitHub Issue API returns them for one pull request.
  • If GitHub's search API refuses, pull requests come from github.com's search page instead, ten a page, with descriptions cut short and no assignees, milestone, reactions or update, close and merge times.

1 credit per page. Failed requests are free.

Buy credits once and spend them on any endpoint, on any platform.

SourcePrice per successful pagePer 1,000 pages
Any source1 credit$0.75–$1.97
  • Cache hits are free.
  • Credits from packs and top-ups never expire.
  • A monthly plan's credits are spent first, and what is left of them ends at each renewal.
  • Prices exclude tax: sales tax is added at checkout where it applies.
  • Outside the US, plans and packs are sold to businesses: checkout asks for your VAT, GST or other business tax ID.

Questions about the GitHub Pull Requests API.

More in the API reference.

How much does the GitHub Pull Requests API cost?
A page of up to 50 pull requests costs 1 credit. Every successful page is charged, empty pages included. SocialTap credits cost $0.75–$1.97 per 1,000, depending on the plan or pack.
How do I get the next page?
Repeat the same request with cursor set to page.next_cursor from the previous response, keeping the other parameters. When page.has_more is false there are no more pages. Cursors expire after 24 hours.

Try it on an account you know.

Paste its handle or link in the playground, or copy the request into your code.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 276 endpoints
Start for free Read the docs