GitHub Scraper: Repos, Users, Contributors & Trending avatar

GitHub Scraper: Repos, Users, Contributors & Trending

Pricing

from $0.56 / 1,000 repository or profiles extracted

Go to Apify Store
GitHub Scraper: Repos, Users, Contributors & Trending

GitHub Scraper: Repos, Users, Contributors & Trending

Scrape GitHub repositories, developer profiles, contributors and trending repos. Search repos or users by language, stars, topic, location and followers; add README text. No token needed.

Pricing

from $0.56 / 1,000 repository or profiles extracted

Rating

5.0

(1)

Developer

Automation Lab

Automation Lab

Maintained by Community

Actor stats

1

Bookmarked

101

Total users

17

Monthly active users

5 days ago

Last modified

Features

Limited permissionsMulti-tenantServer interface

Share

GitHub Scraper

Scrape data from GitHub — repositories, repository contributors, developer profiles, trending repos, and repository or user search with language, stars, topic, location and follower filters. Get stars, forks, contribution counts, languages, topics, licenses, followers, README text and more.

What does GitHub Scraper do?

GitHub Scraper extracts structured data from GitHub using its public GitHub API and web pages. It supports six modes:

  • Repository details — Full metadata for specific repos (stars, forks, topics, license, dates)
  • Developer profiles — Bio, followers, location, company, repos count for any user
  • Repository contributors — Turn public repository URLs into developer lists with contribution counts
  • Trending repositories — Today's/week's/month's hottest repos with star velocity
  • Search repositories — Find repos by keyword, language, minimum stars and topics; sort by stars, forks, recent updates or best match. Every row has the full repository record (homepage, dates, size, archived/fork flags)
  • Search users — Find developers by keyword, language, location and minimum followers; every result is enriched into the full profile (name, company, location, blog, X handle)

Run up to 10 searches in one job with More search queries, and add each repository's README text with one checkbox (repository details and repository search).

No GitHub API token is required. GitHub allows 60 anonymous API calls an hour per IP; when a run reaches that limit, it continues through a fresh Apify Proxy exit instead of failing. An optional secret token gives 5,000 calls an hour.

Every run ends with a status message such as "Got 100 of 100 repositories." or "Got 37 of 100 repositories: GitHub has no more matches", and you are only charged for rows that are saved.

Who is it for?

GitHub Scraper is for developer-tool founders, recruiters, open-source researchers, venture analysts, and data teams that need structured repository and profile data without maintaining GitHub scraping infrastructure.

Why scrape GitHub?

GitHub hosts 400M+ repositories and 100M+ developers. It's the primary source for:

  • 📊 Tech trend analysis — Track which languages and frameworks are gaining traction
  • 🔍 Competitive intelligence — Monitor competitor repos, stars growth, and release cadence
  • 📈 Developer recruiting — Find active developers by language, location, and contribution history
  • 🏗️ Open source research — Analyze licensing, dependency patterns, and community health
  • 📰 Content creation — Curate trending repos for newsletters and social media

Use cases

  • Newsletter creators sharing weekly trending repos
  • VCs and investors tracking open-source momentum
  • Hiring managers building candidate lists from active contributors
  • Researchers studying open-source ecosystem dynamics
  • DevRel teams monitoring mentions and competitive landscape
  • Developers discovering new tools and libraries

How to scrape GitHub

  1. Go to GitHub Scraper on Apify Store
  2. Choose a mode: repos, profiles, contributors, trending, repository search, or user search
  3. Enter repository/profile URLs or a search query depending on the mode
  4. Set the max results limit
  5. Click Start and wait for results
  6. Download data as JSON, CSV, or Excel

Data you can extract

Repository data

FieldTypeDescription
fullNamestringOwner/repo (e.g., facebook/react)
descriptionstringRepo description
starsnumberStar count
forksnumberFork count
watchersnumberWatcher count
openIssuesnumberOpen issue count
languagestringPrimary language
topicsarrayTopic tags
licensestringLicense (MIT, Apache-2.0, etc.)
isArchivedbooleanWhether the repo is archived
createdAtstringCreation date
updatedAtstringLast update date
pushedAtstringLast push date
homepageUrlstringProject homepage
sizenumberRepo size in KB
searchQuerystringThe search that found the repo (search mode)
readmestringREADME as plain text, up to 20,000 characters (with Include README)
readmeTruncatedbooleanTrue when the README was cut at 20,000 characters

Profile data

FieldTypeDescription
usernamestringGitHub username
namestringDisplay name
biostringProfile bio
companystringCompany
locationstringLocation
followersnumberFollower count
followingnumberFollowing count
publicReposnumberPublic repo count
blogstringWebsite URL
twitterUsernamestringX/Twitter handle

Contributor data

Contributor mode uses GitHub's public /repos/{owner}/{repo}/contributors API endpoint. It emits one row per unique repository and username, preserving the order of your repository list.

FieldTypeDescription
repositoryFullNamestringRepository in owner/repo format
usernamestringContributor's GitHub username
profileUrlstringPublic GitHub profile URL
avatarUrlstring or nullPublic avatar URL
contributionsnumberContributions reported by GitHub for this repository
contributorTypestring or nullGitHub account type, such as User or Bot
repositoryUrlstringCanonical public repository URL
sourceUrlstringRepository URL supplied in the input
scrapedAtstringUTC extraction timestamp
FieldTypeDescription
fullNamestringOwner/repo
descriptionstringRepo description
languagestringPrimary language
starsnumberTotal stars
starsTodaynumberStars gained in the period
forksnumberFork count
builtByarrayTop contributors with avatars

Input parameters

ParameterTypeDefaultDescription
modestring"trending"Mode: repos, profiles, contributors, trending, search, users
urlsarray[]Public HTTPS GitHub URLs (for repos, profiles, or contributors mode)
searchQuerystring""GitHub query (for repository search or users search); GitHub qualifiers work
searchQueriesarray[]Up to 9 more searches; each returns up to maxResults, duplicates saved once
languagestring—Search modes: repositories in this language, or users who write it
minStarsinteger—Repository search: minimum stars
topicsarray—Repository search: required topics
locationstring—User search: profile location, such as Berlin
minFollowersinteger—User search: minimum followers
sortstringstars / best-matchRepositories: best-match, stars, forks, updated. Users: best-match, followers, repositories, joined
orderstringdescdesc or asc
includeReadmebooleanfalseAdd README text to repository rows (repos and search modes); one extra API call per repo, same price
githubTokenstring—Optional encrypted GitHub PAT for higher API limits; sent only to api.github.com
trendingSincestring"daily"Trending period: daily, weekly, monthly
trendingLanguagestring""Filter by language (e.g., python)
maxResultsinteger20Max results; in search modes, per search. GitHub returns at most 1,000 results per search

Input example

{
"mode": "users",
"language": "Python",
"location": "Berlin",
"minFollowers": 500,
"sort": "followers",
"maxResults": 25
}

GitHub's user search qualifiers can filter by location, followers, repositories, language, and account creation date. User search returns the same enriched fields as profile mode and charges the existing profile event once per emitted row.

Repository search with filters and README text:

{
"mode": "search",
"searchQuery": "web scraping",
"searchQueries": ["browser automation"],
"language": "TypeScript",
"minStars": 500,
"sort": "updated",
"includeReadme": true,
"maxResults": 50
}

Existing inputs that omit mode still use trending, and all existing modes keep their output fields and pricing events.

Output example

Repository

{
"name": "react",
"fullName": "facebook/react",
"owner": "facebook",
"description": "The library for web and native user interfaces.",
"url": "https://github.com/facebook/react",
"homepageUrl": "https://react.dev",
"language": "JavaScript",
"stars": 243711,
"forks": 50668,
"watchers": 243711,
"openIssues": 1150,
"topics": ["declarative", "frontend", "javascript", "library", "react", "ui"],
"license": "MIT",
"isArchived": false,
"isFork": false,
"defaultBranch": "main",
"createdAt": "2013-05-24T16:15:54Z",
"updatedAt": "2026-03-08T09:17:07Z",
"pushedAt": "2026-03-05T15:52:24Z",
"size": 942058,
"scrapedAt": "2026-03-08T09:45:54.218Z"
}

Profile

{
"username": "torvalds",
"name": "Linus Torvalds",
"bio": null,
"company": "Linux Foundation",
"location": "Portland, OR",
"followers": 289246,
"following": 0,
"publicRepos": 11,
"avatarUrl": "https://avatars.githubusercontent.com/u/1024025?v=4",
"url": "https://github.com/torvalds",
"scrapedAt": "2026-03-08T09:45:50.123Z"
}

How much does it cost to scrape GitHub?

GitHub Scraper uses pay-per-event pricing:

EventPrice
Run started$0.002
Repository or profile extracted$0.0007 per item (Scale plan $0.00063, Business plan and above $0.00056)

Cost examples

ScenarioItemsCost
Daily trending (25 repos)25~$0.02
10 repo details10~$0.01
50 contributor rows50~$0.04
Search (50 results)50~$0.04

Apify's free plan includes $5/month in platform credits — enough for about 250 trending scrapes.

Using GitHub 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-scraper').call({
mode: 'trending',
trendingSince: 'daily',
maxResults: 25,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(repo => {
console.log(`${repo.fullName}: ${repo.stars} stars (+${repo.starsToday} today)`);
});

Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_API_TOKEN')
run = client.actor('automation-lab/github-scraper').call(run_input={
'mode': 'trending',
'trendingSince': 'daily',
'maxResults': 25,
})
dataset = client.dataset(run['defaultDatasetId']).list_items().items
for repo in dataset:
print(f"{repo['fullName']}: {repo['stars']} stars (+{repo['starsToday']} today)")

cURL

curl "https://api.apify.com/v2/acts/automation-lab~github-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
-X POST -H "Content-Type: application/json" \
-d '{"mode": "trending", "trendingSince": "daily", "maxResults": 10}'

Integrations

GitHub Scraper works with all Apify integrations:

  • Scheduled runs — Track trending repos daily or weekly
  • Webhooks — Get notified when a scrape completes
  • Google Sheets — Export repos and profiles to spreadsheets
  • Slack — Post trending repos to your team's channel
  • Zapier / Make — Automate workflows with GitHub data

Tips

  • 📈 Track trending daily — Schedule runs to build a history of trending repos
  • 🔍 Use search for competitive analysis — Search for keywords in your domain
  • 👥 Profile scraping — Great for building lists of developers by location or company
  • 🤝 Contributor discovery — Turn a public repository watchlist into developer leads ranked by repository contribution count
  • 🏷️ Filter by language — Use trendingLanguage to focus on specific tech stacks
  • ⚡ Rate limits — The actor follows GitHub's retry/reset headers; an anonymous run that reaches GitHub's hourly limit continues through a fresh proxy exit. Add a secret githubToken for the largest jobs
  • ✅ Deterministic URLs — URL modes require full public https://github.com/... URLs and deduplicate normalized targets in first-seen order
  • 🚨 Honest status — Bad input fails at once with a clear message and no charge. If GitHub fails mid-run, saved rows are kept and the status says why the run stopped; if nothing could be fetched the run fails
  • 📊 Combine modes — Run trending to discover repos, then repos mode for full details

Legality

GitHub Scraper collects publicly available repository and profile information. Use the data responsibly, respect GitHub's terms, and avoid collecting private, authenticated, or personal data beyond your lawful purpose.

When a run fails, the Actor sends sanitized diagnostic input, the exception, and the Actor, build and run IDs to our private GlitchTip service so we can repair it. Secret fields (such as githubToken) and URL query strings are removed, and reports are kept for 30 days.

GitHub provides a public REST API specifically designed for programmatic access. This scraper uses that API and publicly accessible web pages. It does not bypass authentication, rate limits, or access private data. Always review GitHub's Terms of Service and API usage policies.

FAQ

Do I need a GitHub API token? No. The scraper works anonymously with GitHub's public API (60 requests/hour per IP) and moves to a fresh proxy exit when that limit is reached. For the largest jobs, set the optional githubToken secret input; Apify stores it encrypted, the Actor sends it only in the Authorization header to api.github.com, and it is never written to logs or datasets. A standard authenticated GitHub allowance is 5,000 requests/hour.

How many trending repos are shown? GitHub's trending page shows up to 25 repos per language/period combination.

Can I search for users or organizations? Yes. Use mode: "users" with the location, language and minFollowers filters, or qualifiers such as location:berlin followers:>1000; each match is enriched into a full public profile row. Repository search remains available as mode: "search".

How does contributors mode work? Provide one or more full public repository URLs such as https://github.com/facebook/react. The actor paginates the public GitHub API, deduplicates by repositoryFullName and username, and stops before exceeding maxResults. It does not enrich profiles or fetch commits, emails, followers, organizations, or authenticated data.

What if a contributor has no public avatar or account type? Optional public values are returned as null; the actor does not infer missing data.

What about private repos? The scraper only accesses public data. Private repos are not visible without authentication.

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-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-scraper"
}
}
}

Example prompts

  • "What are the trending GitHub repositories today? Show me the top 25 with their star counts"
  • "Search GitHub for the most starred machine learning repositories and summarize what each one does"
  • "Get the GitHub profile and public repo stats for these developers: torvalds, gvanrossum, dhh"

Learn more in the Apify MCP documentation.

The scraper returns an error about rate limiting. GitHub's public API allows 60 requests/hour per IP without authentication. The Actor respects Retry-After and X-RateLimit-Reset for bounded retries, then fails actionably if the limit remains exhausted. Add a secret githubToken, reduce maxResults, or split very large jobs. If failure occurs after some rows were emitted, those partial rows remain in the dataset and the run still reports failure.

Profile data shows null for some fields like bio or company. Not all GitHub users fill in their profile details. The scraper returns null for fields the user hasn't set. This is expected behavior.

Server API

This Actor is also a Server Actor: copy the server URL from the Server tab of the Actor page and send GET requests with your Apify token (Authorization: Bearer <token>). Normal runs keep the full input and dataset. Each answer is { "ok": true, "count": n, "results": [...] } with the same rows as the dataset. You pay the same per-result price as in a normal run (repo or profile event); there is no start fee, and requests that return nothing or fail are free.

RouteParametersCharge
GET /reporepo (owner/name or URL, required), readme=true1 repo
GET /profileusername (or profile URL, required)1 profile
GET /search/reposq, language, minStars, topic, sort (best-match, stars, forks, updated), order, limit (1–25, default 10)1 repo per result
GET /search/usersq, language, location, minFollowers, sort (best-match, followers, repositories, joined), order, limit (1–25, default 10)1 profile per result

A search needs q or at least one filter. Limits: 8 concurrent requests per server run, 45 seconds per request.

Errors are { "ok": false, "error": { "code", "message", "retryable" } }, never charged:

StatusCodeMeaning
400INVALID_INPUT, INVALID_LIMIT, INVALID_QUERYMissing or invalid parameter, or GitHub rejected the search
404NO_RESULTSGitHub has no public result for this request
413Request too large
429RATE_LIMITEDGitHub is rate limiting; retry shortly
502UPSTREAM_ERRORGitHub could not complete the request
503Server busy; retry
504The request took longer than 45 seconds
curl -H "Authorization: Bearer $APIFY_TOKEN" "<SERVER_URL>/search/repos?q=vector+database&language=Rust&minStars=100&limit=5"
curl -H "Authorization: Bearer $APIFY_TOKEN" "<SERVER_URL>/repo?repo=facebook/react&readme=true"