List social accounts for a user
GET
/users/{username}/social_accounts
Lists social media accounts for a user. This endpoint is accessible by anyone.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” username
required
string
The handle for the GitHub user account.
Query Parameters
Section titled “ Query Parameters ” per_page
integer
The number of results per page (max 100). For more information, see “Using pagination in the REST API.”
page
integer
The page number of the results to fetch. For more information, see “Using pagination in the REST API.”
Responses
Section titled “ Responses ”Response
Media type application/json
Array<object>
Social account Social media account
object
provider
required
string
url
required
string
Examples
Example default
[ { "provider": "twitter", "url": "https://twitter.com/github" }]Headers
Section titled “ Headers ” Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"