# List events for the authenticated user

From **GitHub v3 REST API**.

`GET /users/{username}/events`

If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.

## Parameters

### `username`

- Location: path
- Required: true
- Type: `string`

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

### `application/json`

- Type: `array`

```json
{"items":{"$ref":"#/components/schemas/event"},"type":"array"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/users/{username}/events
```
