GitHub Scraper: Trending, Repos, Users, Search avatar

GitHub Scraper: Trending, Repos, Users, Search

Pricing

from $0.50 / 1,000 repositories

Go to Apify Store
GitHub Scraper: Trending, Repos, Users, Search

GitHub Scraper: Trending, Repos, Users, Search

GitHub trending repositories and developers, repository and user search with full GitHub query syntax, repo details, user and organization profiles with their public repos, optional README text and releases. Official API, optional token, no login.

Pricing

from $0.50 / 1,000 repositories

Rating

0.0

(0)

Developer

ZH Tech

ZH Tech

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Scrape GitHub public data in one actor: today's trending repositories and developers, repository and user search with the full GitHub query syntax, repository details for any list of repos, and user and organization profiles with their public repositories. Optionally add README text and recent releases to every repository row.

The default run reads github.com/trending and needs no token, no API quota, no proxy and no login. It takes a few seconds and you only pay for rows you get.

What can this GitHub scraper do?

ModeWhat you get
TrendingToday's trending repositories (rank, stars, forks, stars gained today, language, description, contributors shown on the page) and trending developers (rank, login, name, avatar, popular repository). Filter by programming language (one list per language) and by spoken language. Optionally add full API details to every row.
SearchGitHub repository search or user and organization search with every qualifier GitHub supports (language:, stars:, topic:, created:, pushed:, location:, followers:, in:readme and so on), plus form fields for language, minimum stars, topics, "created within the last N days" and "pushed within the last N days". Sort by stars, forks, help wanted issues, recently updated, followers, repositories or join date.
RepositoriesFull details of any repository you list as owner/name or a GitHub link: stars, forks, real watchers, open issues, language, topics, license, homepage, fork parent, archived and template flags, size, default branch and the created, updated and pushed dates.
UsersProfiles of users and organizations (name, bio, company, location, website, public email when GitHub shows it, X handle, followers, following, public repos, join date) plus their own public repositories, sorted by recent push, update, creation, name or most stars.

Extras for every repository row, in any mode: README text (raw Markdown, length cap of your choice) and the latest releases (tag, name, date, link, prerelease flag, notes).

Why this actor

  • Trending without API quota. The default mode reads the public trending page directly, so it works even when GitHub's anonymous API limit (60 requests per hour) is used up. This is also what Apify's daily health check runs, so the actor stays reliable.
  • Honest about rate limits. It reads GitHub's rate limit headers, waits for a reset when it is close (search resets every minute), and otherwise stops cleanly with a message that says which quota ran out and when it resets. Everything saved so far is kept. No silent empty runs.
  • Your token, optional. Paste a free GitHub token (no scopes needed) to raise the limit from 60 to 5,000 requests per hour and search from 10 to 30 per minute. The token is stored encrypted and never logged or written to the output.
  • Past 1,000 search results. GitHub search stops at 1,000 results per query. With "Go past 1,000" on, a repository search sorted by stars continues below the lowest star count seen, so rows stay in star order and each repository appears once (tested: 1,150 unique JavaScript repositories in star order in 13 requests).
  • Everything in one run and one format. Trending, search, repo lists and profiles share the same field names, so you can merge datasets directly.
  • Fair billing. Duplicates (the same repository found by two queries or two trending lists) are saved and charged once. Not found inputs, invalid inputs, rate limit problems and robots.txt skips become error rows that are never charged. Invalid input and a rejected token stop the run before the start fee.

Use cases

  • Developer trend tracking and newsletters: today's trending repositories in your languages, every morning, with stars gained today.
  • Open source and investment research: find fast growing new projects (created in the last 30 days, sorted by stars), compare stars, forks, watchers and release cadence.
  • Dependency and vendor monitoring: a fixed list of repositories with their latest release tags, pushed dates, archived flag and license.
  • Developer relations and recruiting research: organizations and their public repositories, user search by location, language and followers.
  • AI and RAG datasets: README text of the top repositories for a topic, ready for embedding or summarization.

How to use

  1. Pick What to scrape (the mode).
  2. Fill in the section for that mode. Other sections are ignored.
  3. Optional: add a GitHub token for anything more than a small API run, turn on README or releases, set Max results as a cost cap.
  4. Run, then open the Output tab. Repositories, trending repositories, profiles, README and releases, and errors each have their own view. Export to JSON, CSV, Excel, XML or HTML, or read it through the API.

Input examples

Today's trending repositories (the default, no token needed):

{ "mode": "trending", "trendingType": "repositories" }

Trending Python and Rust repositories and developers, with topics, license and dates from the API:

{
"mode": "trending",
"trendingType": "both",
"trendingLanguages": ["python", "rust"],
"trendingDetails": true,
"githubToken": "YOUR_GITHUB_TOKEN"
}

Rising new repositories of the past 30 days about LLMs, most stars first:

{
"mode": "search",
"searchQueries": ["llm"],
"createdWithinDays": 30,
"searchSort": "stars",
"maxResultsPerQuery": 200
}

Every JavaScript repository with more than 2,000 stars (past the 1,000 cap):

{
"mode": "search",
"searchQueries": ["language:javascript stars:>2000"],
"searchSort": "stars",
"maxResultsPerQuery": 5000,
"splitLargeSearches": true,
"githubToken": "YOUR_GITHUB_TOKEN"
}

Developers in a city with many followers:

{ "mode": "search", "searchType": "users", "searchQueries": ["location:berlin followers:>500"], "searchSort": "followers", "maxResultsPerQuery": 100 }

A list of repositories with README and the latest 3 releases:

{
"mode": "repositories",
"repositories": ["apify/crawlee", "https://github.com/pola-rs/polars", "microsoft/vscode"],
"includeReadme": true,
"includeReleases": true,
"maxReleasesPerRepo": 3
}

An organization and its 20 most starred repositories, without forks:

{ "mode": "users", "usernames": ["apify"], "maxReposPerUser": 20, "userReposSort": "stars", "excludeForks": true }

Output examples

A trending repository row (default mode, no API details):

{
"type": "repository",
"fullName": "pola-rs/polars",
"owner": "pola-rs",
"name": "polars",
"url": "https://github.com/pola-rs/polars",
"description": "Extremely fast Query Engine for DataFrames, written in Rust",
"stars": 40397,
"forks": 3251,
"language": "Rust",
"languageColor": "#dea584",
"topics": null,
"license": null,
"source": "trending",
"trendingRank": 3,
"starsInPeriod": 17,
"trendingPeriod": "daily",
"trendingLanguage": "rust",
"builtBy": ["ritchie46", "alexander-beedie", "orlp", "nameexhaustion", "coastalwhite"],
"trendingUrl": "https://github.com/trending/rust",
"detailsComplete": true,
"scrapedAt": "2026-11-20T16:49:19.069Z"
}

Fields that only the API knows (topics, license, watchers, openIssues, homepage, the dates) are null on trending rows unless Add full API details is on. Every repository row has the same keys in every mode.

A repository row from Repositories mode with releases:

{
"type": "repository",
"fullName": "apify/crawlee",
"owner": "apify",
"ownerType": "Organization",
"name": "crawlee",
"url": "https://github.com/apify/crawlee",
"description": "Crawlee: A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. ...",
"homepage": "https://crawlee.dev",
"stars": 26505,
"forks": 1774,
"watchers": 135,
"openIssues": 150,
"language": "TypeScript",
"topics": ["apify", "automation", "crawler", "crawling", "headless", "headless-chrome", "javascript", "nodejs", "npm", "playwright", "puppeteer", "scraper", "scraping", "typescript", "web-crawler", "web-crawling", "web-scraping"],
"license": "Apache-2.0",
"isFork": false,
"isArchived": false,
"defaultBranch": "master",
"createdAt": "2016-08-26T18:35:03Z",
"updatedAt": "2026-11-20T08:56:53Z",
"pushedAt": "2026-11-20T15:44:33Z",
"source": "repository",
"latestRelease": "v4.0.0-rc.1",
"latestReleaseAt": "2026-10-06T13:48:23Z",
"releases": [{ "tagName": "v4.0.0-rc.1", "name": "v4.0.0-rc.1", "publishedAt": "2026-10-06T13:48:23Z", "url": "https://github.com/apify/crawlee/releases/tag/v4.0.0-rc.1", "isPrerelease": true, "body": "..." }],
"detailsComplete": true
}

A profile row (user or organization):

{
"type": "profile",
"login": "apify",
"accountType": "Organization",
"name": "Apify",
"url": "https://github.com/apify",
"bio": "Put the web to work.",
"company": null,
"location": null,
"blog": "https://apify.com/",
"email": "hello@apify.com",
"twitterUsername": "apify",
"followers": 2621,
"following": 0,
"publicRepos": 279,
"createdAt": "2016-12-15T10:36:52Z",
"source": "user",
"detailsComplete": true
}

Trending developer rows are profile rows with source: "trending-developers", trendingRank and popularRepo.

GitHub rate limits, explained

Without a tokenWith your token
Trending page (default mode)No API quota usedNo API quota used
Core API (repo details, profiles, user repositories, README, releases)60 requests per hour per IP5,000 requests per hour
Search API10 requests per minute30 requests per minute

What a run costs in requests: a search page returns up to 100 rows for 1 search request. A profile, a repository detail, a README or a release list is 1 core request each. A user's repositories cost 1 core request per 100 repositories. The trending page is 1 page load per list, no API.

Without a token, Apify servers share IP addresses, so the 60 per hour may already be partly used by others. For any run that uses the API, add a token. Create one at github.com/settings/tokens (classic, no scopes ticked, or fine grained with public repositories read only). If a quota runs out, the run waits when the reset is within Max wait for a rate limit reset (90 seconds by default, enough for search), otherwise it stops with a clear message and keeps every row saved so far. Rows that could not get optional details (API details on trending rows, full profiles in user search, README, releases) are still saved, with detailsComplete: false and the reason in detailsError.

Pricing

Pay per event, you only pay for what is delivered:

  • Actor start: a small flat fee once per run.
  • Repository: per repository row (trending, search, repository details, user repositories).
  • Profile: per user or organization row (profiles, trending developers, user search).

README text and releases are included in the repository price. The current prices are on the Pricing tab. Never charged: duplicates, error rows (not found, invalid input, rate limit, robots.txt), and anything after your max total charge or Max results is reached. Invalid input and a rejected token stop the run before the start fee.

Typical runs: today's trending repositories is 1 start plus up to 25 repository events. An organization with 30 repositories is 1 profile plus 30 repository events.

Use with the API, integrations and AI agents

  • API: POST https://api.apify.com/v2/acts/zhtech~github-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN with the JSON input as the body returns the rows in one call. Add &view=trending (or repositories, profiles, errors) for a specific view.
  • Clients: apify-client for JavaScript and Python. Example (JavaScript): await client.actor('zhtech/github-scraper').call({ mode: 'trending', trendingLanguages: ['python'] }).
  • Schedules: schedule the trending mode daily and connect Google Sheets, Slack, a webhook, Zapier, Make or n8n.
  • LLMs and MCP: the actor works as a tool through the Apify MCP server (mcp.apify.com), so Claude, ChatGPT, Cursor and other agents can look up trending projects, search repositories or read READMEs on demand. Set a max total charge on the run to cap the cost.

FAQ

Is it legal to scrape GitHub? The actor reads public data only: GitHub's official REST API (documented for programmatic use) and the public trending page. It never logs in. GitHub's terms allow using public information through the API; you are responsible for how you use the data, especially personal data such as names, locations and public emails. Do not use it for spam.

Why are weekly and monthly trending lists not available? GitHub's robots.txt asks automated clients not to load URLs with ?since= (the weekly and monthly trending lists). This actor respects that and reads only the daily list; weekly or monthly input returns an uncharged error row. For the rising repositories of the past week or month, use Search mode with Created within the last N days (7 or 30) sorted by stars.

Do I need a GitHub token? Not for the default trending mode. For search, repository lists, profiles, README and releases, a token is strongly recommended (see the rate limit table). It needs no scopes.

Why is watchers null on some rows? GitHub's search and list endpoints return a watchers_count that is actually the star count. The real number of watchers (subscribers) only comes from the repository details endpoint, so it is filled in Repositories mode and when Full details or Add full API details is on, and left null instead of being wrong elsewhere.

Why does user search return fewer details without a token? GitHub's user search returns only the login. Each full profile is 1 more core request; when the anonymous 60 per hour runs out, the remaining rows keep login, type, URL and avatar with detailsComplete: false. Add a token for full profiles.

Do I get email addresses? Only the public email a user or organization chose to show on their GitHub profile, exactly as the API returns it. The actor does not guess emails or read them from commits.

A repository appears in two trending languages. Is it charged twice? No. Each repository and each profile is saved once per run, with the rank of the first list it was found in.

Why did a search return fewer rows than the match count? GitHub returns at most 1,000 results per query (use Go past 1,000 for repository searches sorted by stars), and its search can time out on very broad queries (logged as incomplete results).

Limitations

  • Weekly and monthly trending lists are not read (robots.txt, see FAQ).
  • GitHub search is capped at 1,000 results per query; splitting past it works for repository searches sorted by stars, high to low.
  • The trending page has no official API. Parsing is built on stable page anchors and covered by unit tests, but if GitHub changes the page, the run reports a parse error row instead of returning wrong data.
  • Private repositories, stars or followers lists, contribution graphs, issues and pull requests are not covered.
  • Anonymous API limits are low and shared on cloud IPs; use a token for API heavy runs.

Support

Found a field that is wrong, a page that does not parse, or need another data point? Open an issue on the Issues tab with the input you used and it will be looked at quickly.