社交数据
GitHub 账号资料 API
通过 公开账号用户名 查询 GitHub 账号资料。返回字段 id、name、handle、followers、public_repos。$0.004 / 次。
GEThttps://datawevo.com/v1/github/profile
数据类型 account 平台 GitHub 接口标识 github/profile
参数示例 handle nasa
价格$0.004每次成功调用
返回单条结果统一 JSON 格式
调用出错时释放预占不自动重试
状态待启用当前网关配置
试一次改参数,预览请求预览不扣费;在 Playground 执行时使用你的余额。
示例返回
{
"request_id": "req_example",
"mode": "sandbox",
"data": [
{
"type": "account",
"platform": "github",
"id": "sample_001",
"name": "Orbital Lab",
"handle": "orbital_lab",
"followers": 12,
"public_repos": 12
}
],
"page": {
"returned": 1,
"next_cursor": null
},
"billing": {
"currency": "USD",
"units": 1,
"unit": "call",
"micro_usd": 4000
},
"elapsed_ms": 12
}curl "https://datawevo.com/v1/github/profile?handle=nasa" -H "Authorization: Bearer $DATAWEVO_KEY"
请求参数
调用示例
curl "https://datawevo.com/v1/github/profile?handle=nasa" -H "Authorization: Bearer $DATAWEVO_KEY"
const response = await fetch("https://datawevo.com/v1/github/profile?handle=nasa", {
headers: { Authorization: "Bearer " + process.env.DATAWEVO_KEY }
});
console.log(await response.json());import os, requests
response = requests.get(
"https://datawevo.com/v1/github/profile?handle=nasa",
headers={"Authorization": "Bearer " + os.environ["DATAWEVO_KEY"]},
timeout=25,
)
print(response.json())