GitHub Repository Scraper - Stars, Repo Stats & Push Activity
Pricing
from $1.00 / 1,000 run start fees
GitHub Repository Scraper - Stars, Repo Stats & Push Activity
GitHub repository scraper for developers and researchers: paste owner/name or URL, or a GitHub search query, and get stars, forks, watchers, open issues, licence, topics and real push activity per repo. $0.001 per run plus $0.001 per repository; free plan up to 10 results.
Pricing
from $1.00 / 1,000 run start fees
Rating
0.0
(0)
Developer
SR
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
16 days ago
Last modified
Categories
Features
Share
GitHub Scraper - Repo Stats, Stars, Forks & Push Activity
This GitHub scraper turns a list of repositories or a GitHub search query into clean repo stats: stars, forks, watchers, open issues, language, topics, licence, archived status and, importantly, real push activity. Use it for dependency health reviews, licence audits, ecosystem research and technology tracking, and export the result as JSON, CSV or Excel.
What the GitHub scraper does
You give it repository names (encode/httpx), full GitHub URLs, or a query in GitHub's own
search syntax (language:python stars:>20000). For every repository you get one row with the
same fields, so a list of 500 dependencies becomes one table you can sort, filter and join.
It reads public repository data only. You do not need a GitHub account, and a free personal access token is optional: it raises GitHub's rate limits a lot, as explained below.
How to use the GitHub scraper
- Open the Actor and choose a mode: fill
reposwith names or URLs, or fillquerywith a GitHub search. - Optionally paste a free personal access token into
token. - Set
limitto the number of repositories you want (1 to 1,000). - Start the run and download the dataset, or call the Actor from your own code through the Apify API.
Two modes
By name, which uses GitHub's core rate-limit bucket:
repos: ["encode/httpx", "psf/requests"]
Full GitHub URLs are accepted and normalised, so you can paste
https://github.com/psf/requests straight in.
By search, which uses the search bucket and GitHub's own query syntax:
query: "language:python stars:>20000"sort: stars
Anything GitHub search accepts works here: topic:scraper, org:apify,
created:>2024-01-01, license:mit, and combinations.
Input
| Field | Type | Default |
|---|---|---|
repos | list of owner/name or URLs | No default; the editor prefills ["encode/httpx","psf/requests"] |
query | GitHub search syntax | — |
sort | stars, forks, updated, help-wanted-issues | stars |
order | desc, asc | desc |
token | free personal access token | — |
limit | 1-1000 | 100 |
retries | 1-6 | 3 |
GitHub caps any search at 1,000 results however you page it. When your query matches more than that, the run summary says so rather than quietly stopping.
Two rate-limit buckets, and why that matters to you
This is the thing to understand before you size a run. GitHub does not have one rate limit, it has several, and the two this Actor touches behave completely differently:
| What you do | Bucket | Unauthenticated | With a free token |
|---|---|---|---|
| Look up a repo by name | core | 60 per hour | 5,000 per hour |
| Search repositories | search | 10 per minute | 30 per minute |
They reset independently. A run that has spent its search budget still has its repo lookups available, and the reverse. Treating them as one ceiling stops runs that still have budget, so this Actor tracks each bucket separately and reports both in the run summary.
Sixty repositories an hour is the entire unauthenticated budget. For any
real work, create a personal access token: it takes a minute, needs no approval,
and needs no scopes at all for public repository data. Paste it into
token.
When you supply a token, the Actor stops with two requests to spare rather than draining your shared bucket, and says which one it stopped on.
Output
One dataset row per repository. This is a real row from a run with the prefilled input
(encode/httpx, psf/requests):
{"full_name": "encode/httpx","owner": "encode","owner_type": "Organization","name": "httpx","description": "A next generation HTTP client for Python. 🦋","language": "Python","topics": ["asyncio","http","python","trio"],"stars": 15523,"forks": 2726,"watchers": 153,"open_issues": 140,"fork_ratio": 0.176,"license": "BSD-3-Clause","homepage": "https://www.python-httpx.org/","created_at": "2019-04-04 12:27:00","updated_at": "2026-10-02 16:38:21","pushed_at": "2026-10-02 12:53:43","days_since_push": 0,"archived": false,"disabled": false,"is_fork": false,"default_branch": "master","size_kb": 8619,"url": "https://github.com/encode/httpx","source": "github-scraper","platform": "github","fetched_at": "2026-10-02T17:12:59.809Z","created_at_iso": "2019-04-04T12:27:00Z","updated_at_iso": "2026-10-02T16:38:21Z","pushed_at_iso": "2026-10-02T12:53:43Z","position": 1}
Fields
- Identity:
full_name,owner,owner_type,name,description,url - Popularity:
stars,forks,watchers,fork_ratio - Work in progress:
open_issues - Classification:
language,topics,license - Activity:
created_at,updated_at,pushed_at,days_since_push - Health:
archived,disabled,is_fork - Other:
homepage,default_branch,size_kb,position - For combining with other data:
source,platform,fetched_at,created_at_iso,updated_at_iso,pushed_at_iso
license returns the SPDX id, and null when GitHub reports NOASSERTION —
which is what it sends for a licence file it cannot identify. Passing that
through would give you a licence apparently called NOASSERTION, so it does not.
Search rows have watchers: null because GitHub search does not include subscriber counts;
repository lookups include them. Dates in created_at, updated_at and pushed_at keep their
existing UTC display form; the *_iso fields carry the same moment in ISO 8601.
pushed_at, not updated_at
The single most useful field here, and the one most easily got wrong.
updated_at moves when anything about the repo changes, including a
description edit, a topic being added or a star arriving. A repository with no
commit for four years can show an updated_at from last week and look alive.
pushed_at moves only when code is actually pushed. days_since_push is
computed from that, and the run summary counts how many of your repositories
have had no push in over a year.
Combined with archived, that is the honest answer to "is this dependency
maintained?" — a question the star count cannot answer at all.
fork_ratio and what it tells you
Forks divided by stars. Established libraries sit roughly between 0.1 and 0.3: in our runs
encode/httpx was 0.176, psf/requests 0.213, pallets/flask 0.228 and torvalds/linux 0.265.
A ratio far above that usually means the repository is copied rather than depended on — a template, a course, a boilerplate, a coding-challenge starter. That is a useful filter when you are looking for libraries and the search results keep handing you awesome-lists.
Use cases for GitHub repo stats
- Dependency health review. Feed your dependencies' repositories in and sort
by
days_since_push, filtering onarchived. That is the maintenance picture a star count hides. - Licence audit.
licenseacross every repository you depend on. - Ecosystem and competitor research. Search a topic or language and rank by
stars, then use
fork_ratioto separate libraries from templates. - GitHub stars tracking. Run the same list on a schedule and store the rows to follow stars and forks over time for your own projects or a competitor's.
- Technology tracking.
created:>queries sorted by stars show what is new and gaining traction in a language. - Organisation overview.
org:<name>returns everything a company publishes, with activity attached.
GitHub scraper compared with the alternatives
| This Actor | GitHub REST API yourself | Generic web scraper | |
|---|---|---|---|
| Setup | Paste names or a query | Write paging, retry and rate-limit code | Configure selectors for each page |
| Rate limits | Tracked per bucket, reported in the summary | Your code must handle both buckets | Pages throttle without warning |
| Activity | pushed_at and days_since_push | Raw dates, you compute the rest | Often only the rendered "updated" date |
| Licence | Clean SPDX id, null for unknown | NOASSERTION passed through | Free text |
| Output | One flat row per repo, JSON/CSV/Excel | Nested JSON per endpoint | Depends on your selectors |
If you already run your own GitHub integration, you do not need this. If you want a table of repo stats in a minute, without writing code or babysitting rate limits, this is quicker.
Errors and empty results
A repository that does not exist and one that is private are indistinguishable without a token that can see it: GitHub answers 404 to both, deliberately, so the API cannot be used to probe for private repositories. The error names both possibilities rather than guessing.
A rejected token is not retried, because retrying a bad credential cannot help. A spent rate-limit bucket is reported as such rather than as an auth problem.
Duplicate repository names appear once, with position starting at one. Invalid or missing
repositories are reported in the errors record while valid rows are retained. Empty results
finish successfully, with no repository-result charge.
Pricing
The price is $0.001 per run (run_start) plus $0.001 per repository delivered
(repo). A run with no repositories only incurs the run-start fee. Duplicate names
are charged once when they produce one row. Users on a free Apify plan receive at most ten
repository results per run. You can use a lower limit to request fewer results.
As an example: a dependency review of 200 repositories costs $0.001 + 200 × $0.001 = $0.201.
FAQ
Do I need a GitHub token to use this GitHub scraper?
No. Without a token GitHub allows 60 repository lookups an hour and 10 searches a minute. A free personal access token with no scopes raises that to 5,000 and 30.
Does an empty input use the example repositories?
No. Those names are an editor prefill, not a default. Provide repos or query; without either,
the run finishes successfully with an empty dataset and an input explanation.
What happens if I provide both repos and a query?
The repository list takes precedence. Repositories are returned in input order after duplicates are removed; search sorting only applies in query mode.
Do I need to manage pagination on Apify?
No. The Actor collects the requested repositories automatically within its run timeout. GitHub search remains limited to one thousand results per query. The summary reports any incomplete collection so you can split a larger task across runs.
Can I scrape private repositories?
Only repositories your token can see. Without such a token a private repository looks exactly like one that does not exist, and the row is reported as an error instead.
Does it return GitHub star history?
No. Each run returns the current star count. Schedule the Actor and keep the datasets to build your own history.