GitHub user pull requests by username
scrapecreators.x.v1-github-user-pull-requestsSearches public GitHub pull requests authored by a user using GitHub's public search index.
- Price
- $0.00188/callPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-pull-requests?handle=torvaldsPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
since | string | Opcional | Only return pull requests created on or after this date. Use YYYY-MM-DD. | 2024-01-01 |
until | string | Opcional | Only return pull requests created on or before this date. Use YYYY-MM-DD. | 2024-12-31 |
cursor | número | Opcional | Cursor from the previous response. Defaults to 1. | 1 |
handle | string | Obrigatório | GitHub username/handle of the user you want pull requests for | torvalds |
- Parâmetros de consulta
sincestringOpcionalOnly return pull requests created on or after this date. Use YYYY-MM-DD.
Exemplo:
2024-01-01untilstringOpcionalOnly return pull requests created on or before this date. Use YYYY-MM-DD.
Exemplo:
2024-12-31cursornúmeroOpcionalCursor from the previous response. Defaults to 1.
Exemplo:
1handlestringObrigatórioGitHub username/handle of the user you want pull requests for
Exemplo:
torvalds
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-pull-requests?handle=torvalds' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-pull-requests?handle=torvalds",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-pull-requests?handle=torvalds", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.