---
title: "GitHub API: User | Perceptlayer"
description: "User from GitHub as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/github/user
---

[APIs](https://perceptlayer.com/apis) / [GitHub](https://perceptlayer.com/apis/github) / User

# GitHub: User

User from GitHub as JSON. 1 credit per successful call.

GET `/v1/github/user`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `username` | string | Required | Up to 39 characters |

## Example request

GitHub

GET /v1/github/user?username=torvalds 

```
{
  "search_parameters": {
    "engine": "github_user",
    "username": "torvalds"
  },
  "rate_limit": {
    "limit": 60,
    "remaining": 59,
    "used": 1,
    "reset": 1794492896
  },
  "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",
  "public_repos": 12,
  "public_gists": 1,
  "followers": 331696,
  "following": 0,
  "created_at": "2011-09-03T15:26:22Z",
  "updated_at": "2026-11-01T20:12:14Z",
  "meta": {
    "source": "rest"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 12 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/github?try=user#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

The response has these 31 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `search_parameters` | object |
| `rate_limit` | object |
| `login` | string |
| `id` | integer |
| `node_id` | string |
| `avatar_url` | url |
| `gravatar_id` | string |
| `url` | url |
| `html_url` | url |
| `followers_url` | url |
| `following_url` | url |
| `gists_url` | url |
| `starred_url` | url |
| `subscriptions_url` | url |
| `organizations_url` | url |
| `repos_url` | url |
| `events_url` | url |
| `received_events_url` | url |
| `type` | string |
| `user_view_type` | string |
| `site_admin` | boolean |
| `name` | string |
| `company` | string |
| `blog` | string |
| `location` | string |
| `public_repos` | integer |
| `public_gists` | integer |
| `followers` | integer |
| `following` | integer |
| `created_at` | string |
| `updated_at` | string |
