GitHub user repositories by username — stars, language
scrapecreators.x.v1-github-user-repositoriesRetrieves a user's public repositories with repo metadata like description, language, stars, forks, topics, license, visibility, default branch, and timestamps.
- 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-repositories?handle=torvaldsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
url | string | Opcional | GitHub user URL, e.g. https://github.com/kentcdodds. | https://github.com/kentcdodds |
sort | string | Opcional | Sort by created, updated, pushed, or full_name. Defaults to updated. | updated |
type | string | Opcional | Repository type. Defaults to owner. GitHub also supports all and member. | owner |
cursor | número | Opcional | Cursor from the previous response. Defaults to 1. | 1 |
handle | string | Opcional | GitHub username/handle of the user you want the repositories for | torvalds |
direction | string | Opcional | Sort direction: ascending or descending. | desc |
- Parâmetros de consulta
urlstringOpcionalGitHub user URL, e.g. https://github.com/kentcdodds.
Exemplo:
https://github.com/kentcdoddssortstringOpcionalSort by created, updated, pushed, or full_name. Defaults to updated.
Exemplo:
updatedtypestringOpcionalRepository type. Defaults to owner. GitHub also supports all and member.
Exemplo:
ownercursornúmeroOpcionalCursor from the previous response. Defaults to 1.
Exemplo:
1handlestringOpcionalGitHub username/handle of the user you want the repositories for
Exemplo:
torvaldsdirectionstringOpcionalSort direction: ascending or descending.
Exemplo:
desc
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?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-repositories?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-repositories?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.