Rest 是否可以使用指定的属性扩展GitHub API搜索结果?
我正在进行用户搜索,但GitHub的结果并不包含我需要的所有信息 例如,在使用请求搜索位于纽约的用户时:Rest 是否可以使用指定的属性扩展GitHub API搜索结果?,rest,github,github-api,Rest,Github,Github Api,我正在进行用户搜索,但GitHub的结果并不包含我需要的所有信息 例如,在使用请求搜索位于纽约的用户时: GEThttps://api.github.com/search/users?q=location:“纽约” 我得到了如下回复: { "total_count": 58317, "incomplete_results": false, "items": [ { "login": "ry", "id": 80, "node_id": "M
GEThttps://api.github.com/search/users?q=location:“纽约”
我得到了如下回复:
{
"total_count": 58317,
"incomplete_results": false,
"items": [
{
"login": "ry",
"id": 80,
"node_id": "MDQ6VXNlcjgw",
"avatar_url": "https://avatars1.githubusercontent.com/u/80?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ry",
"html_url": "https://github.com/ry",
"followers_url": "https://api.github.com/users/ry/followers",
"following_url": "https://api.github.com/users/ry/following{/other_user}",
"gists_url": "https://api.github.com/users/ry/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ry/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ry/subscriptions",
"organizations_url": "https://api.github.com/users/ry/orgs",
"repos_url": "https://api.github.com/users/ry/repos",
"events_url": "https://api.github.com/users/ry/events{/privacy}",
"received_events_url": "https://api.github.com/users/ry/received_events",
"type": "User",
"site_admin": false,
"score": 1.0
},
...
]
}
我想找回public\u repos
和followers
的计数
发送用户查询时,此信息可用:
GEThttps://api.github.com/users/{login}
是否有方法使用指定属性扩展搜索结果?您可以使用以下请求:
{
搜索(查询:“位置:\“纽约\”,类型:用户,第一个:100){
用户数
边缘{
节点{
…基于用户{
登录
追随者{
总数
}
存储库(隐私:公共){
总数
}
}
}
}
}
}
{
...
"public_repos": 1331,
"followers": 262,
...
}