Want to receive user name and bio when using 'Search users' API #115229
-
Select Topic AreaQuestion Bodyhttps://docs.github.com/ko/rest/search/search?apiVersion=2022-11-28#search-users https://api.github.com/search/users?q=Q { Only contains login(=mojombo) now. { Now I can get name and bio. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, you can achieve this by using the The query ($query: String = "user:ashtom") {
search(query: $query, type: USER, first: 100) {
nodes {
... on User {
bio
login
}
}
}
} {
"data": {
"search": {
"nodes": [
{
"bio": "CEO @github",
"login": "ashtom"
}
]
}
}
} Footnotes |
Beta Was this translation helpful? Give feedback.
Yes, you can achieve this by using the
GraphQL API
rather than theRest API
.The
GraphQL API
12 allows you to make a single specific request and receive exactly what you ask for.Footnotes
About the GraphQL API - GitHub Docs ↩
GitHub - ByteByteGoHq/system-design-10…