Follow or Unfollow a GitHub User

PythonDeveloper Tools
POST api.upapi.io/github-user-follow.post

Follow or unfollow a GitHub user as the supplied token's account. Idempotent in both directions. Bring your own GitHub token: a fine-grained PAT with the 'Followers' user permission (write), or a classic PAT with 'user:follow' (broad). The token is used for this one call, never stored; sent only to api.github.com.

githubfollowuserwritepython
AuthAPI key
Cost1 unit
Timeout30s
CacheNone

Request schema

FieldTypeDescription
tokenreq
stringGitHub token of the account that will follow. Fine-grained PAT: 'Followers' user permission (write); classic PAT: 'user:follow' (broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com.
action
stringfollow = PUT, unfollow = DELETE. Both are idempotent.· default: "follow"
proxyUrl
Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.· default: null
usernamereq
stringLogin to follow or unfollow

Response schema

FieldTypeDescription
actionreq
string
statusreq
integerGitHub's status; 204 is its success for both directions
actedAtreq
string
usernamereq
string
rateLimitreq

Try it

Try it

GitHub token of the account that will follow. Fine-grained PAT: 'Followers' user permission (write); classic PAT: 'user:follow' (broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com.

Login to follow or unfollow

follow = PUT, unfollow = DELETE. Both are idempotent.

Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.

Run this endpoint live

Jump in as a guest — no signup — and run github-user-follow.post with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/github-user-follow.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "token": "example", "action": "follow", "username": "torvalds" }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.