GitHub API endpoint
Lists the repositories currently trending on GitHub. Filter by programming `language` (such as `go` or `python`) and choose the window with `since` (`daily`, `weekly` or `monthly`). Each repository has its owner, name, URL, description, language, stars, forks and stars gained today.
/github/trendingQuery parameters:
language: optional. Filter by programming language (for example, go or python).since: optional. Trending window. Allowed values: daily, weekly, monthly.| Field | Filled in, of 9 checked | Values in the sample |
|---|---|---|
| owner | 9 | |
| repo | 9 | |
| full_name | 9 | |
| url | 9 | github.com |
| description | 9 | |
| language | 9 | |
| stars | 9 | 8,940 to 198,180, median 38,140 |
| forks | 9 | 373 to 48,484, median 3,902 |
| stars_today | 9 | 187 to 54,706, median 1,813 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| language | string | No | Programming language filter (e.g. go, python) | ||
| since | string | No | Time window Allowed values: daily, weekly, monthly. | ||
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/github/trending?language=en&since=daily" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": [
{
"owner": "torvalds",
"repo": "linux",
"full_name": "torvalds/linux",
"url": "https://github.com/torvalds/linux",
"description": "Linux kernel source tree",
"language": "C",
"stars": 180000,
"forks": 53000,
"stars_today": 412
}
]
}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 | Invalid parameters | #/definitions/app.Response |
| 503 | Upstream error | #/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/trending?language=en&since=daily" \
-H "x-api-key: $CRAWLORA_API_KEY"