# GitHub Trending Repositories Scraper (`maximedupre/github-trending-repositories`) Actor

Get ranked repositories from GitHub Trending for a daily, weekly, or monthly period. Filter by programming language and choose a result limit. Each row includes the repository URL, description, stars, forks, period star growth, and available context.

- **URL**: https://apify.com/maximedupre/github-trending-repositories.md
- **Developed by:** [Maxime Dupré](https://apify.com/maximedupre) (community)
- **Categories:** Developer tools, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.45 / 1,000 repositories

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Repositories for Open-Source Research

Developers, maintainers, and technical researchers can use this Actor to read public GitHub Trending repositories for a daily, weekly, or monthly period. It returns ranked dataset rows with repository URLs, descriptions, languages, stars, forks, and stars gained in the selected period, so you can review open-source activity in one dataset.

**Use cases**

- Find a short list of top repositories with [**Top 10 GitHub Repositories**](https://apify.com/maximedupre/github-trending-repositories/examples/top-10-github-repositories).
- Review period-based star growth with [**GitHub Star Trend**](https://apify.com/maximedupre/github-trending-repositories/examples/github-star-trend).
- Collect a ranked open-source list with [**GitHub Trending Repositories**](https://apify.com/maximedupre/github-trending-repositories/examples/github-trending-repositories).
- Filter the list to Python projects with [**GitHub Trending Python**](https://apify.com/maximedupre/github-trending-repositories/examples/github-trending-python).
- Study a longer period of repository activity with [**GitHub Trending Monthly**](https://apify.com/maximedupre/github-trending-repositories/examples/github-trending-monthly).

#### 📊 Ranked repository data

Each eligible repository is saved as one row in source rank order. Required fields cover identity, URL, description, language, total stars, forks, selected-period star growth, and period. When GitHub exposes them, rows also include contributors, topics, license, open issues, watchers, homepage, archive state, and created and updated dates.

Use `rank` and `stars` to compare top GitHub repos by stars within the selected Trending list. The `starsGained` field shows movement during the selected period.

#### ▶️ Read a GitHub star ranking

1. Choose a daily, weekly, or monthly Trending period.
2. Add one or more programming language names, or leave the list empty for all languages.
3. Set `Maximum results` if you want a limit. Leaving it empty returns all available results until the source is exhausted.
4. Run the Actor and open the `results` link to read the dataset.

The Actor reads publicly reachable GitHub Trending data and does not need a customer-supplied GitHub credential. Use one period per run.

#### ⚙️ Input

The public input has three fields. Add one or more language names to narrow the list, or leave `Programming languages` empty to include all languages. Leave `Maximum results` empty to return all available results until the source is exhausted.

**Input fields**

| Field | Type | What it does |
| --- | --- | --- |
| `period` | Select | Chooses the GitHub Trending period: `daily`, `weekly`, or `monthly`. |
| `languages` | String array | Adds one or more GitHub programming language names. Leave it empty to include all languages. |
| `maxItems` | Integer | Sets the maximum number of repositories to return. The run stops at this number or when GitHub Trending is exhausted. Leave it empty to return all available results until the source is exhausted. |

**Input example**

This example uses the public input from a successful current-beta run with the schema's default choices:

```json
{
  "period": "daily",
  "languages": [
    "Python"
  ],
  "maxItems": 10
}
```

#### 🧾 Output

The public output has a `results` URL that opens the default dataset items view. Each dataset row has the following fields. Optional fields appear when GitHub exposes them.

**Run output**

| Field | Type | What it does |
| --- | --- | --- |
| `results` | URL | Opens the default dataset items view with the repository rows. |

**Dataset row fields**

| Field | Type | What it does |
| --- | --- | --- |
| `rank` | Integer | Repository rank in the selected GitHub Trending list. |
| `fullName` | String | Repository name with its GitHub owner, such as `octocat/Hello-World`. |
| `repositoryUrl` | URL | Canonical public GitHub URL for the repository. |
| `description` | String | Repository description from GitHub, when available. |
| `language` | String | Primary programming language from GitHub, when available. |
| `stars` | Integer | Total star count reported by GitHub. |
| `forks` | Integer | Total fork count reported by GitHub. |
| `starsGained` | Integer | Stars gained during the selected Trending period. |
| `period` | String | Trending period used for the repository result: `daily`, `weekly`, or `monthly`. |
| `contributors` | String array | GitHub contributor or builder logins shown for the repository, when available. |
| `topics` | String array | GitHub repository topics, when available. |
| `license` | String | Repository license name reported by GitHub, when available. |
| `openIssues` | Integer | Number of open issues reported by GitHub, when available. |
| `watchers` | Integer | Number of repository watchers reported by GitHub, when available. |
| `homepage` | URL | Project homepage URL reported by GitHub, when available. |
| `archived` | Boolean | Whether GitHub marks the repository as archived, when available. |
| `createdAt` | Date-time string | Repository creation date reported by GitHub, when available. |
| `updatedAt` | Date-time string | Repository update date reported by GitHub, when available. |

**Example repository row**

This complete row comes from a successful current-beta daily run. It is not shortened:

```json
{
  "rank": 1,
  "fullName": "alibaba/open-code-review",
  "repositoryUrl": "https://github.com/alibaba/open-code-review",
  "description": "Fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level comments, built-in multi-language ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.",
  "language": "Go",
  "stars": 33293,
  "forks": 2370,
  "starsGained": 3231,
  "period": "daily",
  "contributors": [
    "lizhengfeng101",
    "chethanuk",
    "wu21-web",
    "stay-foolish-forever",
    "yingjiexu2002",
    "amh1k",
    "dependabot[bot]",
    "Gongyl01",
    "MuoDoo",
    "hezheng-max",
    "5wxwxwxw5",
    "amondnet",
    "guqihao-7",
    "Linxiushen",
    "chaojixinren",
    "hyy321",
    "xyJen",
    "hanhaiqingchuan",
    "ousamabenyounes",
    "HOWILLMAKEIT",
    "MeiSiristhebest",
    "nitishagar",
    "hobostay",
    "Shaurya2k06",
    "zhouzhih",
    "Wsp030914",
    "zephyrq-z",
    "jimpablo",
    "nolanchic",
    "munsunouk",
    "zmwangx",
    "sisantaChhatoi",
    "ScarletCarpet",
    "Ritvvvik",
    "LKL-ZREO",
    "Fanzzzd",
    "aalhadxx",
    "basil-k-aji-dev",
    "hellomypastor",
    "Syt3s",
    "Victor-D",
    "wakqasahmed",
    "bailu-ZZ",
    "ckappgit",
    "dvd233",
    "dailingtao",
    "xiaodu55",
    "zhuangzhewei09",
    "AyushPandey003",
    "PreethamNoelP",
    "AlapinEnjoyer",
    "iluv7",
    "DoTuanAnh2k1",
    "eldar702",
    "revenant20",
    "FenjuFu",
    "cometkim",
    "1parado",
    "cru-Luis-Rodriguez",
    "im0xMagnus",
    "Parikalp-Bhardwaj",
    "pollychen-lab",
    "mittalpk",
    "MVS-source",
    "vjymisal0",
    "VladimirBrejcha",
    "xavierpestel-ai",
    "teddyli18000",
    "xp880906",
    "YinkaMetrics",
    "adlternative",
    "zhfeng",
    "RerankerGuo",
    "a1212a11",
    "ArminStoic",
    "atharv-sys32",
    "dongyikuan919",
    "varunsahni18",
    "Tethys0",
    "Sunil56224972",
    "StephenJarso",
    "lesbass",
    "shyim",
    "Itachi7011",
    "shaurya703",
    "SeonggwanAhn",
    "SameerAlSahab",
    "SR0725",
    "preston-56",
    "noamaanMulla-03",
    "Kakarot30",
    "Magixyne",
    "Yukibei",
    "4-1-1",
    "lidaixingchen",
    "peachest",
    "woandzym-stack",
    "zhuichen",
    "yuxuan0425",
    "yepYoung"
  ],
  "topics": [
    "agent",
    "agent-skills",
    "code-review",
    "code-review-assistant",
    "harness",
    "repository-level-context"
  ],
  "license": "Apache License 2.0",
  "openIssues": 185,
  "watchers": 33293,
  "homepage": "https://open-codereview.ai",
  "archived": false,
  "createdAt": "2026-05-18T02:16:36Z",
  "updatedAt": "2026-09-17T09:46:49Z"
}
```

#### 💳 Pricing

This Actor uses pay-per-event pricing. The primary event is charged once for each repository saved to the dataset. The current per-repository price is shown in Apify Console.

#### 🔌 Integrations

Open the `results` link after a run, or use the Apify API to read the repository rows in your workflow.

https://www.youtube.com/watch?v=bNACk1\_S\_6w\&list=PLObrtcm1Kw6MUrlLNDbK9QRg8VDJg0gOW\&index=4

#### ❓ FAQ

##### What does leaving Maximum results empty do?

It returns all available results until the source is exhausted. Set a number when you want the run to stop sooner.

##### Can I choose more than one programming language?

Yes. Add one or more language names. Leave the list empty to include all languages.

##### Which GitHub Trending periods are supported?

Daily, weekly, and monthly. A run uses one period.

##### Do I need a GitHub token?

No. The Actor reads publicly reachable GitHub Trending data and does not require a customer-supplied credential.

##### Does this create a GitHub Trending RSS feed?

No. It saves JSON dataset rows. It does not produce an RSS feed.

##### Does it track history or send alerts?

No. Each run reads the selected Trending list. It does not provide historical monitoring or alerts.

##### Can I scrape an arbitrary repository or user profile?

No. This Actor is for GitHub Trending repositories. It is not a general repository lookup or profile scraper.

##### What if GitHub does not expose optional repository details?

The required fields still describe the repository. Optional fields such as topics, license, homepage, and dates appear when available.

### 📝 Changelog

**v0.0** (17-09-2026)

- Initial release.

### 🆘 Support

For issues, questions, or feature requests, [file a ticket](https://console.apify.com/actors/maximedupre~github-trending-repositories/issues) and I'll fix or implement it in less than 24h 🫡

### 🔗 Related Actors

- [GitHub Release](https://apify.com/maximedupre/github-releases) - Review release tags and notes for repositories found in a Trending list.
- [GitHub Contributors Email Scraper](https://apify.com/maximedupre/github-contributors) - Find public contributor rankings after identifying a repository.
- [GitHub Discussions Scraper](https://apify.com/maximedupre/github-discussions) - Read public questions and answers around a repository's community.
- [GitHub Security Advisories Scraper](https://apify.com/maximedupre/github-security-advisories-scraper) - Check public advisories for packages used by a Trending repository.
- [GitHub Trending Repositories Scraper](https://apify.com/ef12/github-trending-scraper) - Compare another public GitHub Trending repository export.

**Made with ❤️ by Maxime Dupré**

# Actor input Schema

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

Choose the Trending period to read.

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

Add one or more GitHub language names. Leave this list empty to include all languages.

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

Set the maximum number of repositories to return. The run stops at this number or when GitHub Trending is exhausted. Leave this empty to return all available results until the source is exhausted.

## Actor input object example

```json
{
  "period": "daily",
  "languages": [
    "Python"
  ],
  "maxItems": 10
}
```

# Actor output Schema

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

Open the dataset with the GitHub Trending repository results.

# 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 = {
    "period": "daily",
    "languages": [
        "Python"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("maximedupre/github-trending-repositories").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 = {
    "period": "daily",
    "languages": ["Python"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("maximedupre/github-trending-repositories").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 '{
  "period": "daily",
  "languages": [
    "Python"
  ],
  "maxItems": 10
}' |
apify call maximedupre/github-trending-repositories --silent --output-dataset

```

## MCP server setup

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

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/kZjDfojGstndhFrDH/builds/wEa6J4RdF6SS6qSi7/openapi.json
