REST API endpoints for followers

Use the REST API to get information about followers of authenticated users.

About follower administration

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.

List followers of the authenticated user

GET /user/followers

Lists the people following the authenticated user.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/user/followers

Response schema (Status: 200):

Array of Simple User:

List the people the authenticated user follows

GET /user/following

Lists the people who the authenticated user follows.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

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.

Check if a person is followed by the authenticated user

GET /user/following/{username}

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/user/following/USERNAME

Response schema (Status: 204):

Follow a user

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.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X PUT \
  https://api.github.com/user/following/USERNAME

Response schema (Status: 204):

Unfollow a user

DELETE /user/following/{username}

OAuth app tokens and personal access tokens (classic) need the user:follow scope to use this endpoint.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X DELETE \
  https://api.github.com/user/following/USERNAME

Response schema (Status: 204):

List followers of a user

GET /users/{username}/followers

Lists the people following the specified user.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

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.

List the people a user follows

GET /users/{username}/following

Lists the people who the specified user follows.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

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.

Check if a user follows another user

GET /users/{username}/following/{target_user}

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/users/USERNAME/following/TARGET_USER

Response schema (Status: 204):