GitHub pull requests by a user API
Public pull requests the user authored, newest first, from GitHub's public search index, which serves at most the first 1,000 results of any search.
100 free credits. No card needed.
torvalds
Sent with a handle
- Cost
- 1 credit
- Fields
- 13
- Paging
- Cursor
The first results of a page
What you get for each pull request
What you can build with it
A developer's pull requests anywhere. Every pull request a user authored, in any repository, newest first. The latest from torvalds in the sample is Use modern Linux bluez address type, merged into subsurface/subsurface.
- merged
- Use modern Linux bluez address...
- merged
- Garmin: Report correct local...
Time to merge. created_at and merged_at give how long each one took. The sample's first was merged about a day after it was opened, after 6 comments.
- created_at
- 2026-10-18
- merged_at
- 2026-10-19
- comments
- 6
Maintainer or passer-by. extra.author_association gives the author's standing in that repository, COLLABORATOR for both of the sample's, which sets work as a maintainer apart from one-off fixes.
- repo
- subsurface/subsurface
- author_association
- COLLABORATOR
- state
- merged
From a key to JSON.
handle (torvalds).cursor until has_more is false.The request. GET /v1/github/user/pull-requests
curl -G "https://api.socialscrape.dev/v1/github/user/pull-requests" \ -d handle=torvalds \ -H "x-api-key: $SOCIALSCRAPE_API_KEY"
import requests r = requests.get( "https://api.socialscrape.dev/v1/github/user/pull-requests", params={"handle": "torvalds"}, headers={"x-api-key": KEY}, ) pull_requests = r.json()["data"]["items"]
const url = new URL("https://api.socialscrape.dev/v1/github/user/pull-requests"); url.searchParams.set("handle", "torvalds"); const res = await fetch(url, { headers: { "x-api-key": KEY }, }); const { data } = await res.json();
The response. A sample, in the shape every call returns.
{
"ok": true,
"credits_charged": 1,
"data": {
"items": [
{
"title": "Use modern Linux bluez address type",
"author": {
"id": "1024025",
"handle": "torvalds",
"url": "https://github.com/torvalds",
...
},
"created_at": "2026-10-18T18:11:41Z",
"url": "https://github.com/subsurface/sub...",
"repo": "subsurface/subsurface",
...
},
...
],
"cursor": "eyJwIjoyfQ",
"has_more": true
}
}
Ask in plain words. Ask your agent for GitHub pull requests by a user in plain words, and the SocialScrape MCP server makes the call.
Get the pull requests by a user for torvalds.
Here are the first pull requests. The first is "Use modern Linux bluez address type", with 5,048 number.
One tool call
GitHub pull requests by a user, given a handle.
Same price as the API
1 credit a call; a repeat within 30 days is free.
Runs on your machine
Your key stays in your agent's settings.
Pay only for data you get.
Failed requests and cached repeats are free.
1,000 credits
$13 one time
Get an API key- $13.00 per 1,000 credits
- Credits never expire
- No subscription
25,000 credits
$55 one time
Get an API key- $2.20 per 1,000 credits
- Credits never expire
- No subscription
230,000 credits
$349 one time
Get an API key- $1.52 per 1,000 credits
- Credits never expire
- No subscription
Questions, answered.
Common questions
How far back do GitHub pull requests go?
GitHub's search index serves at most the first 1,000 results of any search. Use since and until to cut a long history into windows under that.
Can I get only merged pull requests?
Yes, state=merged. open, closed and all, the default, work too.
Which repositories do a user's pull requests cover?
Every repository in GitHub's search index, not only the user's own: the sample's two are in subsurface/subsurface and subsurface/libdc.
What does it return?
Each pull request has up to 13 fields, and the sample fills id, url, repo, number, title, state, author and created_at and 2 more.
What do I send?
Send one of handle or url.
handle: A username (with or without @) or a profile or repository URL (github.com/<name>).
url: Profile URL (github.com/<user>).
state: PR state. One of open, closed, merged or all, all if left out.
since: Only pull requests created on or after this date (YYYY-MM-DD).
until: Only pull requests created on or before this date (YYYY-MM-DD).
Which errors can it return?
invalid_params, unsupported_url and not_found. None is charged, and the errors list says which to retry.
Is there an SDK call for it?
client.github.user_pull_requests(...) in Python and client.github.userPullRequests() in TypeScript.
Start pulling social data.
100 free credits. No card needed.