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

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

# GitHub: User Counts

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

GET `/v1/github/user-counts`

## 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-counts?username=github 

```
{
  "search_parameters": {
    "engine": "github_user_counts",
    "username": "github"
  },
  "members": 225,
  "repositories": 573,
  "projects": 15
}
```

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-counts#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

The response has these 4 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 |
| `members` | integer |
| `repositories` | integer |
| `projects` | integer |
