Follow or Unfollow a GitHub User
PythonDeveloper ToolsPOST api.upapi.io/github-user-follow.postFollow 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.
Request schema
| Field | Type | Description |
|---|---|---|
tokenreq | string | 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. |
action | string | follow = 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 | string | Login to follow or unfollow |
Response schema
| Field | Type | Description |
|---|---|---|
actionreq | string | |
statusreq | integer | GitHub'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.
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" }'