# GitHub User Profile

Returns the public profile of a GitHub account: login, name, bio, avatar, company, location, blog, social links, hireable flag, follower and following counts, public repository and gist counts, and account creation and update dates. Requires no GitHub credential of any kind. `meta.source` says where the answer came from: `rest` is the full profile. When the GitHub API limit is spent, the profile page answers instead with `meta.source: html_profile`: login, id, name, bio, avatar, company, location, blog, public repository count and follower and following counts. Counts GitHub shows rounded (for example 36k) are listed in `meta.approximate_fields`.

- **Documentation:** [https://scrappa.co/docs/github-api/github_user](https://scrappa.co/docs/github-api/github_user)
- **API group:** GitHub API
- **Endpoint:** `GET https://scrappa.co/api/github/user`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `username` | string | Yes | GitHub account login, e.g. torvalds. Maximum 39 characters. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/github/user?username=torvalds"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "github_user",
        "username": "torvalds"
    },
    "rate_limit": {
        "limit": 60,
        "remaining": 57,
        "used": 3,
        "reset": 1791138568
    },
    "login": "torvalds",
    "id": 1024025,
    "node_id": "MDQ6VXNlcjEwMjQwMjU=",
    "avatar_url": "https://avatars.githubusercontent.com/u/1024025?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/torvalds",
    "html_url": "https://github.com/torvalds",
    "followers_url": "https://api.github.com/users/torvalds/followers",
    "following_url": "https://api.github.com/users/torvalds/following{/other_user}",
    "gists_url": "https://api.github.com/users/torvalds/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/torvalds/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/torvalds/subscriptions",
    "organizations_url": "https://api.github.com/users/torvalds/orgs",
    "repos_url": "https://api.github.com/users/torvalds/repos",
    "events_url": "https://api.github.com/users/torvalds/events{/privacy}",
    "received_events_url": "https://api.github.com/users/torvalds/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": false,
    "name": "Linus Torvalds",
    "company": "Linux Foundation",
    "blog": "",
    "location": "Portland, OR",
    "email": null,
    "hireable": null,
    "bio": null,
    "twitter_username": null,
    "public_repos": 8,
    "public_gists": 0,
    "followers": 290000,
    "following": 0,
    "created_at": "2011-09-03T15:26:22Z",
    "updated_at": "2026-09-12T09:41:07Z",
    "meta": {
        "source": "rest"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter failed validation. |
| 404 | Not Found | GitHub has no public resource at that address. For a repository this also covers a private or renamed repository, which is indistinguishable anonymously. |
| 503 | GitHub Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |
| 500 | Parser Drift | GitHub returned a response shape this parser does not recognise. The incident has been reported; retrying will return the same result. |
| 406 | Not Acceptable Upstream | GitHub has no JSON representation for this route, or rejected the request headers. Never charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
