# GitHub Trending Repositories & Developer Leads Scraper (`slavako/github-trending-developer-leads`) Actor

Scrape GitHub Trending repositories and developers across all programming languages and timeframes. Extract author profiles, stars, forks, and leads. Standby MCP ready.

- **URL**: https://apify.com/slavako/github-trending-developer-leads.md
- **Developed by:** [Sviatoslav](https://apify.com/slavako) (community)
- **Categories:** Developer tools, Lead generation, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 trending records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 & Developer Leads Scraper

[![Apify](https://img.shields.io/badge/Apify-Store_Actor-FF6600?style=for-the-badge\&logo=apify\&logoColor=white)](https://apify.com/slavako/github-trending-developer-leads)
[![Zero-Cost Architecture](https://img.shields.io/badge/Architecture-Zero--Cost_HTTP-success?style=for-the-badge)](https://apify.com/slavako/github-trending-developer-leads)
[![Monetization](https://img.shields.io/badge/Monetization-Pay--Per--Event-blue?style=for-the-badge)](https://apify.com/slavako/github-trending-developer-leads)
[![Standby MCP](https://img.shields.io/badge/MCP-Standby_Server_Ready-purple?style=for-the-badge)](https://apify.com/slavako/github-trending-developer-leads)

Extract daily, weekly, and monthly **trending repositories** and **trending developers** directly from GitHub without rate limits or expensive browser overhead. Perfect for tech recruiters, venture capital deal sourcing, open-source intelligence, competitive monitoring, and AI RAG pipelines.

***

### ⚡ Why Use This Scraper?

- **No Official API Alternative:** GitHub does not provide a public REST API for `/trending` or `/trending/developers`. This actor extracts full structured data with zero token limits.
- **Ultra-Fast Zero-Cost Engine:** Built with Node.js 24 and Cheerio (sub-second HTTP requests, 128 MB RAM max allocation, zero heavy headless browsers).
- **Rich Developer Enrichment:** Automatically resolves maintainer bios, company affiliations, locations, personal websites, Twitter handles, and public emails.
- **AI Agent & MCP Standby Ready:** Features an embedded HTTP server running standby mode (`/mcp` and `/api/trending`) for instantaneous queries from Claude Desktop, Cursor, Windsurf, n8n, and Clay.
- **Pay-Per-Event (PPE) Pricing:** Pay only for what you extract with tiny micro-transactions — no costly monthly plans.

***

### 💰 Pay-Per-Event (PPE) Pricing

| Event Name | Unit Price (USD) | Description |
| :--- | :--- | :--- |
| `apify-actor-start` | **$0.003** | Fixed per-run startup fee. |
| `apify-default-dataset-item` | **$0.001** | Base charge per extracted repository or developer item. |
| `github-developer-enriched` | **$0.002** | Charged when developer profile details (bio, company, site, email) are enriched. |
| `github-readme-enriched` | **$0.001** | Charged when full raw README markdown text is fetched for AI/LLM context. |

*Free Tier Notice: Unpaid runs receive a complimentary demonstration sample of up to 15 records.*

***

### 📥 Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `String` | `"both"` | `"both"`, `"repositories"`, or `"developers"`. |
| `languages` | `Array<String>` | `[""]` | Target languages: e.g. `["typescript", "python", "rust", "go", ""]` (`""` = All). |
| `since` | `String` | `"daily"` | Timeframe: `"daily"` (today), `"weekly"` (this week), `"monthly"` (this month). |
| `maxItems` | `Integer` | `50` | Maximum total records to store in dataset (1 to 500). |
| `enrichDeveloperProfiles`| `Boolean` | `true` | Visits public profiles to extract bio, company, location, site, email. |
| `fetchReadme` | `Boolean` | `false` | Ingests raw markdown README content for LLM/RAG pipelines. |

***

### 📤 Sample Output (Repository)

```json
{
  "type": "repository",
  "repoFullName": "cursor/plugins",
  "repoUrl": "https://github.com/cursor/plugins",
  "owner": "cursor",
  "repoName": "plugins",
  "description": "Cursor plugin specification and official plugins",
  "language": "TypeScript",
  "totalStars": "17299",
  "totalForks": "1911",
  "starsGained": "314 stars today",
  "timeframe": "daily",
  "languageFilter": "all",
  "builtBy": [
    {
      "username": "cursoragent",
      "avatarUrl": "https://avatars.githubusercontent.com/u/199161495?s=40&v=4",
      "profileUrl": "https://github.com/cursoragent"
    }
  ],
  "scrapedAt": "2026-11-19T06:15:00.000Z"
}
```

### 📤 Sample Output (Developer Lead)

```json
{
  "type": "developer",
  "username": "poteto",
  "fullName": "poteto",
  "profileUrl": "https://github.com/poteto",
  "avatarUrl": "https://avatars.githubusercontent.com/u/1390709?s=96&v=4",
  "popularRepoName": "react-compiler",
  "popularRepoUrl": "https://github.com/facebook/react",
  "popularRepoDesc": "A compiler for React components and hooks.",
  "timeframe": "daily",
  "languageFilter": "typescript",
  "profileEnriched": true,
  "bio": "Software Engineer @xai-org & @react compiler core team",
  "company": "@xai-org",
  "location": "socal",
  "website": null,
  "twitter": null,
  "email": null,
  "scrapedAt": "2026-11-19T06:15:00.000Z"
}
```

***

### 🚀 Quickstart: Running via API

```bash
curl --request POST \
  --url "https://api.apify.com/v2/acts/slavako~github-trending-developer-leads/runs?token=YOUR_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "mode": "both",
    "languages": ["typescript", "python"],
    "since": "daily",
    "maxItems": 25,
    "enrichDeveloperProfiles": true
  }'
```

***

### ⚖️ Legal & Privacy

This scraper extracts strictly public data available on GitHub's publicly indexed pages (`github.com/trending` and user public profiles). It respects site performance by executing lightweight, cached GET requests with standard user-agent identification and zero authentication bypasses.

# Actor input Schema

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

Choose whether to scrape trending repositories, trending developers, or both.

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

List of programming languages to scrape (e.g., 'typescript', 'python', 'rust', 'go', 'javascript', '' for All Languages).

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

Trending timeframe: daily (today), weekly (this week), or monthly (this month).

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

Maximum total number of records (repositories + developers) to save to dataset.

## `enrichDeveloperProfiles` (type: `boolean`):

When enabled, visits developer GitHub profiles to extract public bio, company, location, website, Twitter, and email.

## `fetchReadme` (type: `boolean`):

When enabled, fetches raw README.md markdown text for each trending repository for RAG/LLM context.

## Actor input object example

```json
{
  "mode": "both",
  "languages": [
    ""
  ],
  "since": "daily",
  "maxItems": 50,
  "enrichDeveloperProfiles": true,
  "fetchReadme": false
}
```

# Actor output Schema

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

Extracted GitHub trending repositories, developer profiles, stars gained, and leads.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("slavako/github-trending-developer-leads").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("slavako/github-trending-developer-leads").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 '{}' |
apify call slavako/github-trending-developer-leads --silent --output-dataset

```

## MCP server setup

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

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/anvtU6v7mCkSF1YN8/builds/amgAuz4ByPpBkEBr4/openapi.json
