GitHub API
GitHub User pull requests API
List a GitHub user's public pull requests by handle (title, repository, state, creation date, and URL) with optional date filtering and pagination.
POST/v1/run/github.user_pull_requests
Requests
-
30d
Try it
Make your first request
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
"data": {
"hasMore": true,
"nextCursor": "example",
"pullRequests": [
{
"createdUtc": 12.5,
"repo": "example",
"state": "CA",
"title": "Example title",
"url": "https://example.com/page"
}
]
},
"found": true
}Response interface
interface GithubUserPullRequestsResponse {
data: {
hasMore: boolean;
nextCursor: string | null;
pullRequests: {
createdUtc: number;
repo: string;
state: string;
title: string;
url: string;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dPOST /v1/run/github.user_pull_requests
curl -X POST https://api.getanyapi.com/v1/run/github.user_pull_requests \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"torvalds"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| handle | string | "torvalds"GitHub username. |
| cursor | string | Pagination cursor from a previous response (page number, defaults to 1). |
| since | string | Only include pull requests created on or after this date (YYYY-MM-DD). |
| until | string | Only include pull requests created on or before this date (YYYY-MM-DD). |
| Response | ||
| data | object | The pull request listing record, or null when not found. |
| data.hasMore | boolean | Whether more pull requests are available beyond this page. |
| data.nextCursor | string | Opaque cursor for the next page of pull requests, or null when this lane has no more. Pass it back as cursor to continue. |
| data.pullRequests | object[] | The user's public pull requests for this page. Populated whenever the provider has data for the entity. |
| data.pullRequests[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.pullRequests[].repo | string | Repository the pull request targets, in owner/name form. Populated whenever the provider has data for the entity. |
| data.pullRequests[].state | string | Pull request state (e.g. open, closed, merged). Populated whenever the provider has data for the entity. |
| data.pullRequests[].title | string | Pull request title. Populated whenever the provider has data for the entity. |
| data.pullRequests[].url | string | Canonical URL of the pull request. Populated whenever the provider has data for the entity. |
| found | boolean | Whether pull request data was found for the requested handle. |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the GitHub User pull requests API
The AnyAPI GitHub User pull requests API returns GitHub user pull requests data as normalized JSON from one POST call to /v1/run/github.user_pull_requests. List a GitHub user's public pull requests by handle (title, repository, state, creation date, and URL) with optional date filtering and pagination. AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum.
It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.
List a GitHub user's public pull requests by handle (title, repository, state, creation date, and URL) with optional date filtering and pagination. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.
More to call