# GitHub Trending Repos Scraper: Stars & Languages (`hydrocore/github-trending-repos`) Actor

GitHub trending repositories per programming language and period (today, this week, this month), with stars gained, total stars, forks, contributors, description and links. Filter by keywords, spoken language and minimum stars; monitor mode returns only repos new to trending since your last run.

- **URL**: https://apify.com/hydrocore/github-trending-repos.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Developer tools, AI, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 repository saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GitHub Trending Repos: Daily, Weekly & Monthly Stars by Language

Get **GitHub trending repositories** for any **programming language** and **period** (today, this week, this month) as clean rows: **rank**, **stars gained in the period**, stars per day, **total stars**, **forks**, language, description, **top contributors**, Sponsors button and links. Filter by **keywords**, **spoken language** and **minimum stars gained**, sort by momentum, and switch on **monitor mode** to get only the repos that are **new to trending since your last run**. Reads the public github.com/trending pages. No login, no GitHub token.

### ✅ What you get

- Rank per language and period
- Stars gained today / this week / this month, stars per day
- Total stars and forks
- Language, description, owner, contributors shown, Sponsors button
- Spoken-language filter (zh, ja, es ...)
- Keyword and minimum-stars filters
- Monitor mode: only repos new since the last run
- summaryText sentence per repo, plus a run summary

### 🏆 Why this Actor

- **Several languages in one run, deduplicated:** a repo trending in "all" and "python" is saved once.
- **Momentum fields:** stars gained in the period plus stars per day, so daily, weekly and monthly lists compare fairly.
- **Monitor mode done right:** already-seen repos are removed before filters and the cap, so each scheduled run returns only new entries and they are never charged twice.
- **Keyword and star filters before billing:** keep only "mcp", "agent" or "llm" repos with real traction; filtered repos are free.
- **No token, no rate-limit pain:** one page request per language, so runs take seconds.

### 💡 Use cases

- Developer newsletters and Slack/Discord bots: post the new trending repos every morning
- Investors and scouts: spot fast-rising open-source projects and AI tools early
- DevRel and recruiting: find active maintainers and contributors in a language
- AI agents: answer "what is trending in Rust this week?" in one call
- Market research: track which AI agent, MCP and LLM projects gain stars

### 🚀 How to use

1. Pick **languages** (or all) and the **period**.
2. Optional: keywords, minimum stars gained, spoken language, sort, and monitor mode for scheduled runs.
3. Run or schedule it, then open **Overview**, **Momentum** or **Owners & contributors**, or call it from an agent via the API or MCP.

### ⚙️ Input

| Field | What it does |
|---|---|
| `languages` | GitHub language names, one per line; empty or "all" = all languages. Prefilled with all and python. |
| `period` | daily (default), weekly or monthly. |
| `spokenLanguage` | Optional two-letter code (zh, ja, es ...). |
| `keywords` | Keep repos whose name or description contains one of them. |
| `minStarsInPeriod` | Minimum stars gained in the period. |
| `sortBy` | rank (default), starsInPeriod, totalStars. |
| `maxResults` | Cap on saved repos, default 50. |
| `onlyNewSinceLastRun` | Monitor mode (default false). |
| `monitorKey` | Optional monitor name. |

Example input:

```json
{
  "languages": [
    "all",
    "typescript",
    "rust"
  ],
  "period": "weekly",
  "keywords": [
    "agent",
    "mcp",
    "llm"
  ],
  "sortBy": "starsInPeriod",
  "maxResults": 20,
  "onlyNewSinceLastRun": true
}
```

### ⬆️ Output

One row per repository. Trending pages that fail or list nothing, and monitor runs with nothing new, get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 23 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `rank` | integer | 2 | Position on the GitHub trending page for that language and period (1 = top). |
| `repoFullName` | string | "mvanhorn/last30days-skill" | owner/name. |
| `starsInPeriod` | integer | 772 | Stars gained today, this week or this month (see period). |
| `starCount` | integer | 68926 | Total stars at the time of the run. |
| `forkCount` | integer | 6144 | Total forks. |
| `language` | string | "Python" | Main programming language shown by GitHub. |
| `description` | string | "AI agent skill that researches any topic across Reddit, X, … | Repository description. |
| `url` | string | "https://github.com/mvanhorn/last30days-skill" | https://github.com/owner/name. |

All 23 fields (in order): `recordType`, `rank`, `repoFullName`, `description`, `language`, `starsInPeriod`, `starsPerDay`, `starCount`, `forkCount`, `period`, `owner`, `repoName`, `builtBy`, `builtByCount`, `isSponsorable`, `repositoryId`, `url`, `trendingLanguage`, `spokenLanguage`, `isNewSinceLastRun`, `summaryText`, `trendingUrl`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "repo",
  "rank": 2,
  "repoFullName": "mvanhorn/last30days-skill",
  "description": "AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary",
  "language": "Python",
  "starsInPeriod": 772,
  "starsPerDay": 772,
  "starCount": 68926,
  "forkCount": 6144,
  "period": "daily",
  "owner": "mvanhorn",
  "repoName": "last30days-skill",
  "builtBy": [
    "mvanhorn",
    "tmchow",
    "claude",
    "iliaal"
  ],
  "builtByCount": 4,
  "isSponsorable": false,
  "repositoryId": "1140843380",
  "url": "https://github.com/mvanhorn/last30days-skill",
  "trendingLanguage": null,
  "spokenLanguage": null,
  "isNewSinceLastRun": null,
  "summaryText": "mvanhorn/last30days-skill is #2 on GitHub trending (daily): +772 stars today, 68,926 stars total, Python. AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary",
  "trendingUrl": "https://github.com/trending?since=daily",
  "scrapedAt": "2026-11-17T21:19:08.345Z"
}
```

Views: **Overview**, **Momentum**, **Owners & contributors**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts pages requested and failed, repos listed, duplicates, already seen, filtered, over the cap and saved, plus the languages, period, sort and monitor state.

### 💰 Pricing

Competitive pricing, pay per result: **$0.001 per repository saved** on the Free plan, less on higher plans, plus the $0.0005 Actor start. The default run (all + python, about 25-40 repos after dedupe) costs about $0.03; a daily monitor that returns 10 new repos costs about $0.0105 per run. Duplicates, already-seen repos, filtered repos and failed pages are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| Repository saved | One trending repository saved (rank, stars gained, total stars, forks, language, contributors, description, links). Duplicates, repos already seen by the monitor, filtered repos and failed pages are free. | $0.001 | $0.0009 | $0.00085 | $0.0008 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

From the public GitHub trending pages (github.com/trending), the same lists you see in a browser, one page per language and period.

**How many repos does a language return?**

GitHub lists up to 25 repositories per trending page; smaller languages often list fewer. Add more languages to get more rows.

**What does stars gained mean?**

The number GitHub shows next to each repo: stars gained today, this week or this month, depending on the period. starsPerDay divides it by 1, 7 or 30.

**How does monitor mode work?**

The first run saves the current list and remembers every repo it saw. Later runs with the same monitor name skip those repos before any filter or cap, so you only get (and pay for) new entries. Use different monitor names for different lists.

**Are language names case-sensitive?**

No. Python and python are the same list and are requested once. Use GitHub's names, for example c++, c#, jupyter notebook.

**Can I filter by topic?**

Use keywords: a repo is kept when its name or description contains one of them.

**Do I need a GitHub token?**

No. Trending pages are public and the Actor makes one request per language.

**Why do contributors show at most five people?**

GitHub shows up to five "Built by" avatars on the trending page; that is what builtBy contains.

**What is charged?**

One charge per saved repository. Duplicates, repos already seen in monitor mode, filtered repos and failed pages are free.

**Is it good for AI agents?**

Yes. Small input, flat rows with stable keys, and a summaryText sentence per repo that can go straight into a digest or a chat answer.

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-17): first release.

# Actor input Schema

## `languages` (type: `array`):

One per line, as GitHub names them (python, typescript, rust, go, c++, jupyter notebook ...). Empty or "all" = the all-languages trending page. Each language is one page of up to 25 repos.

## `period` (type: `string`):

daily (default), weekly or monthly; stars gained are counted over this period.

## `spokenLanguage` (type: `string`):

Optional two-letter code (zh, ja, es, de, ko ...) to list repos written in that language.

## `keywords` (type: `array`):

Keep only repos whose name or description contains one of these words (for example mcp, agent, llm). Empty = keep all. Filtered repos are free.

## `minStarsInPeriod` (type: `integer`):

Keep repos that gained at least this many stars in the period. Filtered repos are free.

## `sortBy` (type: `string`):

rank (default: trending order per language), starsInPeriod or totalStars.

## `maxResults` (type: `integer`):

Cap after dedupe, filters and sort (default 50).

## `onlyNewSinceLastRun` (type: `boolean`):

Monitor mode: skip repos that this monitor already returned. The first run saves the current list and remembers everything listed (default false).

## `monitorKey` (type: `string`):

Optional name to keep separate monitors (default: period + spoken language + languages).

## Actor input object example

```json
{
  "languages": [
    "all",
    "python"
  ],
  "period": "daily",
  "sortBy": "rank",
  "maxResults": 50,
  "onlyNewSinceLastRun": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Rank, repo, stars gained, total stars, forks, language and link.

## `momentum` (type: `string`):

Stars gained, stars per day, totals and the list it trended on.

## `people` (type: `string`):

Owner, contributors shown and Sponsors button (outreach).

## `results` (type: `string`):

Every field for each row.

## `summary` (type: `string`):

Run summary: pages requested and failed, repos listed, duplicates, already seen, filtered, over the cap, saved and status rows, plus the monitor state.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "languages": [
        "all",
        "python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/github-trending-repos").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "languages": [
        "all",
        "python",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/github-trending-repos").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "languages": [
    "all",
    "python"
  ]
}' |
apify call hydrocore/github-trending-repos --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hydrocore/github-trending-repos"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OvbvgaEiW99MbhnnK/builds/lHiUhZA8LIA54s3Z5/openapi.json
