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.
- 价格
- $0.00188/call按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-github-user-repositories?handle=torvalds预览在线试用即将上线供应商文档 ↗
- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
url | 字符串 | 可选 | GitHub user URL, e.g. https://github.com/kentcdodds. | https://github.com/kentcdodds |
sort | 字符串 | 可选 | Sort by created, updated, pushed, or full_name. Defaults to updated. | updated |
type | 字符串 | 可选 | Repository type. Defaults to owner. GitHub also supports all and member. | owner |
cursor | 数字 | 可选 | Cursor from the previous response. Defaults to 1. | 1 |
handle | 字符串 | 可选 | GitHub username/handle of the user you want the repositories for | torvalds |
direction | 字符串 | 可选 | Sort direction: ascending or descending. | desc |
- 查询参数
url字符串可选GitHub user URL, e.g. https://github.com/kentcdodds.
示例:
https://github.com/kentcdoddssort字符串可选Sort by created, updated, pushed, or full_name. Defaults to updated.
示例:
updatedtype字符串可选Repository type. Defaults to owner. GitHub also supports all and member.
示例:
ownercursor数字可选Cursor from the previous response. Defaults to 1.
示例:
1handle字符串可选GitHub username/handle of the user you want the repositories for
示例:
torvaldsdirection字符串可选Sort direction: ascending or descending.
示例:
desc
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.00188/call 计费,已含服务费。