> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Repositories Trending API

> Trending GitHub repositories with rank, description, language, stars and forks. Filter by language and daily, weekly or monthly period.

`POST /v1/data/github/repositories-trending/run`

**Pricing:** $0.0015 per repositorie ($1.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**language** `string`

Programming language to filter by, e.g. python, javascript, rust. Leave empty for all languages.

**period** `string` (default: daily)

Trending today, this week or this month. Today by default.

Allowed values: `daily` (Today), `weekly` (This week), `monthly` (This month).

**spokenLanguage** `string`

Spoken language of the repositories as a two-letter code, e.g. en, zh, es. Leave empty for all.

**maxResults** `integer` (default: 25)

How many repositories to return in total. Defaults to 25 (the maximum per run); use 0 for all.

Max `25`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/github/repositories-trending/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "language": "python",
    "period": "weekly",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/github/repositories-trending/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "language": "python",
    "period": "weekly",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/github/repositories-trending/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "language": "python",
  "period": "weekly",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one repositorie, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `repository` | Repository | text |
| `url` | URL | url |
| `rank` | Rank | number |
| `description` | Description | text |
| `language` | Language | text |
| `stars` | Stars | number |
| `forks` | Forks | number |
| `starsGained` | Stars Gained | number |
| `topics` | Topics | array |
| `license` | License | text |
| `lastPushedAt` | Last Pushed At | datetime |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "github/repositories-trending",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "topics": [
        "ai",
        "ai-agents"
      ],
      "starsGained": 1527,
      "rank": 1,
      "language": "TypeScript",
      "stars": 108452,
      "description": "Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context...",
      "url": "https://github.com/thedotmack/claude-mem",
      "forks": 9512,
      "repository": "thedotmack/claude-mem",
      "license": "Apache-2.0",
      "lastPushedAt": "2026-11-01T05:21:17Z"
    }
  ]
}
```

## Related APIs

To search all repositories by keyword use [`github/repositories`](https://docs.mindcase.co/apis/github/repositories).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.