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.

GETapi.socialscrape.io/v1/github/user/pull-requests
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

You send one of handle or url.

Request

Send your key in the x-api-key header.

curl
curl -G "https://api.socialscrape.io/v1/github/user/pull-requests" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'handle=torvalds'
Python
import os
import requests

params = {
    "handle": "torvalds",
}
res = requests.get(
    "https://api.socialscrape.io/v1/github/user/pull-requests",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/github/user/pull-requests");
url.search = new URLSearchParams({
  handle: "torvalds",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape GitHub pull requests by a user",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/github/user/pull-requests",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "handle",
              "value": "torvalds"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
handlestringone ofGitHub username. Also accepted as username, login.
urlurlone ofProfile URL (github.com/<user>).
statestringPR state.
sincestringOnly pull requests created on or after this date (YYYY-MM-DD).
untilstringOnly pull requests created on or before this date (YYYY-MM-DD).
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_f28bab188bbf66160202f92a",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "pull_request",
        "platform": "github",
        "id": "5912575820",
        "url": "https://github.com/subsurface/subsurface/pull/5048",
        "repo": "subsurface/subsurface",
        "number": 5048,
        "title": "Use modern Linux bluez address type",
        "state": "merged",
        "author": {
          "id": "1024025",
          "handle": "torvalds",
          "name": null,
          "url": "https://github.com/torvalds",
          "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
          "verified": null
        },
        "created_at": "2026-10-18T18:11:41Z",
        "closed_at": "2026-10-19T20:13:36Z",
        "merged_at": "2026-10-19T20:13:36Z",
        "extra": {
          "author_association": "COLLABORATOR",
          "comments": 6,
          "draft": false,
          "locked": false,
          "node_id": "PR_kwDOACNkis8AAAABJMAipA",
          "updated_at": "2026-10-24T01:49:50Z"
        }
      },
      {
        "object": "pull_request",
        "platform": "github",
        "id": "2760110089",
        "url": "https://github.com/subsurface/libdc/pull/69",
        "repo": "subsurface/libdc",
        "number": 69,
        "title": "Garmin: Report correct local time offset",
        "state": "merged",
        "author": {
          "id": "1024025",
          "handle": "torvalds",
          "name": null,
          "url": "https://github.com/torvalds",
          "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
          "verified": null
        },
        "created_at": "2024-12-26T20:13:25Z",
        "closed_at": "2024-12-26T23:18:29Z",
        "merged_at": "2024-12-26T23:18:29Z",
        "extra": {
          "author_association": "COLLABORATOR",
          "comments": 0,
          "draft": false,
          "locked": true,
          "node_id": "PR_kwDOBKvy_M6GRfue",
          "updated_at": "2024-12-28T03:03:04Z"
        }
      }
    ],
    "cursor": "eyJwIjoyfQ",
    "has_more": true,
    "parent": null
  },
  "cursor": "eyJwIjoyfQ",
  "has_more": true
}

Fields

A page of results. Each entry in items is a PullRequest. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"pull_request"
platformPlatformyes
idstringyes
urlstring or null
repostring or null"owner/name"
numberinteger or null
titlestring or null
state"open" or "closed" or "merged" or "unknown"
authorAuthor or null
created_atstring (ISO 8601 date-time) or null
closed_atstring (ISO 8601 date-time) or null
merged_atstring (ISO 8601 date-time) or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The preview Python client has client.github.user_pull_requests(...) and the TypeScript client client.github.userPullRequests(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access