Star or Unstar a GitHub Repository
PythonDeveloper ToolsPOST api.upapi.io/github-repo-star.postStar or unstar a repository as the supplied token's account. Idempotent in both directions. Bring your own GitHub token: a fine-grained PAT with the 'Starring' user permission (write) and 'Metadata' repository permission (read), or a classic PAT with 'public_repo' (broad, prefer fine-grained). The token is used for this one call, never stored; sent only to api.github.com.
Request schema
| Field | Type | Description |
|---|---|---|
reporeq | string | Repo name |
ownerreq | string | Repo owner (user or org) |
tokenreq | string | GitHub token of the account that will star. Fine-grained PAT: 'Starring' user permission (write) + 'Metadata' repository permission (read); classic PAT: 'public_repo' ('repo' for a private repository; broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com. |
action | string | star = PUT, unstar = DELETE. Both are idempotent.· default: "star" |
proxyUrl | Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.· default: null |
Response schema
| Field | Type | Description |
|---|---|---|
actionreq | string | |
statusreq | integer | GitHub's status; 204 is its success for both directions |
actedAtreq | string | |
rateLimitreq | ||
repositoryreq | string |
Try it
Try it
Repo name
Repo owner (user or org)
GitHub token of the account that will star. Fine-grained PAT: 'Starring' user permission (write) + 'Metadata' repository permission (read); classic PAT: 'public_repo' ('repo' for a private repository; broad, prefer fine-grained). Used for this one call, never stored; sent only to api.github.com.
star = PUT, unstar = 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-repo-star.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-repo-star.post \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{ "repo": "playwright", "owner": "microsoft", "token": "example", "action": "star" }'