# GitHub Scraper - Trending Repos, Search, Topics & Stars (`scrolahdata/github-scraper`) Actor

GitHub scraper: GitHub trending repositories and developers, repository search, topics and repo details - stars, forks, watchers, topics, license, releases, commits, README. No token or login. From $1 per 1,000 repositories. GitHub trending scraper.

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

## Pricing

from $0.80 / 1,000 repository listeds

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 Scraper — Trending Repositories & Developers, Repository Search, Topics, Stars & Repo Details

Scrape **GitHub without a token or login**: **GitHub Trending** repositories and developers (today, this week, this month, any language), **repository search** with all GitHub qualifiers, **topic pages** and **full repository details** — stars, forks, watchers, topics, license, releases, tags, commit count, website and the README as plain text.

**$1 per 1,000 repositories** from lists, $2 per 1,000 with full details.

### What can it do?

- 🔥 **GitHub trending scraper** — rank, stars, forks, **stars gained today / this week / this month**, top contributors; filter by programming language and spoken language
- 👩‍💻 **Trending developers** — username, name and their popular repository
- 🔎 **GitHub repository search** — any query with qualifiers like `language:python stars:>1000 pushed:>2026-01-01 topic:llm`, sorted by stars, forks or recently updated (up to 1,000 results per query)
- 🏷️ **GitHub topics** — every repository of a topic (`machine-learning`, `web-scraping`, `llm` ...) by stars or recently updated
- 📦 **Repository details** — stars, watchers, forks, topics, license, releases, tags, commits, default branch, website, archived / fork / template flags, **README text**
- 📈 Schedule it daily to build a **GitHub stars history** or a feed of new trending projects

### Input

```json
{
  "trendingRepositories": true,
  "trendingLanguages": ["python", "rust", "all"],
  "trendingPeriod": "weekly",
  "searchQueries": ["llm agent language:python stars:>500"],
  "topics": ["web-scraping"],
  "repositoryUrls": ["https://github.com/apify/crawlee"],
  "fetchDetails": false,
  "maxItemsPerSource": 100
}
```

### Output

Trending repository:

```json
{
  "type": "trendingRepository",
  "rank": 1,
  "fullName": "anthropics/skills",
  "description": "Public repository for Agent Skills",
  "language": "Python",
  "stars": 196271,
  "forks": 23035,
  "starsInPeriod": 5666,
  "period": "weekly",
  "builtBy": ["rlancemartin", "klazuka"]
}
```

Repository details:

```json
{
  "type": "repository",
  "fullName": "psf/requests",
  "description": "A simple, yet elegant, HTTP library.",
  "website": "https://requests.readthedocs.io/en/latest/",
  "topics": ["http", "python", "python-requests"],
  "stars": 54716,
  "watchers": 1331,
  "forks": 10879,
  "license": "Apache-2.0",
  "releases": 19,
  "commits": 6496,
  "isArchived": false
}
```

### Use cases

- **Developer tools & AI market research** — which projects and languages are trending this week
- **Investors and scouts** — spot fast-growing open-source projects early (stars gained per period)
- **Newsletters and social posts** — daily or weekly GitHub trending digests
- **Competitor tracking** — stars, forks, releases and commits of competing open-source projects
- **Datasets for AI / RAG** — README text of the top repositories in a topic
- **Dev-rel and recruiting** — trending developers and popular repositories per language (public profile data only)

### Tips & limits

- GitHub limits anonymous search; the Actor slows down and retries automatically. Large search jobs take a few minutes.
- Search returns at most 1,000 results per query (a GitHub limit) — split by `stars:` or `created:` ranges for more.
- Only public data is scraped; no login, no emails.

### Pricing

- **Repository listed** — $1 per 1,000 repositories / developers from trending, search and topics
- **Repository details** — $2 per 1,000 repositories opened for full details

Errors and invalid input are free. Discounts for Apify Silver, Gold and higher plans.

### Integrations & API

- **API** — run it from Python, Node.js or any language with the Apify API / `apify-client`; export JSON, CSV or Excel.
- **Schedules** — run daily for a trending feed or stars history.
- **Zapier, Make, n8n, Google Sheets, Slack, webhooks** — post new trending repos to Slack or a sheet.
- **AI agents (MCP)** — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

### FAQ

**Do I need a GitHub token?** No. Everything comes from public GitHub pages.

**How fresh is the data?** Live — every run reads GitHub at that moment.

### More from ScrolahData

- [Hacker News Scraper](https://apify.com/scrolahdata/hacker-news-scraper)
- [Tech Stack Detector](https://apify.com/scrolahdata/tech-stack-detector)
- [Chrome Web Store Scraper](https://apify.com/scrolahdata/chrome-web-store-scraper)
- [Substack Scraper](https://apify.com/scrolahdata/substack-scraper)
- [Google Trends Scraper](https://apify.com/scrolahdata/google-trends-scraper)

# Actor input Schema

## `trendingRepositories` (type: `boolean`):

Scrape github.com/trending: rank, stars, forks and stars gained today / this week / this month.

## `trendingDevelopers` (type: `boolean`):

Scrape github.com/trending/developers with each developer's popular repository.

## `trendingLanguages` (type: `array`):

Programming languages for trending (python, javascript, rust, go ...). Use 'all' for all languages. Empty = all languages.

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

Date range of GitHub trending.

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

Optional, e.g. en, zh, ja — filter trending repositories by spoken language.

## `searchQueries` (type: `array`):

GitHub repository search queries. GitHub qualifiers work: language:python, stars:>1000, topic:llm, pushed:>2026-01-01, org:apify.

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

Sort order for search and topic pages (topics support stars and updated).

## `topics` (type: `array`):

GitHub topics (github.com/topics/<topic>), e.g. machine-learning, llm, react.

## `repositoryUrls` (type: `array`):

Repositories to get full details for: github.com/owner/repo or owner/repo.

## `fetchDetails` (type: `boolean`):

Open every listed repository and add watchers, license, releases, commits, website and more (charged as repository details).

## `includeReadme` (type: `boolean`):

Add the README as plain text (up to 30,000 characters) to repository details.

## `maxItemsPerSource` (type: `integer`):

Max results per trending list, search query or topic (search is limited by GitHub to 1,000).

## `maxConcurrency` (type: `integer`):

Parallel requests to GitHub.

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

Optional.

## Actor input object example

```json
{
  "trendingRepositories": false,
  "trendingDevelopers": false,
  "trendingLanguages": [
    "python",
    "all"
  ],
  "trendingPeriod": "daily",
  "searchQueries": [
    "web scraper language:python"
  ],
  "searchSort": "stars",
  "topics": [
    "web-scraping"
  ],
  "repositoryUrls": [
    "https://github.com/apify/crawlee"
  ],
  "fetchDetails": false,
  "includeReadme": false,
  "maxItemsPerSource": 100,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "trendingLanguages": [
        "python",
        "all"
    ],
    "searchQueries": [
        "web scraper language:python"
    ],
    "topics": [
        "web-scraping"
    ],
    "repositoryUrls": [
        "https://github.com/apify/crawlee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrolahdata/github-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 = {
    "trendingLanguages": [
        "python",
        "all",
    ],
    "searchQueries": ["web scraper language:python"],
    "topics": ["web-scraping"],
    "repositoryUrls": ["https://github.com/apify/crawlee"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrolahdata/github-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 '{
  "trendingLanguages": [
    "python",
    "all"
  ],
  "searchQueries": [
    "web scraper language:python"
  ],
  "topics": [
    "web-scraping"
  ],
  "repositoryUrls": [
    "https://github.com/apify/crawlee"
  ]
}' |
apify call scrolahdata/github-scraper --silent --output-dataset

```

## MCP server setup

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