# GitHub Trending Scraper - Repos, Star Gains & New Entries (`neverempty/github-trending-scraper`) Actor

Get GitHub trending repositories for any programming language and for today, this week or this month: rank, stars gained in the period, total stars, forks, description and language. Turn on monitoring and schedule it: each run returns only the repos that newly entered the list.

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

## Pricing

from $0.57 / 1,000 repository row returneds

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 Scraper - Repos, Star Gains & New Entries

Get the GitHub trending repositories for any programming language and for today, this week or this month - one row per repository with its rank, the stars it gained in the period, total stars, forks, description and language. Turn on monitoring and schedule it, and each run returns only the repositories that newly entered a trending list since the last run.

Built for developer-tool teams, newsletter writers, investors and devrel people who watch what developers star every day: no GitHub account, no API key, and no copy-pasting the trending page into a spreadsheet.

### Best for

- **Daily "what's hot" digests** - schedule it once a day for your languages and send the new entries to Slack, Discord, Google Sheets or a webhook.
- **Spotting rising projects early** - `starsInPeriod`, `starsPerDay` and `periodStarsPercentOfTotal` show which repositories are growing fast compared with their size.
- **Market and competitor watching** - see which new tools in your language reach the trending list this week or this month, with their descriptions.
- **Community and content ideas** - filter by the spoken language of the README (for example Chinese or Japanese) to see what each developer community stars.

### What each row contains

- **Repository** - `rank` (the position on the list, in GitHub's order), `repo` (owner/name), `owner`, `name`, `url`, `description`, `language`.
- **Stars** - `stars` (total), `forks`, `starsInPeriod` (stars gained today, this week or this month, as GitHub shows them), `period`, `starsPerDay` (the period's gain divided by its days), `periodStarsPercentOfTotal` (how much of the total came in this period).
- **Which list** - `trendingLanguage`, `trendingLanguageSlug`, `spokenLanguage`, `spokenLanguageCode`, `listUrl`.
- **Monitoring** - `change`, `isFirstCheck`, `previousCheckedAt`, `hoursSincePreviousCheck`.

Measured on 2026-11-18: the all-languages daily list had 15 repositories; number one had 9955 stars, 1403 forks and 1005 stars gained that day. The JavaScript daily list had 13, led by sveltejs/svelte with 89675 stars and 477 gained that day.

Values GitHub does not show (a repository without a description or a detected language) are `null`, never an empty string or 0.

### Monitoring mode

Turn **monitoringMode** on and schedule the Actor. It remembers which repositories were on each list, and on later runs:

- a repository that was already on the list last time is **not returned as a row**; if nothing new entered any list you get one free `no-change` row;
- a repository that entered the list since the last run comes back with `change: "new-entry"` and all its current numbers;
- a list it has never seen comes back once in full with `change: "first-check"`, so the first run sets the baseline.

`change` is `first-check` or `new-entry`; `hoursSincePreviousCheck` says how long ago the list was last read.

Lists are remembered **per language, period and spoken language**, in a store in your own account, so adding a language does not return the other lists again. **resetMonitoringState** clears them. Do not put the same list in two schedules that can run at the same time: two runs saving the same list at the same moment can overwrite each other, and a repository may come back once more on a later run.

### What it costs

- **Repository row returned** - charged for every repository row you receive. With monitoring off, that is the only charge.
- **List checked** (monitoring mode only) - **$0.50 per 1,000 checks**, one per trending list that was read and compared, whether or not anything new entered it. This pays for watching on the days when nothing changed. Lists that could not be read are not charged.

Example: 20 languages once a day = 600 checks a month = $0.30, plus the row price for the new entries.

There is no start fee. **maxReposPerList** keeps only the top N of each list, so you pay for N rows per list at most. In monitoring mode the run reads only as many lists as its maximum total charge can pay for with a check and a row each; lists beyond that are not read and not charged, and a free `budget-reached` row says how many.

### Rows that are never charged

When there is nothing to return, this Actor says why instead of returning an empty result:

- `no-results` - the page loaded and GitHub shows no trending repositories for that list right now (this happens with narrow spoken-language filters).
- `invalid-input` - GitHub does not know that language, or the text is not a language name or a trending URL. The row names the text you gave.
- `blocked` - GitHub answered with a rate limit or an empty response on every attempt.
- `unreadable` - the page could not be read. Nothing is guessed.
- `no-change` - monitoring ran and no new repository entered any list.
- `budget-reached` - the run's maximum total charge was reached; the row says how many rows or lists fit.
- `not-checked` - more than 300 lists (languages x periods) were given; the row says how many were left for another run.

### Input

| Field | Meaning |
|---|---|
| `languages` | One per line: a name as on github.com/trending (`Python`, `C#`, `Jupyter Notebook`), its URL form (`c%23`) or a trending URL (`https://github.com/trending/rust`). The same language given twice is read once. Empty = the all-languages trending list. |
| `period` | `daily` (today), `weekly`, `monthly`, or `all` for all three. |
| `spokenLanguage` | Optional: only repositories whose README is in this spoken language, as a code (`zh`, `ja`, `es`) or a name (`Chinese`). |
| `maxReposPerList` | How many repositories to keep from the top of each list (1-25, default 25). |
| `monitoringMode` / `resetMonitoringState` | Return only new entries (see above) / forget the remembered lists. |
| `useProxy` | Requests go out directly first; a proxy is used only when GitHub answers with a rate limit. |

```json
{
    "languages": ["Python", "TypeScript", "Rust", "https://github.com/trending/go"],
    "period": "daily",
    "maxReposPerList": 25,
    "monitoringMode": true
}
```

### Output

A row from the all-languages daily list on 2026-11-18:

```json
{
    "source": "github-trending",
    "status": "ok",
    "rank": 1,
    "repo": "elementalsouls/Claude-BugHunter",
    "owner": "elementalsouls",
    "name": "Claude-BugHunter",
    "url": "https://github.com/elementalsouls/Claude-BugHunter",
    "description": "A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.",
    "language": "Python",
    "stars": 9955,
    "forks": 1403,
    "starsInPeriod": 1005,
    "period": "daily",
    "starsPerDay": 1005,
    "periodStarsPercentOfTotal": 10.1,
    "trendingLanguage": "All languages",
    "trendingLanguageSlug": null,
    "spokenLanguage": null,
    "spokenLanguageCode": null,
    "listUrl": "https://github.com/trending?since=daily",
    "scrapedAt": "2026-11-18T03:00:00.000Z"
}
```

With monitoring on, each row also has `change`, `isFirstCheck`, `previousCheckedAt` and `hoursSincePreviousCheck`.

### Limits

- The data is what the public github.com/trending page shows, read without logging in. **GitHub can change it without notice**; if it does, the run returns free `unreadable` rows instead of guessing.
- GitHub shows up to 25 repositories per list and decides the order itself; this Actor keeps that order in `rank`.
- Trending developers, stargazer lists and star history are not part of the trending page and are not returned.

### More GitHub and developer tools from the same developer

- [GitHub Repo Search API - Stars, Language, Date](https://apify.com/neverempty/github-repo-search) — search all of GitHub by stars, language and date
- [Changelog to JSON - Release Notes, GitHub Releases, npm & PyPI](https://apify.com/neverempty/changelog-to-json) — release notes of any project as structured data
- [Product Name Availability Checker - Domain, npm, GitHub, PyPI](https://apify.com/neverempty/product-name-availability-checker) — check a name everywhere before you launch
- [API Docs Finder - OpenAPI/Swagger Spec, llms.txt & Docs URLs](https://apify.com/neverempty/api-docs-finder) — find the API docs and specs of any product
- [Chrome Web Store Extension Stats Tracker - Users & Ratings](https://apify.com/neverempty/chrome-extension-stats-tracker) — users and ratings of browser extensions over time

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

One language per line, written as on github.com/trending: a name (Python, C#, Jupyter Notebook), its URL form (python, c%23) or a trending URL (https://github.com/trending/rust). Each language is one trending list of up to 25 repositories. Leave it empty to read the all-languages list.

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

Which trending list to read: stars gained today, this week or this month. All three periods reads three lists per language.

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

Only repositories whose README is in this spoken language, as GitHub's own filter on the trending page: a code (en, zh, ja, es) or a name (Chinese, Japanese). Leave it empty for any spoken language.

## `maxReposPerList` (type: `integer`):

How many repositories to keep from the top of each trending list (GitHub shows up to 25). With 10, you get the top 10 of each list and pay for 10 rows.

## `monitoringMode` (type: `boolean`):

Off = every repository on each list comes back, charged per row. On = the Actor remembers which repositories were on each list, and on later runs returns only the ones that entered a list since the last run (change: new-entry). The first run returns each list once to set the baseline. **In monitoring mode every list checked costs $0.50 per 1,000 checks, new entries or not**, plus the row price for the rows returned. Example: 20 languages once a day = 600 checks a month = $0.30. The Actor reads only as many lists as the run's maximum total charge can pay for with a check and a row each. Do not put the same list in two schedules that can run at the same time.

## `resetMonitoringState` (type: `boolean`):

Clears every remembered list for this Actor, so the next monitoring run returns each list once again as a first check. This affects all your monitoring runs.

## `useProxy` (type: `boolean`):

Every request goes out directly first. If GitHub answers with a rate limit or an empty response, this switches to a proxy session and tries again, up to 3 attempts in all. With it off, that answer is returned as free 'blocked' rows and no proxy is paid for.

## Actor input object example

```json
{
  "period": "daily",
  "maxReposPerList": 25,
  "monitoringMode": false,
  "resetMonitoringState": false,
  "useProxy": true
}
```

# Actor output Schema

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

One row per repository on each GitHub trending list you asked for: its rank on the list, owner/name and link, description, main language, total stars and forks, the stars gained in the chosen period with stars per day and that gain as a percent of all its stars, and which list it came from (language, period, spoken language). In monitoring mode only repositories that newly entered a list since the last run are returned. Empty lists, unknown languages and rate limits come back as their own free rows.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/github-trending-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("neverempty/github-trending-scraper").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 '{}' |
apify call neverempty/github-trending-scraper --silent --output-dataset

```

## MCP server setup

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

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/8AVyK3tZhuQASVCQQ/builds/GABIdaBtvk8VMp0nJ/openapi.json
