# GitHub Trending Scraper — Trending Repos & Developers (`jeffev/github-trending-scraper`) Actor

Trending GitHub repositories and developers for today, this week or this month, by programming and spoken language. Rank, stars, forks, stars gained in the period, language, description and contributors. Optional enrichment with your own GitHub token.

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

## Pricing

from $0.35 / 1,000 trending 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 Scraper — Trending Repos & Developers

Get what is **trending on GitHub** right now: the same lists as github.com/trending, as clean data.

- **Trending repositories** or **trending developers**
- **Today, this week or this month**, several periods in one run
- Any **programming language** (python, typescript, rust, go, c++, jupyter-notebook...) and **spoken language** of the README (en, zh, pt, es...)
- Each repo with **rank**, **total stars**, **forks**, **stars gained in the period**, language, description and the top **contributors**
- Each developer with name, login, avatar and their **popular repo**
- Optional **enrichment with your own GitHub token**: topics, license, homepage, created and last-push dates, open issues and watchers (official GitHub API)
- Filter by minimum stars gained, deduplicate across languages

**Who uses it:** developer-tool marketers and DevRel teams spotting rising projects, VCs and analysts tracking open-source momentum, newsletter and content creators, recruiters finding active developers, and researchers building trend datasets (schedule it daily to keep history).

### Input

Weekly trending Python and TypeScript repos:

```json
{
  "type": "repositories",
  "periods": ["weekly"],
  "languages": ["python", "typescript"]
}
```

Today's trending repos in all languages that gained 200+ stars, enriched:

```json
{
  "periods": ["daily"],
  "minStarsInPeriod": 200,
  "githubToken": "<your token>"
}
```

Trending Rust developers this month:

```json
{
  "type": "developers",
  "periods": ["monthly"],
  "languages": ["rust"]
}
```

### Output

**Repositories** (`type: "repository"`):

| Field | Description |
|---|---|
| `rank` | position in the trending list |
| `fullName`, `owner`, `name`, `url` | repository |
| `description`, `language` | as shown on GitHub |
| `stars`, `forks` | totals |
| `starsInPeriod`, `period` | stars gained today / this week / this month |
| `builtBy` | top contributors' logins |
| `topics`, `license`, `homepage`, `createdAt`, `pushedAt`, `openIssues`, `watchers`, `archived` | with a GitHub token |

**Developers** (`type: "developer"`): `rank`, `login`, `name`, `url`, `avatarUrl`, `popularRepo` (name, url, description), `period`.

### Example output

One real item from a test run (long texts and lists shortened):

```json
{
  "type": "repository",
  "rank": 2,
  "fullName": "HKUDS/CLI-Anything",
  "owner": "HKUDS",
  "name": "CLI-Anything",
  "url": "https://github.com/HKUDS/CLI-Anything",
  "description": "\"CLI-Anything: Making ALL Software Agent-Native\" -- CLI-Hub: https://clianything.cc/",
  "language": "Python",
  "stars": 63598,
  "forks": 5776,
  "starsInPeriod": 783,
  "period": "daily",
  "builtBy": [
    "yuh-yang",
    "claude",
    "AiMiDi",
    "omerarslan0",
    "hito0512"
  ],
  "languageFilter": "python",
  "spokenLanguageFilter": null
}
```

### Tips

- GitHub shows up to 25 items per list. More languages or periods = more lists in one run.
- **Schedule** a daily run and keep the datasets to build your own history of stars over time.
- The token is only used for the official API and needs no scopes. Create one at github.com/settings/tokens.

### Feedback

Found a problem or need a field? Open an issue in the **Issues** tab: every issue is read and answered. If the actor helped you, a review on the Store helps a lot.

### How much does it cost?

You pay only for results delivered, at a fixed price per item. **Apify platform usage is included** in that price, so there are no compute costs on top. Errors and items that couldn't be found are free.

| What you get | Price | Example |
|---|---|---|
| Trending repository | $0.0005 each | 1,000 trending repositories = $0.50 |
| Trending developer | $0.0005 each | 1,000 trending developers = $0.50 |

The Apify **Free plan includes $5 of monthly credit**, enough for about **10,000 trending repositories** per month at no cost. You can also set a maximum spend per run.

On paid Apify plans it gets cheaper automatically: **10% off on Starter, 20% on Scale and 30% on Business**.

# Actor input Schema

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

Trending repositories or trending developers.

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

One trending list per period.

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

As in GitHub URLs: python, typescript, rust, go, c++, c#, jupyter-notebook... Empty = all languages.

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

Repositories only: ISO 639-1 code of the README language, e.g. 'en', 'zh', 'pt', 'es'. Empty = any.

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

Repositories only: keep repos that gained at least this many stars in the period.

## `deduplicate` (type: `boolean`):

Return each repo or developer once per period, even if it trends in several of the chosen languages.

## `githubToken` (type: `string`):

Your personal access token (no scopes needed). Adds topics, license, homepage, created/pushed dates, open issues and watchers to each repo via the official GitHub API.

## Actor input object example

```json
{
  "type": "repositories",
  "periods": [
    "daily",
    "weekly"
  ],
  "languages": [
    "python",
    "typescript"
  ],
  "deduplicate": true
}
```

# Actor output Schema

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

Trending repositories (type 'repository') or developers (type 'developer').

# 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",
        "weekly"
    ],
    "languages": [
        "python",
        "typescript"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/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",
        "weekly",
    ],
    "languages": [
        "python",
        "typescript",
    ],
}

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

```

## MCP server setup

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