API para GitHub: Pull requests do usuário
Liste os pull requests públicos de um usuário do GitHub pelo nome de usuário (título, repositório, estado, data de criação e URL), com filtro opcional por data e paginação.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"hasMore": true,
"nextCursor": "example",
"pullRequests": [
{
"createdUtc": 12.5,
"repo": "example",
"state": "CA",
"title": "Example title",
"url": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface GithubUserPullRequestsResponse {
data: {
hasMore: boolean;
nextCursor: string | null;
pullRequests: {
createdUtc: number;
repo: string;
state: string;
title: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -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"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| handle | string | "torvalds"Nome de usuário no GitHub. |
| cursor | string | Cursor de paginação de uma resposta anterior (número da página, padrão 1). |
| since | string | Inclui só pull requests criados nesta data ou depois (YYYY-MM-DD). |
| until | string | Inclui só pull requests criados nesta data ou antes (YYYY-MM-DD). |
| Resposta | ||
| 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. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Pull requests do usuário da API para GitHub
O endpoint Pull requests do usuário da AnyAPI para GitHub retorna dados de GitHub em JSON normalizado com uma chamada POST para /v1/run/github.user_pull_requests. Liste os pull requests públicos de um usuário do GitHub pelo nome de usuário (título, repositório, estado, data de criação e URL), com filtro opcional por data e paginação. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal.