# Get GitHub Trending Repositories API

> Fetch the github.com/trending page for the most-starred repos in a time window, optionally filtered by language. Pure HTTP (no browser). Returns full name, URL, description, language, total stars, stars this window, forks.

Category: [Developer Tools APIs](https://upapi.io/apis/developer-tools) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/github-trending.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 30 seconds.
- Cache: identical requests are served from cache for 600 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/github-trending.get

```bash
curl -X POST https://api.upapi.io/github-trending.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "limit": 15, "since": "daily", "language": "" }'
```

## Request parameters

- `limit` (integer)
- `since` (enum) — Trend window
- `language` (string) — Programming language slug (python, rust, typescript, go, …). Empty = any language.

## Response fields

- `repos` (array, required)
- `repos[].url` (string, required)
- `repos[].forks` (integer, required)
- `repos[].fullName` (string, required)
- `repos[].language` (string, required)
- `repos[].position` (integer, required)
- `repos[].starsToday` (integer, required)
- `repos[].totalStars` (integer, required)
- `repos[].description` (string, required)
- `since` (string, required)
- `language` (string, required)
- `fetchedAt` (string, required)
- `totalCount` (integer, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "limit": 15,
  "since": "daily",
  "language": ""
}
```

```json
{
  "repos": [
    {
      "url": "https://github.com",
      "forks": 1,
      "fullName": "example",
      "language": "en",
      "position": 1,
      "starsToday": 1,
      "totalStars": 1,
      "description": "example"
    }
  ],
  "since": "example",
  "language": "en",
  "fetchedAt": "example",
  "totalCount": 1
}
```

## Frequently asked questions

### How much does the Get GitHub Trending Repositories API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Get GitHub Trending Repositories API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Get GitHub Trending Repositories API responses cached?

Yes — identical requests are served from cache for 600 seconds, and a cache hit is not billed.

## More Developer Tools APIs

- [Get GitHub User Commit Emails](https://upapi.io/apis/developer-tools/github-user-emails)
- [Search GitHub Repositories](https://upapi.io/apis/developer-tools/github-search-repos)
- [Get GitHub User](https://upapi.io/apis/developer-tools/github-user)
- [List GitHub Issue Comments](https://upapi.io/apis/developer-tools/github-issue-comments)
- [List GitHub Repository Contributors](https://upapi.io/apis/developer-tools/github-repo-contributors)
- [List GitHub Repository Issues](https://upapi.io/apis/developer-tools/github-repo-issues)
- [Search GitHub Discussions](https://upapi.io/apis/developer-tools/github-search-discussions)
- [Search GitHub Issues](https://upapi.io/apis/developer-tools/github-search-issues)
