GitHub API endpoint
Lists a GitHub user's recent public events, identified by the required `username`. Page with `page` and `per_page` (max 100). Each event has its id, event type such as `PushEvent`, repository name, timestamp and public flag.
/github/user/{username}/eventsReturns a user's recent public events with an event type, repo name, and timestamp.
Path parameters:
username: required. GitHub username.Query parameters:
page: optional. Page number (integer).per_page: optional. Results per page (integer, max 100).| Field | Filled in, of 20 checked | Values in the sample |
|---|---|---|
| id | 20 | |
| type | 20 | |
| repo_name | 20 | |
| created_at | 20 | 2026-10-05 to 2026-10-12 |
| public | 20 | true in 20 of 20 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| username (path) | string | Yes | GitHub username | torvalds | |
| page | integer | No | Page number | ||
| per_page | integer | No | Results per page (max 100) | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/github/user/torvalds/events?page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": [
{
"id": "48291038472",
"type": "PushEvent",
"repo_name": "torvalds/linux",
"created_at": "2026-06-21T09:14:55Z",
"public": true
}
]
}Request schema
No body schema
Response schema
#/definitions/app.Response
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | Code is the HTTP status code or a custom code used to indicate the result of the request @example 200 | |||
| data | unknown | No | Data is the response data (can be any object or null) @example {"id": 1, "name": "John Doe"} | |||
| msg | unknown | No | Msg is the message that describes the result of the request @example "Request successful" |
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid parameters | #/definitions/app.Response |
| 503 | Upstream error or rate limit | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/github/user/torvalds/events?page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"