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

Check if a user follows another user

Check if a user follows another user

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
usernamestringrequired
The handle for the GitHub user account.
target_userstringrequired

2 status codes
204if the user follows the target user
404if the user does not follow the target user

Error handling

A 404 is returned: if the user does not follow the target user.

Was this helpful?