GitHub

List GitHub profile pull requests

List pull requests authored by a GitHub user.

GET/v1/github/profiles/{handle}/pull-requests
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
handlestringrequiredpath

GitHub username whose public pull requests should be listed.

min 1 chars · max 39 chars

sincestringoptionalquery

Only return pull requests created on or after this date (YYYY-MM-DD).

pattern: ^\d{4}-\d{2}-\d{2}$

untilstringoptionalquery

Only return pull requests created on or before this date (YYYY-MM-DD).

pattern: ^\d{4}-\d{2}-\d{2}$

cursorstringoptionalquery

Pagination cursor from a previous response (`data.page.nextCursor`).

min 1 chars

Response fields
17

Endpoint-specific response payload.

datalookupStatus
string

Whether pull requests could be listed for this handle.

one of: found, not_found

Public pull requests authored by this user.

datapullRequests[]title
string

Pull request title.

min 1 chars

datapullRequests[]repo
string

Repository full name in `owner/repo` form.

min 1 chars

datapullRequests[]number
integernullable

GitHub pull request number when it can be read from `url`.

≥ 0

datapullRequests[]state
stringnullable

Pull request state when reported, typically `open` or `closed`. Merged pull requests are usually `closed`.

datapullRequests[]createdAt
stringnullable

When the pull request was created (ISO 8601) when available.

datapullRequests[]url
string

Canonical public URL for the pull request.

min 1 chars

Pagination state for the current page.

datapagenextCursor
stringnullable

Opaque cursor for the next page, or null when there is no next page.

datapagehasMore
boolean

Whether another page of results is available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metacached
booleanoptional

True when served from shared response cache. Credits still apply (full endpoint price); Age header may be present.

Code example

curl "https://api.socialfetch.dev/v1/github/profiles/torvalds/pull-requests" \
  -H "x-api-key: YOUR_API_KEY"

Responses

GitHub pull request listing.