Use the REST API to get information about followers of authenticated users.
If a request URL does not include a {username} parameter then the response will be for the signed-in user (and you must pass authentication information with your request). Additional private information, such as whether a user has two-factor authentication enabled, is included when authenticated through OAuth with the user scope.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /user/followers
Lists the people following the authenticated user.
accept (string)application/vnd.github+json is recommended.per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
200 - OK
304 - Not modified
401 - Requires authentication
403 - Forbidden
Request:
curl -L \
-X GET \
https://api.github.com/user/followers
Response schema (Status: 200):
Array of Simple User:
name: string or nullemail: string or nulllogin: required, stringid: required, integer, format: int64node_id: required, stringavatar_url: required, string, format: urigravatar_id: required, string or nullurl: required, string, format: urihtml_url: required, string, format: urifollowers_url: required, string, format: urifollowing_url: required, stringgists_url: required, stringstarred_url: required, stringsubscriptions_url: required, string, format: uriorganizations_url: required, string, format: urirepos_url: required, string, format: urievents_url: required, stringreceived_events_url: required, string, format: uritype: required, stringsite_admin: required, booleanstarred_at: stringuser_view_type: stringGET /user/following
Lists the people who the authenticated user follows.
accept (string)application/vnd.github+json is recommended.per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
200 - OK
304 - Not modified
401 - Requires authentication
403 - Forbidden
Request:
curl -L \
-X GET \
https://api.github.com/user/following
Response schema (Status: 200):
Same response schema as List followers of the authenticated user.
GET /user/following/{username}
accept (string)application/vnd.github+json is recommended.username (string) (required)204 - if the person is followed by the authenticated user
304 - Not modified
401 - Requires authentication
403 - Forbidden
404 - if the person is not followed by the authenticated user
Request:
curl -L \
-X GET \
https://api.github.com/user/following/USERNAME
Response schema (Status: 204):
PUT /user/following/{username}
Note that you'll need to set Content-Length to zero when calling out to this endpoint. For more information, see "HTTP verbs."
OAuth app tokens and personal access tokens (classic) need the user:follow scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.username (string) (required)204 - No Content
304 - Not modified
401 - Requires authentication
403 - Forbidden
404 - Resource not found
422 - Validation failed, or the endpoint has been spammed.
Request:
curl -L \
-X PUT \
https://api.github.com/user/following/USERNAME
Response schema (Status: 204):
DELETE /user/following/{username}
OAuth app tokens and personal access tokens (classic) need the user:follow scope to use this endpoint.
accept (string)application/vnd.github+json is recommended.username (string) (required)204 - No Content
304 - Not modified
401 - Requires authentication
403 - Forbidden
404 - Resource not found
Request:
curl -L \
-X DELETE \
https://api.github.com/user/following/USERNAME
Response schema (Status: 204):
GET /users/{username}/followers
Lists the people following the specified user.
If the specified user has a private profile, this endpoint returns an empty list unless the request is authenticated as that user. A request authenticated as the specified user returns the list even if the token has no OAuth scopes.
accept (string)application/vnd.github+json is recommended.username (string) (required)
The handle for the GitHub user account.
per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
Request:
curl -L \
-X GET \
https://api.github.com/users/USERNAME/followers
Response schema (Status: 200):
Same response schema as List followers of the authenticated user.
GET /users/{username}/following
Lists the people who the specified user follows.
If the specified user has a private profile, this endpoint returns an empty list unless the request is authenticated as that user. A request authenticated as the specified user returns the list even if the token has no OAuth scopes.
accept (string)application/vnd.github+json is recommended.username (string) (required)
The handle for the GitHub user account.
per_page (integer)
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Default: 30
page (integer)
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Default: 1
Request:
curl -L \
-X GET \
https://api.github.com/users/USERNAME/following
Response schema (Status: 200):
Same response schema as List followers of the authenticated user.
GET /users/{username}/following/{target_user}
accept (string)application/vnd.github+json is recommended.username (string) (required)
The handle for the GitHub user account.
target_user (string) (required)
204 - if the user follows the target user
404 - if the user does not follow the target user
Request:
curl -L \
-X GET \
https://api.github.com/users/USERNAME/following/TARGET_USER
Response schema (Status: 204):