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

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

# GitHub: User Events

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

GET `/v1/github/user-events`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `username` | string | Required | Up to 39 characters |
| `page` | integer | Optional | Any |
| `per_page` | integer | Optional | Any |

## Example request

GitHub

GET /v1/github/user-events?username=torvalds 

```
{
  "search_parameters": {
    "engine": "github_user_events",
    "username": "torvalds"
  },
  "events": [
    {
      "id": "26841860327",
      "type": "PushEvent",
      "actor": {
        "id": 1024025,
        "login": "torvalds",
        "display_login": "torvalds",
        "gravatar_id": "",
        "url": "https://api.github.com/users/torvalds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1024025?"
      },
      "repo": {
        "id": 2325298,
        "name": "torvalds/linux",
        "url": "https://api.github.com/repos/torvalds/linux"
      },
      "payload": {
        "repository_id": 2325298,
        "push_id": 49747338745,
        "ref": "refs/heads/master",
        "head": "067c5c24cef23d913b67eaaf71ae67e7169a6620",
        "before": "b3dfbde62cf1981c4638939c159dfd087b7a72e9"
      },
      "public": true,
      "created_at": "2026-11-10T17:49:11Z"
    },
    {
      "id": "26838781336",
      "type": "PushEvent",
      "actor": {
        "id": 1024025,
        "login": "torvalds",
        "display_login": "torvalds",
        "gravatar_id": "",
        "url": "https://api.github.com/users/torvalds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1024025?"
      },
      "repo": {
        "id": 2325298,
        "name": "torvalds/linux",
        "url": "https://api.github.com/repos/torvalds/linux"
      },
      "payload": {
        "repository_id": 2325298,
        "push_id": 49645359946,
        "ref": "refs/heads/master",
        "head": "b3dfbde62cf1981c4638939c159dfd087b7a72e9",
        "before": "7475ea8b58616b33c04afb976cf0fbaad9dd63fb"
      },
      "public": true,
      "created_at": "2026-11-10T00:41:27Z"
    },
    {
      "id": "26625848338",
      "type": "PushEvent",
      "actor": {
        "id": 1024025,
        "login": "torvalds",
        "display_login": "torvalds",
        "gravatar_id": "",
        "url": "https://api.github.com/users/torvalds",
        "avatar_url": "https://avatars.githubusercontent.com/u/1024025?"
      },
      "repo": {
        "id": 2325298,
        "name": "torvalds/linux",
        "url": "https://api.github.com/repos/torvalds/linux"
      },
      "payload": {
        "repository_id": 2325298,
        "push_id": 49502076555,
        "ref": "refs/heads/master",
        "head": "e0d8e8de8bcb1ef7b749033b5af5518ba8df7bec",
        "before": "8a65162514fbad21a2c58ffed65f42b27e92b163"
      },
      "public": true,
      "created_at": "2026-11-08T23:10:46Z"
    }
  ],
  "result_count": 30,
  "rate_limit": {
    "limit": 60,
    "remaining": 59,
    "used": 1,
    "reset": 1794492557
  }
}
```

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-events#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 |
| `events` | object\[\] |
| `result_count` | integer |
| `rate_limit` | object |
