# React to a GitHub Issue Comment API

> Add one of GitHub's eight reactions to an issue comment as the supplied token's account, and say whether that reaction already existed. Bring your own GitHub token: a fine-grained PAT with the 'Issues' repository permission (write), or a classic PAT with 'public_repo' (broad). The token is used for this one call, never stored; sent only to api.github.com.

Category: [Developer Tools APIs](https://upapi.io/apis/developer-tools) · Last updated 2026-11-07

## How to call it

- Endpoint: `POST https://api.upapi.io/github-comment-reaction.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 30 seconds.
- Cache: none; every call runs the operation.
- Try it without writing code: https://app.upapi.io/try/github-comment-reaction.post

```bash
curl -X POST https://api.upapi.io/github-comment-reaction.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "repo": "playwright", "owner": "microsoft", "token": "example", "reaction": "+1", "commentId": 1 }'
```

## Request parameters

- `repo` (string, required) — Repo name
- `owner` (string, required) — Repo owner (user or org)
- `token` (string, required) — GitHub token of the account that will react. Fine-grained PAT: 'Issues' repository permission (write); 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.
- `proxyUrl` (string) — Optional proxy URL. Use the same one across related calls when the upstream expects a consistent IP.
- `reaction` (enum, required) — One of GitHub's eight reaction contents
- `commentId` (integer, required) — Issue-comment id (not the issue number)

## Response fields

- `author` (string, required)
- `content` (string, required)
- `rateLimit` (object, required) — The rate-limit headers GitHub returned on THIS response, surfaced so the caller
can pace itself instead of the operation sleeping on its behalf.
- `rateLimit.limit` (integer, required) — X-RateLimit-Limit: requests allowed per window
- `rateLimit.resetAt` (string, required) — X-RateLimit-Reset as an ISO-8601 UTC timestamp
- `rateLimit.resource` (string, required) — X-RateLimit-Resource: which bucket (core, search, graphql, ...)
- `rateLimit.remaining` (integer, required) — X-RateLimit-Remaining: requests left
- `rateLimit.resetEpoch` (integer, required) — X-RateLimit-Reset as unix seconds
- `reactedAt` (string, required)
- `reactionId` (integer, required)
- `alreadyExisted` (boolean, required) — GitHub answers 200 when this account had already left this reaction, and 201 when it created one. True means nothing changed.

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "repo": "playwright",
  "owner": "microsoft",
  "token": "example",
  "reaction": "+1",
  "commentId": 1
}
```

```json
{
  "author": "example",
  "content": "example",
  "rateLimit": {
    "limit": 5,
    "resetAt": "example",
    "resource": "example",
    "remaining": 1,
    "resetEpoch": 1
  },
  "reactedAt": "example",
  "reactionId": 1,
  "alreadyExisted": false
}
```

## Frequently asked questions

### How much does the React to a GitHub Issue Comment API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the React to a GitHub Issue Comment API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are React to a GitHub Issue Comment API responses cached?

No — every call runs the operation live; responses are not cached.

## More Developer Tools APIs

- [Post a GitHub Issue Comment](https://upapi.io/apis/developer-tools/github-issue-comment)
- [Star or Unstar a GitHub Repository](https://upapi.io/apis/developer-tools/github-repo-star)
- [Follow or Unfollow a GitHub User](https://upapi.io/apis/developer-tools/github-user-follow)
- [List GitHub Issue Comments](https://upapi.io/apis/developer-tools/github-issue-comments)
- [Search GitHub Discussions](https://upapi.io/apis/developer-tools/github-search-discussions)
- [Search GitHub Issues](https://upapi.io/apis/developer-tools/github-search-issues)
- [Search GitHub Repositories](https://upapi.io/apis/developer-tools/github-search-repos)
- [Search GitHub Users](https://upapi.io/apis/developer-tools/github-search-users)
