# GitHub Trending Repos Scraper (`mrdoe/github-trending-repos-scraper`) Actor

Reads GitHub Trending and returns trending repositories by language and time window - name, description, language, total stars, forks, and stars gained today.

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

## Pricing

from $1.90 / 1,000 results

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 Scraper hero](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/github-trending-repos-scraper--hero.png)

## GitHub Trending Repos Scraper (Apify Actor)

### What does GitHub Trending Repos Scraper do?

GitHub Trending Repos Scraper reads [GitHub's](https://github.com/) public Trending page and returns every trending repository as structured data - name, description, language, total stars, forks, and stars gained today. Pick any language (or leave it blank for all languages) and a time window - today, this week, or this month. No account or login needed.

Try it with the default languages and see real results in seconds. Run it on a schedule to track what's gaining traction in your stack, or call it from your own app through the Apify API.

### Why use GitHub Trending Repos Scraper?

- **Tech scouting and sourcing.** Spot fast-growing open-source projects in a language or framework you care about, before they're everywhere.
- **Recruiting and talent sourcing.** Find active, high-signal open-source contributors and maintainers.
- **Market and competitive research.** Track which tools and frameworks are gaining real developer attention week over week.
- **Content and newsletter research.** Build a "what's trending" roundup without manually checking the site every day.

### How to use GitHub Trending Repos Scraper

![GitHub Trending Repos Scraper step-by-step: input, read, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/github-trending-repos-scraper--how-it-works.png)

1. Click **Try for free** (or **Run** if you've already added it).
2. Optionally set one or more **Languages** (e.g. "python", "rust") - leave empty for all languages combined.
3. Pick a **Time window**: today, this week, or this month.
4. Click **Start** and open the **Output** tab once it finishes.

### Input

![GitHub Trending Repos Scraper input options](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/github-trending-repos-scraper--input.png)

| Field | Type | Default | Notes |
|---|---|---|---|
| `languages` | array | `["javascript", "python"]` | Leave empty for all-languages trending. |
| `since` | select | `daily` | `daily`, `weekly`, or `monthly`. |
| `maxItems` | integer | `25` | Max repos per language (not shared across languages). |
| `proxyConfiguration` | object | off | Optional, not required for typical volumes. |

### Output

![GitHub Trending Repos Scraper dataset output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/github-trending-repos-scraper--output.png)

One dataset row per repo:

```json
{
    "owner": "TauricResearch",
    "name": "TradingAgents",
    "fullName": "TauricResearch/TradingAgents",
    "description": "TradingAgents: Multi-Agents LLM Financial Trading Framework",
    "language": "Python",
    "totalStars": 115291,
    "totalForks": 18420,
    "starsInPeriod": 1376,
    "url": "https://github.com/TauricResearch/TradingAgents",
    "since": "daily",
    "scrapedAt": "2026-10-26T12:00:00.000Z"
}
```

You can download the result in various formats such as JSON, HTML, CSV, or
Excel.

#### Data fields

![GitHub Trending Repos Scraper output field map](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/github-trending-repos-scraper--fields.png)

| Field | Description |
|---|---|
| `owner`, `name`, `fullName` | The repository's owner, name, and `owner/name` combined. |
| `description` | The repo's own description, as shown on GitHub. |
| `language` | Primary language shown on the trending listing. |
| `totalStars`, `totalForks` | All-time star and fork counts. |
| `starsInPeriod` | Stars gained within the selected time window - the actual "trending" signal. |
| `url` | Link to the repository on GitHub. |
| `since` | Which time window this row was ranked under. |

### Pricing

Each run charges a small start fee plus one charge per repo returned - you
pay for the result, not for how the page was read.

### Tips and disclaimers

This Actor only reads GitHub's own public Trending page - it does not
require an account or bypass any access controls. A language only returns
results if GitHub has a dedicated trending page for it; obscure or very
niche language names may return nothing. For support or a custom version
of this Actor, use the Issues tab.

# Actor input Schema

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

Programming languages to get trending repos for, e.g. "javascript", "python", "go". Leave empty for trending repos across all languages.

## `since` (type: `string`):

How far back "trending" looks.

## `maxItems` (type: `integer`):

Stop once this many repos have been returned for a given language (or for "all languages" if none is set). Default 25, so a default run stays small and cheap.

## `proxyConfiguration` (type: `object`):

Optional. GitHub's Trending page is public and unauthenticated, so a proxy isn't required for typical volumes.

## Actor input object example

```json
{
  "languages": [
    "javascript",
    "python"
  ],
  "since": "daily",
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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": [
        "javascript",
        "python"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/github-trending-repos-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 = {
    "languages": [
        "javascript",
        "python",
    ],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/github-trending-repos-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 '{
  "languages": [
    "javascript",
    "python"
  ],
  "maxItems": 25
}' |
apify call mrdoe/github-trending-repos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/github-trending-repos-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/5fyMXdghpOvaq6OVM/builds/dYvu8FurcdqAnbsKt/openapi.json
