GET/user/following/{username}

Check whether the authenticated user follows a person

Verifies whether the authenticated user follows a specified GitHub user account. Use username to identify the account whose follow status you want to check; the response distinguishes followed from not followed.

1 parameter
usernamestringrequired
The handle for the GitHub user account whose follow status to check.

5 status codes
204Returns no response body and indicates that the authenticated user follows the person.
304Indicates that the resource has not changed.
401Returned when authentication is required but missing or invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when access to the operation is forbidden.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the authenticated user does not follow the person.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned when authentication is required but missing or invalid. A 403 is returned when access is forbidden, and a 404 indicates that the authenticated user does not follow the person identified by username. The username path parameter identifies the GitHub user account to check.