GitHub Trending Scraper
Pricing
from $0.60 / 1,000 repo extracteds
GitHub Trending Scraper
Scrape GitHub Trending repositories by language and time range: today, this week, or this month. Extracts repo names, star counts, forks, star gains, and top contributors. Great for dev trend tracking, tech newsletters, and investment research. Export to JSON, CSV, or Excel.
Pricing
from $0.60 / 1,000 repo extracteds
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
1
Bookmarked
170
Total users
52
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Scrape trending repositories from GitHub Trending for one or many programming languages in a single run. Get stars, forks, language, description, topics, license, last-updated date, star growth metrics, and full README content for the hottest open-source projects — with built-in AI/ML filtering.
What does GitHub Trending Scraper do?
GitHub Trending Scraper extracts data from GitHub's trending repositories page and enriches each result with GitHub API data. Beyond the basic trending page data (stars, forks, language, description), it fetches topics, license, last-updated date, and optionally the full README markdown for each repository.
Key capabilities:
- 🔥 Scrape trending repos by language, time range (daily/weekly/monthly), and spoken language
- 🗂️ Many languages in one run — e.g.
python,typescript,rustandgotogether, each row labelled with its list - ✅ Full metadata without a token — when GitHub rate-limits anonymous API calls, the Actor switches to fresh proxy sessions so topics, license, last push and README stay filled
- ⚡ Server API — one HTTP request returns one trending list, for apps and AI agents that need an instant answer
- 🤖 Filter for AI/ML repos only — built-in classifier covering LLMs, deep learning, NLP, computer vision, and more
- 🏷️ Filter by GitHub topics — e.g., only repos tagged
llm,transformers,pytorch - 📄 Extract full README content — ideal for training datasets and documentation corpora
- 📈 Star growth metrics — calculate percentage growth (stars gained vs. prior baseline)
- 🔐 License detection — MIT, Apache-2.0, GPL, and others
Who is it for?
- 🤖 AI/ML researchers — building curated datasets of trending ML repos with README content for training data, benchmarks, or competitive analysis
- 📊 Technology analysts — tracking programming language and framework popularity trends with rich metadata
- 🧑💻 Software developers — discovering trending repositories and emerging open-source tools in their stack
- 📝 Developer advocates and newsletter writers — curating weekly trending repos with descriptions and topics
- 🏢 Engineering managers and CTOs — scouting promising open-source projects for team adoption
- 💹 Venture capitalists and investors — identifying hot open-source projects gaining traction
Why scrape GitHub Trending?
GitHub Trending is the go-to source for discovering popular and rising open-source projects, updated continuously to reflect what the developer community is actively starring.
Key reasons to scrape it:
- AI/ML landscape monitoring — instantly identify trending LLMs, fine-tuning tools, agentic frameworks, and AI infrastructure
- Training data collection — pair README content (docs, code examples, problem statements) with structured metadata for language model training
- Developer tools discovery — find new libraries and frameworks gaining traction before mainstream adoption
- Competitive intelligence — track trending projects in your tech stack over time
- Investment research — spot emerging technologies with accelerating star growth
- Newsletter content curation — automate weekly trending repo digests with rich metadata
Data extracted
| Field | Type | Description |
|---|---|---|
rank | number | Position within its trending list (after filters) |
owner | string | Repository owner/organization |
name | string | Repository name |
fullName | string | Full name (owner/name) |
url | string | Repository URL |
description | string | Repository description |
language | string | Primary programming language |
stars | number | Total star count |
forks | number | Total fork count |
starsToday | number | Stars gained in the selected period |
starsGrowthPercent | number | Percentage growth (starsToday / prior stars × 100) |
topics | array | GitHub topic tags (e.g., ["llm", "transformers", "pytorch"]) |
license | string | SPDX license identifier (e.g., MIT, Apache-2.0) |
lastUpdated | string | ISO timestamp of last push |
readmeContent | string | Full README markdown (when includeReadme: true) |
builtBy | array | Top contributors (username + avatar URL) |
trendingLanguage | string | Trending list the row came from (python, rust, … or all) |
since | string | Trending period of that list (daily, weekly, monthly) |
scrapedAt | string | ISO timestamp of extraction |
How to scrape GitHub Trending
- Go to GitHub Trending Scraper on Apify Store
- Add one or more programming languages (e.g.,
python,typescript), or leave empty for all languages - Choose a time range (today, this week, or this month)
- Enable AI/ML repos only to filter for machine learning and AI repositories
- Enable Include README to extract full documentation for training data use cases
- Click Start and wait for results
- Download data as JSON, CSV, or Excel
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
languages | array | [] | Programming languages, one trending list each, up to 20 (e.g., ["python", "rust", "c++"]) |
language | string | "" | Single language, kept for existing integrations; added to languages |
since | string | "daily" | Time range: daily, weekly, or monthly |
spokenLanguageCode | string | "" | Spoken language code (e.g., "en", "zh") |
aiOnly | boolean | false | Filter to AI/ML repos only |
filterTopics | array | [] | Only return repos with at least one of these topic tags |
includeReadme | boolean | false | Fetch full README markdown for each repo |
maxRepos | integer | 0 | Max repos per trending list (0 = all GitHub lists, at most 25 per list) |
githubToken | string | — | Optional encrypted GitHub token; makes large or frequent runs faster |
Input example — several languages in one run
{"languages": ["python", "typescript", "rust", "go"],"since": "weekly","maxRepos": 10}
Input example — AI/ML repos with READMEs
{"language": "python","since": "weekly","aiOnly": true,"includeReadme": true,"maxRepos": 10,"githubToken": "<YOUR_GITHUB_TOKEN>"}
Input example — LLM repos this month
{"since": "monthly","filterTopics": ["llm", "large-language-model", "transformers"],"includeReadme": false}
Input example — Standard trending (all repos)
{"language": "python","since": "daily"}
Output example
{"rank": 1,"owner": "Blaizzy","name": "mlx-vlm","fullName": "Blaizzy/mlx-vlm","url": "https://github.com/Blaizzy/mlx-vlm","description": "MLX-VLM is a package for inference and fine-tuning of Vision Language Models (VLMs) on your Mac using MLX.","language": "Python","stars": 3747,"forks": 410,"starsToday": 343,"starsGrowthPercent": 10.1,"topics": ["apple-silicon", "llm", "local-ai", "mlx", "vision-language-model", "vision-transformer"],"license": "MIT","lastUpdated": "2026-04-04T15:18:28Z","readmeContent": "# MLX-VLM\n\nMLX-VLM is a package for inference and fine-tuning...","builtBy": [{ "username": "Blaizzy", "avatar": "https://avatars.githubusercontent.com/u/23445657" }],"trendingLanguage": "python","since": "daily","scrapedAt": "2026-04-05T10:14:50.255Z"}
AI/ML filtering explained
When aiOnly: true is set, the scraper classifies each repo using a two-stage check:
- GitHub topic tags — matches against 70+ AI/ML topics including:
machine-learning,deep-learning,llm,large-language-model,transformers,nlp,computer-vision,reinforcement-learning,generative-ai,pytorch,tensorflow,huggingface,langchain,rag,ai-agents,fine-tuning,embeddings,quantization,lora, and more. - Description keywords — if topics don't match, scans the description for phrases like "machine learning", "large language model", "neural network", "computer vision", "fine-tuning", "vector store", etc.
For precise control, use filterTopics instead — it only matches repos whose topics include at least one of the specified tags.
How much does it cost to scrape GitHub Trending?
GitHub Trending Scraper uses pay-per-event pricing with volume discounts:
| Event | Free tier | Standard | Power users |
|---|---|---|---|
| Run started | $0.001 | $0.001 | $0.001 |
| Repo extracted | $0.00115/repo | $0.001/repo | from $0.00028/repo |
Prices scale with your Apify subscription tier. The run-start fee is a one-time charge per run. Invalid input (for example a language GitHub Trending does not offer) fails the run without any charge.
Cost examples
| Scenario | Repos | Approx. cost |
|---|---|---|
| Daily trending (all languages) | ~25 | ~$0.026 |
| 4 languages, 10 repos each | 40 | ~$0.041 |
| Weekly Python AI/ML only | ~5–10 | ~$0.006–$0.011 |
| Monthly LLM repos | ~5–15 | ~$0.006–$0.016 |
Platform compute costs are negligible — typically under $0.001 per run. The free Apify plan includes enough compute to run daily trending scrapes at no cost.
Tips
- 🔄 Run on a schedule to build a historical dataset of trending repos over time
- 🤖 Use
aiOnly: true+since: "weekly"for a reliable weekly AI/ML digest - 📈 Sort by
starsGrowthPercentto identify repos with explosive recent momentum - 🏷️ Combine
filterTopicsfor targeted research (e.g., onlyrag+langchain) - 📚 Enable
includeReadmeto collect paired (metadata + documentation) training data - 🌐 Use
spokenLanguageCode: "en"to exclude non-English repos from results - 🗂️ Put all your languages in one run instead of one run per language: one start fee and one dataset, with
trendingLanguageon every row - 🔑 Set the secret
githubTokeninput to use your own GitHub API allowance (up to 5,000 requests/hour for authenticated users) for faster large runs. Apify encrypts this value at rest and the Actor never logs or outputs it.
Integrations
GitHub Trending Scraper works with all Apify integrations:
- Scheduled runs — Track trending repos daily, weekly, or monthly. Schedule AI/ML monitoring for your research workflow.
- Webhooks — Get notified when a scrape finishes and pipe results to a data pipeline
- Google Sheets — Export trending repos directly to a spreadsheet for team visibility
- Slack — Send a daily AI/ML trending digest to your team channel
- Make / Zapier — Trigger downstream workflows when new trending AI repos appear
- API — Trigger runs programmatically and stream results into vector databases or training pipelines
Connect to Zapier, Make, or Google Sheets for automated workflows.
Server API
This Actor is also a Server Actor: it answers one trending list per HTTP request from a warm process, usually in a few seconds. Copy the server URL from the Server tab and call it with your Apify token. Normal runs keep the full input (several languages, GitHub token) and the dataset.
GET /trending
| Query parameter | Required | Default | Description |
|---|---|---|---|
language | no | all | Language name or slug, e.g. python, c++, jupyter notebook |
since | no | daily | daily, weekly or monthly |
spokenLanguageCode | no | all | Spoken language code, e.g. en, zh |
maxRepos | no | 10 | Repos to return from the list, 1–25 |
topics | no | — | Comma-separated GitHub topics; keep repos with at least one |
aiOnly | no | false | true to keep only AI/ML repos |
includeReadme | no | false | true to add README markdown (up to 100 KB each) |
Response 200: { "ok": true, "count": 10, "results": [ <ranked repos, same fields as the dataset> ] }.
Charge: one Repo extracted event per returned repo at your plan's price. No start fee. Errors and empty answers are free.
Limits: 60 seconds per request; up to 6 requests at once per server process (more start another process).
| Status | Code | Meaning |
|---|---|---|
| 400 | INVALID_INPUT | Bad parameter, or a language or spoken language GitHub Trending does not offer |
| 404 | NO_TRENDING_REPOS | Nothing trending for these choices, or nothing matches the filters |
| 413 | REQUEST_TOO_LARGE / RESPONSE_TOO_LARGE | Body over 4 KB, or a result over 4 MB (lower maxRepos or turn off README) |
| 502 | UPSTREAM_ERROR | GitHub Trending could not be loaded; retry later |
| 503 | OVERLOADED / SHUTTING_DOWN | Too many requests in this process, or the server is stopping; retry |
| 504 | UPSTREAM_TIMEOUT / TIMEOUT | GitHub or the request took too long; retry |
Errors look like { "ok": false, "error": { "code": "...", "message": "...", "retryable": true } }.
curl -H "Authorization: Bearer YOUR_APIFY_TOKEN" \"https://<server-url-from-the-Server-tab>/trending?language=python&since=weekly&maxRepos=10"
Using GitHub Trending Scraper with the Apify API
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor('automation-lab/github-trending-scraper').call({language: 'python',since: 'weekly',aiOnly: true,includeReadme: true,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(`Found ${items.length} AI/ML trending repos`);items.forEach(repo => {console.log(`#${repo.rank} ${repo.fullName} ⭐ ${repo.stars} (+${repo.starsToday} / ${repo.starsGrowthPercent}%)`);console.log(` Topics: ${repo.topics.join(', ')}`);console.log(` README: ${repo.readmeContent.length} chars`);});
Python
from apify_client import ApifyClientclient = ApifyClient('YOUR_API_TOKEN')run = client.actor('automation-lab/github-trending-scraper').call(run_input={'language': 'python','since': 'weekly','aiOnly': True,'includeReadme': True,})dataset = client.dataset(run['defaultDatasetId']).list_items().itemsprint(f'Found {len(dataset)} AI/ML trending repos')for repo in dataset:print(f"#{repo['rank']} {repo['fullName']} ⭐ {repo['stars']} (+{repo['starsToday']})")print(f" Topics: {', '.join(repo['topics'])}")print(f" License: {repo['license']}")print(f" README: {len(repo['readmeContent'])} chars")
cURL
curl -X POST "https://api.apify.com/v2/acts/automation-lab~github-trending-scraper/runs?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"language": "python","since": "weekly","aiOnly": true,"includeReadme": false}'
Use with Claude AI (MCP)
This actor is available as a tool in Claude AI through the Model Context Protocol (MCP). Add it to Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.
Setup for Claude Code
$claude mcp add --transport http apify "https://mcp.apify.com?tools=automation-lab/github-trending-scraper"
Setup for Claude Desktop, Cursor, or VS Code
Add this to your MCP config file:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=automation-lab/github-trending-scraper"}}}
Example prompts
- "What are the most starred AI/ML repositories trending on GitHub this week?"
- "Show me today's trending Python repositories tagged with LLM or transformers"
- "Find trending machine learning repos from the past month and extract their README docs"
- "Which GitHub repositories have the highest star growth percentage today?"
- "Get all trending repos with topics matching 'rag' or 'langchain' this week"
Learn more in the Apify MCP documentation.
Legality
Scraping publicly available data is generally legal according to the US Court of Appeals ruling (HiQ Labs v. LinkedIn). This actor only accesses publicly available information from GitHub's trending page and public repository data via the GitHub API. It does not require authentication (though a GitHub token improves rate limits). Always review and comply with GitHub's Terms of Service before scraping. For personal data, ensure compliance with GDPR, CCPA, and other applicable privacy regulations.
FAQ
How many repos does it return?
GitHub Trending shows at most 25 repositories per list, and each language you add is its own list. The exact number varies by time of day, language filter, and availability. With aiOnly: true or filterTopics, you may get fewer results since filtering happens after enrichment.
How does the AI/ML filter work?
The aiOnly filter checks GitHub topic tags first (70+ AI/ML topics like llm, deep-learning, pytorch) and then scans the repository description for AI/ML keywords. For precise control, use filterTopics with specific topic names.
Does README extraction use the GitHub API rate limit?
Yes — with includeReadme: true, one additional GitHub API request is made per repository. Without githubToken, GitHub allows 60 requests/hour per IP; when that runs out the Actor moves to fresh proxy sessions, so README and metadata stay filled. Set the optional secret githubToken input to use authenticated limits (typically up to 5,000 requests/hour) for faster runs. Apify encrypts secret input values; the token is never included in logs or dataset output. Anonymous runs remain supported.
What is starsGrowthPercent?
It represents the percentage of stars gained in the selected period relative to prior total stars. For example, a repo with 1000 total stars and 100 gained today has a 10% growth rate. null is returned when there's insufficient data.
Can I get trending developers instead of repos? Currently this scraper focuses on repositories. GitHub also has a trending developers page that could be supported in a future version.
How often does GitHub update trending? GitHub Trending is updated continuously throughout the day. Running the scraper at different times may yield different results.
The scraper returns fewer than 25 repos per list.
GitHub Trending page size varies. Some language/period combinations have fewer trending repos. Additionally, aiOnly and filterTopics filters reduce results to only matching repos. This is expected behavior.
starsToday seems too high — is it accurate?
The starsToday field reflects stars gained in the selected period (daily, weekly, or monthly), not just today. For weekly/monthly trending, these numbers represent the full period's star gains.
Rate limit errors or missing topics/license data.
The Actor handles GitHub's unauthenticated API limit (60 requests/hour) by switching to fresh proxy sessions. If the status message still reports repos without metadata, add a token in the GitHub token (githubToken) secret input to use your authenticated allowance. A token that can read public repositories is sufficient; the Actor does not need write access. Existing owner-configured GITHUB_TOKEN environment variables remain supported as a fallback.
Error reports and privacy
When a run fails, the Actor sends sanitized diagnostic data (the exception, your input with secret fields such as the GitHub token and URL query strings removed, and the Actor, build and run IDs) to our private GlitchTip error-tracking service so we can repair it. Reports are retained for 30 days.
Pricing
This actor uses pay-per-event pricing. See the Pricing tab on Apify Store for current rates.
From 2026-12-07 the per-repo price moves onto our standard plan curve: $0.001 per repo on the Free, Starter (Bronze) plans, $0.0009 on Scale (Silver) and $0.0008 on Business (Gold) and higher plans. The run-start fee stays $0.001.
API usage
You can run this actor programmatically using the Apify API or the Apify client libraries for Node.js and Python. See the code examples above for usage details.
Related
- GitHub Scraper — Repositories, profiles, trending, and search results from GitHub
- Hacker News Scraper — Stories from Hacker News front page, newest, Ask HN, and more
- Stack Overflow Scraper — Questions, answers, and tags from Stack Overflow