# GitHub Trending Repos Scraper with Owner Details (`turboextract/github-trending-repos`) Actor

Daily, weekly or monthly GitHub trending repositories for any programming language: stars, stars gained, forks, description and contributors, plus optional topics, homepage, license and the owner's public company, website and email.

- **URL**: https://apify.com/turboextract/github-trending-repos.md
- **Developed by:** [Moses Ndambuki](https://apify.com/turboextract) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 repository delivereds

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 Repos Scraper with Stars, Topics and Owner Details

**Get GitHub's trending repositories for today, this week or this month, in any programming language: rank, total stars, stars gained, forks, description and top contributors.** Turn on details to add topics, homepage, license, issues, dates and the owner's public name, company, website, location, email and X profile.

GitHub Trending is where new developer tools break out. In one week in November 2026, the top Python repo gained 4,355 stars and Anthropic's skills repo gained 5,666. Catching those projects early is worth a lot to dev-tool companies, investors and newsletter writers.

***

### Who this is for

- **Developer-tool startups** finding fast-growing projects to integrate with or sponsor
- **VCs and scouts** tracking breakout open-source projects before they raise
- **Newsletter and content creators** writing weekly "what's trending" roundups
- **DevRel and recruiting teams** finding active maintainers in a language
- **Analysts** measuring which languages and topics are gaining momentum

***

### What you get per repository

```json
{
  "rank": 2,
  "fullName": "anthropics/skills",
  "url": "https://github.com/anthropics/skills",
  "description": "Public repository for Agent Skills",
  "language": "Python",
  "stars": 196644,
  "forks": 23060,
  "starsInPeriod": 5666,
  "period": "weekly",
  "trendingLanguage": "Python",
  "builtBy": ["contributor1", "contributor2"]
}
```

With **Include repo and owner details** each row also gets `topics`, `homepage`, `license`, `openIssues`, `createdAt`, `pushedAt`, `ownerType` and an `ownerProfile` with name, company, website, location, public email, X profile and followers.

***

### How it works

```mermaid
flowchart LR
    A[Date range and languages] --> B[GitHub Trending pages]
    B --> C[Rank, stars, stars gained, forks]
    C --> D{Optional: GitHub API details}
    D --> E[Topics, homepage, license, owner profile]
    C --> F[One row per repository]
    E --> F
```

Trending data comes from github.com/trending. Details come from the official GitHub REST API.

***

### Quick start

1. Click **Try for free**.
2. Pick **Today**, **This week** or **This month**.
3. Optional: add **Programming languages** like `Python` and `Rust`, or **Keywords** like `agent`.
4. Click **Start**. Schedule it daily to build a history of what trended.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~github-trending-repos/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "since": "weekly",
    "languages": ["Python", "TypeScript", "Rust"]
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/github-trending-repos").call(run_input={
    "since": "daily",
    "keywords": ["agent", "llm"],
    "includeDetails": True,
    "githubToken": "YOUR_GITHUB_TOKEN",
})
for repo in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(repo["rank"], repo["fullName"], repo["starsInPeriod"], repo.get("homepage"))
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `since` | daily | daily, weekly or monthly |
| `languages` | all | e.g. Python, Go, Rust |
| `spokenLanguage` | – | README language code, e.g. en, zh |
| `minStars` | 0 | Minimum total stars |
| `keywords` | – | Match name or description |
| `includeDetails` | false | Topics, homepage, license, owner profile |
| `githubToken` | – | Optional, raises GitHub's limit to 5,000 requests an hour |
| `maxResults` | 200 | Cap per run |

***

### Pricing

**$0.003 per repository delivered.** A daily run across 10 languages, about 250 repos, costs $0.75.

| Option | 1,000 trending repos |
|---|---|
| **GitHub Trending Repos** | **$3**, owner details included |
| Other trending actors on Apify | $1.15 to $30 |
| Open-source analytics platforms | Monthly subscriptions |
| Checking the trending page by hand | Every day |

***

### Use cases

- **Weekly newsletter**: top 10 repos per language with stars gained and homepage
- **Partnership pipeline**: trending projects in your ecosystem and their maintainers' websites
- **Deal flow**: repos owned by organizations with a homepage and fast star growth
- **Trend research**: which topics trend most often over a month

***

### Pairs well with

- [Y Combinator Company Leads](https://apify.com/Turboextract/yc-company-leads): YC startups with founders and LinkedIn
- [Hacker News Hiring Leads](https://apify.com/Turboextract/hn-hiring-leads): startups hiring developers this month
- [Chrome Web Store Scraper](https://apify.com/Turboextract/chrome-extension-leads): extensions with users and developer contacts

***

### FAQ

**Do I need a GitHub token?** Only for details. GitHub allows 60 anonymous API requests an hour per IP, and shared cloud IPs often use that up. A free token with no scopes gives 5,000 an hour. Trending data itself never needs a token.

**How many repos per language?** GitHub shows up to 25 trending repos per language and date range.

**Is the owner email always there?** Only when the owner made it public on their GitHub profile.

**Is it legal?** The actor reads the public trending page and the official GitHub API under its rate limits.

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/github-trending-repos
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

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

Trending today, this week or this month.

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

Optional. e.g. Python, TypeScript, Rust, Go. Empty = all languages.

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

Optional two-letter code for the README language, e.g. en, zh, es.

## `minStars` (type: `integer`):

0 = no minimum.

## `keywords` (type: `array`):

Optional. Keep repos whose name or description contains any of these, e.g. agent, llm, database.

## `includeDetails` (type: `boolean`):

Adds topics, homepage, license, issues, dates and the owner's public name, company, website, location, email and X profile from the GitHub API.

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

Only used with details. A free personal access token with no scopes raises GitHub's limit from 60 to 5,000 requests an hour.

## `maxResults` (type: `integer`):

Cap per run. GitHub shows up to 25 trending repos per language.

## Actor input object example

```json
{
  "since": "daily",
  "languages": [
    "Python",
    "TypeScript"
  ],
  "minStars": 0,
  "includeDetails": false,
  "maxResults": 200
}
```

# Actor output Schema

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

One row per trending repository with rank, stars, stars gained, forks, language and optional owner details.

# 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": [
        "Python",
        "TypeScript"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/github-trending-repos").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": [
        "Python",
        "TypeScript",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("turboextract/github-trending-repos").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": [
    "Python",
    "TypeScript"
  ]
}' |
apify call turboextract/github-trending-repos --silent --output-dataset

```

## MCP server setup

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

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/laOEtXkJjEKbmYjK3/builds/o8jtblwueEOKySdrJ/openapi.json
