Star or Unstar a GitHub Repository

PythonDeveloper Tools
POST api.upapi.io/github-repo-star.post

Star 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.

githubstarrepowritepython
AuthAPI key
Cost1 unit
Timeout30s
CacheNone

Request schema

FieldTypeDescription
reporeq
stringRepo name
ownerreq
stringRepo owner (user or org)
tokenreq
stringGitHub 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
stringstar = 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

FieldTypeDescription
actionreq
string
statusreq
integerGitHub'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.

Sign in

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" }'

Developer tools

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