# Get GitHub User API

> Fetch a GitHub user or organization's public profile: name, bio, company, location, follower/repo counts, avatar, Twitter handle, hireable flag. Plus the rate-limit headers. Works without a token; pass your own for 5,000 req/h.

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-user.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 300 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/github-user.get

```bash
curl -X POST https://api.upapi.io/github-user.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "username": "torvalds" }'
```

## Request parameters

- `token` (string) — Optional GitHub token: 5,000 req/h instead of 60, and sees the email field when the profile allows it
- `proxyUrl` (string) — Optional exit to send from (direct otherwise)
- `username` (string, required) — GitHub login (user or org)

## Response fields

- `id` (integer, required)
- `bio` (string, required)
- `blog` (string, required)
- `name` (string, required)
- `type` (string, required)
- `email` (string, required)
- `login` (string, required)
- `company` (string, required)
- `htmlUrl` (string, required)
- `hireable` (boolean, required)
- `location` (string, required)
- `avatarUrl` (string, required)
- `createdAt` (string, required)
- `fetchedAt` (string, required)
- `followers` (integer, required)
- `following` (integer, 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
- `updatedAt` (string, required)
- `publicGists` (integer, required)
- `publicRepos` (integer, required)
- `twitterHandle` (string, required)

## 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
{
  "username": "torvalds"
}
```

```json
{
  "id": 1,
  "bio": "example",
  "blog": "example",
  "name": "example",
  "type": "example",
  "email": "test@example.com",
  "login": "example",
  "company": "example",
  "htmlUrl": "example",
  "hireable": false,
  "location": "example",
  "avatarUrl": "example",
  "createdAt": "example",
  "fetchedAt": "example",
  "followers": 1,
  "following": 1,
  "rateLimit": {
    "limit": 5,
    "resetAt": "example",
    "resource": "example",
    "remaining": 1,
    "resetEpoch": 1
  },
  "updatedAt": "example",
  "publicGists": 1,
  "publicRepos": 1,
  "twitterHandle": "example"
}
```

## Frequently asked questions

### How much does the Get GitHub User 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 Get GitHub User API?

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

### Are Get GitHub User API responses cached?

Yes — identical requests are served from cache for 300 seconds, and a cache hit is not billed.

## More Developer Tools APIs

- [Get GitHub User Commit Emails](https://upapi.io/apis/developer-tools/github-user-emails)
- [Follow or Unfollow a GitHub User](https://upapi.io/apis/developer-tools/github-user-follow)
- [Get GitHub Repository](https://upapi.io/apis/developer-tools/github-repo)
- [List GitHub Issue Comments](https://upapi.io/apis/developer-tools/github-issue-comments)
- [List GitHub Repository Contributors](https://upapi.io/apis/developer-tools/github-repo-contributors)
- [List GitHub Repository Issues](https://upapi.io/apis/developer-tools/github-repo-issues)
- [Post a GitHub Issue Comment](https://upapi.io/apis/developer-tools/github-issue-comment)
- [React to a GitHub Issue Comment](https://upapi.io/apis/developer-tools/github-comment-reaction)
