# GitHub Trending Repositories Scraper ($0.8/1K) (`tamnt67/github-trending-scraper`) Actor

GitHub trending repositories scraper: rank, repository name, owner, description, language, stars, forks, stars gained in the period and contributors. Takes periods (today, this week, this month) and programming languages. Use it to spot fast-growing open source projects.

- **URL**: https://apify.com/tamnt67/github-trending-scraper.md
- **Developed by:** [Tam Ng.](https://apify.com/tamnt67) (community)
- **Categories:** Developer tools, 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.50 / 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.
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 Repositories Scraper

Get the GitHub Trending list of repositories for today, this week or this month, for all languages or any programming language you choose, with no login and no API key, for $0.80 per 1,000 repositories on the Free plan, down to $0.50 on higher plans.

Each record has the rank, repository name and owner, link, description, language and its color, total stars, forks, stars gained in the period and the contributors shown under "Built by" on the page. The Actor reads the public github.com/trending page, so you get exactly the list GitHub shows.

### What you can do with it

- **Spot fast-growing open-source projects.** Sort by `starsInPeriod` to see which repositories are gaining stars right now.
- **Track developer tools in your market.** Follow the trending lists for the languages your users work in, such as Python, TypeScript or Rust.
- **Feed a newsletter or Slack channel.** Send the day's trending repositories to Slack, Discord or e-mail every morning.
- **Keep a history of trending projects.** Schedule a daily run and store each list to see which projects stay on top and for how long.
- **Find projects by spoken language.** Use the spoken language filter, for example `zh`, to see what is trending in another developer community.

### Output fields

Each repository on each trending list is one record in the dataset. Example values below come from a real run of the daily list for all languages.

| Field | Example |
|-------|---------|
| `rank` | 1 |
| `fullName` / `owner` / `name` | GoogleChrome/modern-web-guidance-src / GoogleChrome / modern-web-guidance-src |
| `url` | https://github.com/GoogleChrome/modern-web-guidance-src |
| `description` | Keep your coding agent up to date with the latest web best practices |
| `language` / `languageColor` | TypeScript / #3178c6 |
| `stars` / `forks` | 3429 / 214 |
| `starsInPeriod` | 739 (stars gained today, this week or this month) |
| `period` | daily (or weekly, monthly) |
| `languageFilter` | null (the list this record was first found on: the language you asked for, or null for all languages; `rank` is the position on that list) |
| `languageLists` | \["all", "python"] (every list of the same period the repository appeared on) |
| `spokenLanguageCode` | null (the spoken language filter, for example en) |
| `builtBy` | GitHub user names shown under "Built by" |
| `scrapedAt` | 2026-11-13T05:13:21.634Z |

Download results as JSON, CSV, Excel or XML, or read them through the Apify API.

### Example output

One real record from the daily list for all languages (personal GitHub user names in `builtBy` are replaced with "..." here; the Actor returns them as shown on the page). The record was saved before version 1.0; its `languageLists` value is filled in to show the new field:

```json
{
  "rank": 2,
  "fullName": "openai/codex-security",
  "owner": "openai",
  "name": "codex-security",
  "url": "https://github.com/openai/codex-security",
  "description": "OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security",
  "language": "TypeScript",
  "languageColor": "#3178c6",
  "stars": 12593,
  "forks": 984,
  "starsInPeriod": 643,
  "period": "daily",
  "languageFilter": null,
  "languageLists": ["all"],
  "spokenLanguageCode": null,
  "builtBy": ["...", "...", "dependabot", "...", "..."],
  "scrapedAt": "2026-11-13T05:13:21.635Z"
}
```

### How to use

1. Choose one or more **Periods**: `daily`, `weekly`, `monthly`.
2. List **Languages** as GitHub names them, for example `python`, `typescript`, `rust`, `c++`. Use `all` for the overall list. Optionally set a **Spoken language code** such as `en` or `zh`, and **Max repositories** for the whole run.
3. Click **Start**. Each list is saved as soon as it is read. Download the dataset as JSON, CSV or Excel, or schedule the Actor daily to build a history.

#### Example input

```json
{
  "periods": ["daily", "weekly"],
  "languages": ["all", "python", "rust"],
  "spokenLanguageCode": "",
  "maxItems": 1000,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

Every period is combined with every language, so this input reads 6 lists of up to 25 repositories each.

### Pricing and cost examples

You pay per repository saved to the dataset ("Repository" event). Platform usage and proxy traffic are included in the per-repository price. Each run also has a one-time start charge of $0.00005.

| Apify plan | Price per 1,000 repositories |
|------------|------------------------------|
| Free (default price) | $0.80 |
| Bronze | $0.70 |
| Silver | $0.60 |
| Gold, Platinum, Diamond | $0.50 |

Cost examples on the Free plan:

- 100 repositories ≈ $0.08
- 1,000 repositories ≈ $0.80
- 10,000 repositories ≈ $8.00 (≈ $5.00 on Gold and higher plans)

A daily run of two lists (for example `all` and `python`, up to 50 repositories) costs at most about $0.04, or about $1.20 a month. The Apify Free plan includes $5 of platform credit every month. If you spend it only on this Actor, that covers about 6,250 repositories per month.

You are charged only for repositories pushed to the dataset. Nothing is charged for an unknown language name (GitHub returns "not found" and the list is skipped), for a list that still fails after 4 attempts, or for a list that is empty right now. Period names other than daily, weekly and monthly are ignored. A repository that trends on several lists of the same period (for example `all` and `python`) is saved and charged once for that period. To set a hard cap, use **Max repositories** or enter a maximum total charge per run in the run options. The Actor stops as soon as either limit is reached.

### Use it via API, on a schedule, or from an AI agent

**JavaScript** (`npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('tamnt67/github-trending-scraper').call({
    periods: ['daily'],
    languages: ['all', 'python'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("tamnt67/github-trending-scraper").call(run_input={
    "periods": ["daily"],
    "languages": ["all", "python"],
})

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

**cURL** (runs the Actor and returns the repositories in one call):

```bash
curl -X POST "https://api.apify.com/v2/acts/tamnt67~github-trending-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"periods": ["daily"], "languages": ["all", "python"]}'
```

The sync endpoint waits for the run to finish. This Actor's runs are small, so it suits most uses; switch to the client libraries for very long language lists.

**Schedules:** create an Apify Schedule for this Actor or a saved task to read the trending lists every morning, then connect it to Slack, Google Sheets or a webhook.

**AI agents:** the Apify MCP server at https://mcp.apify.com lets AI assistants such as Claude or Cursor run this Actor and read its results.

### FAQ

#### How much does GitHub Trending Repositories Scraper cost?

GitHub Trending Repositories Scraper costs $0.80 per 1,000 repositories on the Free plan and $0.70, $0.60 or $0.50 per 1,000 on higher Apify plans. 100 repositories cost about $0.08 on the Free plan. The Free plan's $5 monthly credit covers about 6,250 repositories.

#### How many repositories do I get per run?

GitHub Trending Repositories Scraper returns up to 25 repositories for each combination of period and language, because that is all GitHub shows. Three periods and four languages give at most 300 records, fewer when a repository is on several language lists of the same period (it is saved once per period), capped by **Max repositories** (default 1,000).

#### How can I get more results?

Add more languages and periods. GitHub Trending Repositories Scraper cannot go beyond the 25 repositories GitHub shows per list, so for a longer history schedule it daily and keep each day's dataset.

#### Can I run it on a schedule or through the API?

Yes. GitHub Trending Repositories Scraper works with Apify Schedules for daily or weekly runs, and with the Apify API through the JavaScript and Python clients or a single cURL call. See the API section above for working examples.

#### How fresh is the data?

GitHub Trending Repositories Scraper reads the public Trending page live at the time of each run. Nothing is cached. Stars, forks and ranks are what GitHub showed at that moment, and every record has a `scrapedAt` timestamp.

#### Is it legal to scrape GitHub Trending?

GitHub Trending Repositories Scraper collects only the publicly visible Trending page, without logging in. The `builtBy` field contains public GitHub user names. You are responsible for how you use the data, including complying with GitHub's terms of service and with data protection laws such as GDPR. This is not legal advice. If you are unsure, ask a lawyer.

### Limitations

- GitHub shows at most 25 repositories per list, and sometimes fewer. One language and one period give at most 25 records.
- Numbers are what the public Trending page shows at the time of the run. GitHub decides the ranking.
- Only repositories are collected. The trending developers page is not scraped.
- An unknown language name returns no records and is noted in the log.
- A repository that appears on several lists of the same period (for example `all` and `python`) is saved and charged once for that period. `rank` and `languageFilter` come from the first list it was found on (in the order of **Languages**), and `languageLists` names all of them. The same repository on the daily and the weekly list is still two records, one per period.
- All lists of one period are read before that period's records are saved, so records appear in the dataset period by period.
- `builtBy` lists only the few contributors GitHub shows on the Trending page, which can include bot accounts.
- The spoken language filter applies to every list in the run.

### Changelog

- 1.0 (2026-11-19): a repository on both the "all" list and a language list of the same period is now saved and charged once; new `languageLists` field names every list it appeared on.

### Integrations

Works with every Apify integration: API, webhooks, Zapier, Make, Google Sheets, Slack, n8n, LangChain and the Apify MCP server.

### Support

Found a problem or missing field? Report it in the Issues tab of this Actor.

# Actor input Schema

## `periods` (type: `array`):

Time ranges to read: daily, weekly or monthly.

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

Programming languages as GitHub names them, for example python, typescript, rust or c++. Use all for the overall list.

## `spokenLanguageCode` (type: `string`):

Optional two-letter spoken language filter, for example en or zh. Leave empty for any.

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

Stop after this many records in total.

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

Proxy for the requests to GitHub. Datacenter proxy is enough.

## Actor input object example

```json
{
  "periods": [
    "daily"
  ],
  "languages": [
    "all",
    "python"
  ],
  "spokenLanguageCode": "",
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `repositories` (type: `string`):

Dataset with one record per result.

## `repositoriesCsv` (type: `string`):

The same dataset exported as CSV.

# 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 = {
    "periods": [
        "daily"
    ],
    "languages": [
        "all",
        "python"
    ],
    "maxItems": 1000,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("tamnt67/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 = {
    "periods": ["daily"],
    "languages": [
        "all",
        "python",
    ],
    "maxItems": 1000,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("tamnt67/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 '{
  "periods": [
    "daily"
  ],
  "languages": [
    "all",
    "python"
  ],
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call tamnt67/github-trending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tamnt67/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/p7vNypcuGpAbsGUVn/builds/8zE1LA17ZdIexK7zu/openapi.json
