GitHub Trending Scraper · Daily star gains · $1/1K avatar

GitHub Trending Scraper · Daily star gains · $1/1K

Pricing

$1.00 / 1,000 results

Go to Apify Store
GitHub Trending Scraper · Daily star gains · $1/1K

GitHub Trending Scraper · Daily star gains · $1/1K

Get GitHub trending repositories for open-source research, tech scouting and developer newsletters. Rank, star gains, topics, license and optional README by language and period. $1/1K trending repositories, no login.

Pricing

$1.00 / 1,000 results

Rating

0.0

(0)

Developer

MLG Data

MLG Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Features

Limited permissions

Share

Scrape GitHub trending repositories by programming language, spoken language, and time period. Export GitHub trending data to JSON, CSV, or Excel with ranks, star gains, contributors, repository metadata, and optional README text. This actor offers a structured GitHub trending API alternative for public repository discovery and repeatable snapshots.

The actor reads the public trending list and preserves each repository's rank on the exact list requested. It then requests public repository metadata to add topics, license, timestamps, and repository details. A single run can collect several programming language lists, which is useful when one list contains fewer repositories than a research project needs.

What data can you extract from GitHub?

Each dataset item represents one appearance of a repository on one trending page. If the same repository appears under two selected programming languages, each appearance keeps its own rank and source URL. The fields are flat except for the short builtBy contributor list and the topics array.

FieldDescriptionExample
rankPosition on the requested trending page, starting at one1
ownerRepository owner loginexample-owner
nameRepository nameexample-repo
fullNameOwner and repository nameexample-owner/example-repo
urlPublic repository URLhttps://github.com/example-owner/example-repo
descriptionDescription shown on the trending pageA small web framework
languagePrimary programming language displayed therePython
starsCurrent total stars displayed on the list37699
forksCurrent total forks displayed on the list5446
starsTodayStars gained during the selected period2623
starsGrowthPercentPeriod gains divided by the previous star total, times 1007.48
starsPeriodPeriod used for starsTodayweekly
topicsPublic topic tags from repository metadata["web", "cli"]
licenseLicense SPDX identifier, if availableApache-2.0
lastUpdatedTimestamp of the latest repository push2026-09-21T21:10:41Z
readmeContentREADME markdown when requested and available# Project...
builtByPublic contributor handles and avatar URLs shown on the trending list[ {"username": "user", "avatar": "https://..."} ]
repoIdPublic numeric repository identifier1165056385
homepageHomepage URL in repository metadatahttps://example.org
openIssuesOpen issue and pull request count reported by repository metadata223
defaultBranchDefault branch namemain
createdAtRepository creation timestamp2026-02-23T19:24:50Z
trendingLanguageProgramming language filter for this rankpython
trendingUrlExact trending page URL used for this itemhttps://github.com/trending/python?since=weekly
scrapedAtUTC time when the row was extracted2026-09-26T23:53:31.668537Z

starsToday is retained as a familiar field name across daily, weekly, and monthly runs. Read starsPeriod with it: on a weekly run, it means stars gained during the week. starsGrowthPercent is calculated using the displayed total and the displayed period gain. The two star figures are snapshots, so slight changes during a run can affect the computed percentage. A null percentage means a usable previous total could not be calculated.

  1. Choose one programming language in language, or list several language slugs in languages. Leave both empty for the general trending list.
  2. Select daily, weekly, or monthly in since. Add a spokenLanguageCode only when you want that public page filter.
  3. Set maxRepos to cap output across all selected pages. Enable includeReadme only when full documentation is useful to your workflow.
  4. Run the actor and open the default dataset. Download its rows as JSON, CSV, or Excel, or read the dataset from an automated workflow.

The programming language values follow the slugs used in trending URLs. For example, python, javascript, and rust select three different lists. The actor visits them in the order supplied. A single language value is ignored when languages contains at least one entry. Repeated entries in languages are removed before requesting pages.

Input

ParameterTypeDefaultDescription
languagestring""One programming language slug; empty means all languages.
languagesstring array[]Optional list of language slugs collected in one run; takes precedence over language.
sincestring"daily"Trending period: daily, weekly, or monthly.
spokenLanguageCodestring""Optional spoken language code, such as en or zh.
aiOnlybooleanfalseKeep repositories whose public topics or description indicate machine learning or related work.
filterTopicsstring array[]Keep rows with at least one matching public repository topic.
includeReadmebooleanfalseRequest README markdown for each selected repository when available.
maxReposinteger0Maximum output rows across the whole run; zero means all visible rows.
githubTokensecret stringunsetOptional credential for a larger public repository metadata allowance.
proxyConfigurationobjectenabledConnection configuration for the public trending pages and metadata requests.

A practical input for a weekly watchlist is:

{
"languages": ["python", "javascript", "rust"],
"since": "weekly",
"maxRepos": 35,
"includeReadme": false
}

This input was used in the golden run. It returned 35 items: the actor stopped at the specified cap after visiting the selected lists. Every returned item had a rank, owner, repository name and URL, star and fork totals, period star gain, source list, and extraction timestamp. All 35 also received public repository metadata in that run. Counts will change as the live trending pages change.

To focus on a topic, use filterTopics, for example ["rust", "database"]. A repository passes if at least one of its public tags matches exactly, ignoring case. This filter depends on successful metadata requests. aiOnly checks topic tags and description phrases; it is a broad discovery filter and may include or miss edge cases. Apply your own review if classification affects a decision.

Output example

This is one item from the weekly golden run, with identifying handles and links redacted. The contributor array is shortened here; the actual item contained five public handles and avatar URLs shown on the page.

{
"rank": 1,
"owner": "[redacted]",
"name": "[redacted]",
"fullName": "[redacted]",
"url": "[redacted]",
"description": null,
"language": "Python",
"stars": 37699,
"forks": 5446,
"starsToday": 2623,
"starsGrowthPercent": 7.48,
"starsPeriod": "weekly",
"topics": [],
"license": "Apache-2.0",
"lastUpdated": "2026-09-21T21:10:41Z",
"readmeContent": null,
"builtBy": [{"username": "[redacted]", "avatar": "[redacted]"}],
"repoId": 1165056385,
"homepage": null,
"openIssues": 223,
"defaultBranch": "main",
"createdAt": "2026-02-23T19:24:50Z",
"trendingLanguage": "python",
"trendingUrl": "https://github.com/trending/python?since=weekly",
"scrapedAt": "2026-09-26T23:53:31.668537Z"
}

The displayed description was empty for this repository, so description is null. An empty topics array can mean the repository has no public tags; if a metadata request is limited or fails, the actor keeps page fields and the metadata fields may also be empty. README content stays null when includeReadme is false.

Use cases

  • Technology watchlists: Save a daily or weekly snapshot and compare which repositories entered, left, or moved within a language's ranking.
  • Programming language research: Collect the same period across several language lists, then compare star gains or repository types using trendingLanguage.
  • Repository discovery: Filter by public topic tags to find projects related to a defined technical area, and inspect the project pages for context.
  • Documentation collections: Include README markdown for a small selected set of public repositories when the text itself is needed for an internal index.
  • Newsletter preparation: Export a shortlist containing links, concise descriptions, recent star gains, and source ranking for editorial review.
  • Open source monitoring: Track public license identifiers, default branches, and last push timestamps alongside trend changes over time.

A trending position describes attention on the selected public list. It is not a quality score, security assessment, or guarantee of continued growth. Star gains are the site's displayed period values, while stars and forks are live totals from the same page view. Keep the source URL and extraction time if you compare results collected on different dates.

How much does it cost to scrape GitHub?

The configured result event price is $0.001 per output row, or $1 per 1,000 results ($1/1K). A run that produces 35 rows therefore has a result charge of $0.035. A 100-row export across several selected language pages has a result charge of $0.10; 1,000 output rows across repeated runs total $1.00 in result charges. The platform presents the applicable charges before a run, and account pricing can change.

ScenarioOutput rowsResult event charge
One short language list15$0.015
Three language lists with a cap35$0.035
Repeated watchlist snapshots1,000 total$1.00

One public trending page commonly has roughly a few dozen rows or fewer. The exact count varies with period, language, spoken language, and the live site. maxRepos limits emitted rows, not the number of repository pages downloaded before an output filter finds matches. Selecting includeReadme adds requests, and a large list of languages increases run time. Connection and platform usage may be shown separately by the platform; the table above describes the result event price.

Tips for best results

Start with one broad list to inspect available repositories and fields. Then choose language or topic filters that fit the question you are trying to answer. The general page and language pages have separate rankings, so do not compare rank: 1 across pages as if it were a shared global position. Use trendingLanguage, since, and trendingUrl to keep each rank in context.

When you need at least 30 rows, request several language pages. In the tested weekly snapshot, the Python page showed 16 rows, the JavaScript page showed 14, and the Rust page showed 21. The golden input selected all three and capped output at 35. These are observations from one date, not guaranteed list sizes. If the same repository appears on multiple pages, the actor emits both appearances because the rank and source list differ.

Use filterTopics when you need exact topic matches. Public topic tags are retrieved from repository metadata; a repository without tags does not match. If you need a wider thematic set, aiOnly also checks description phrases. A blank description can still match when the repository has a relevant tag. If metadata is limited, description matching remains possible but a tag-only match may be missed.

Only enable includeReadme for runs where markdown is required. The extra request per repository can make long runs slower and can exhaust an anonymous request allowance. A private input token can improve metadata coverage for recurring or large collections. The actor does not print that credential or add it to dataset items. Use a credential with only the access required for public repository reads.

For historical analysis, schedule repeat runs and save each dataset. The trending pages expose a current ranking rather than a built-in history of prior ranks. scrapedAt records when each row was extracted. Comparing runs means joining on fullName, trendingLanguage, and starsPeriod, then ordering by scrapedAt. A repository can be absent because it dropped off the visible list, because a filter removed it, or because the source list was shorter that day.

Limits

Trending pages do not provide a normal next-page control for older or lower-ranked results. This actor collects the rows visible on each requested page; maxRepos: 0 means all visible rows, not all repositories on the site. The golden snapshot observed 14 to 21 rows per selected language page. The general and spoken-language pages can have different counts.

Repository metadata and README text come from separate public requests. Without a token, those requests can be rate limited; a failed metadata request leaves the trending-page fields intact and sets some enrichment fields to null or empty arrays. Some repositories have no description, topics, homepage, license, or README even when metadata requests succeed. lastUpdated is the most recent push timestamp, which differs from the time the repository entered trending.

filterTopics works from fetched topic tags. If a metadata limit is reached, fewer rows may pass that filter. A maximum output cap applies after filters, so requesting 10 results with a restrictive topic filter can still inspect more than 10 repositories. Topic matching ignores case but does not expand synonyms. aiOnly uses a fixed group of public tags and description phrases, so it is suitable for discovery rather than definitive classification.

The actor reads public repository and contributor details shown on the source pages. builtBy is the short contributor list displayed on trending; it is not a full contributor roster. The actor does not visit private repositories or authenticate to user accounts. If the public page changes its markup, fields sourced from that page may need an update.

Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

https://mcp.apify.com?tools=mlg14/github-scraper

An agent gets back one row per trending repository with rank, owner, name, stars, forks, star gain, topics and license. Keep maxRepos at 20 or less for quick answers; each row carries its trending list and period.

Prompt 1: "Show this week's trending Python repositories on GitHub."

{"languages": ["python"], "since": "weekly", "maxRepos": 20}

Prompt 2: "What are today's trending machine learning repositories on GitHub?"

{"since": "daily", "aiOnly": true, "maxRepos": 20}

Prompt 3: "Find monthly trending Rust repositories tagged database, with README text."

{"language": "rust", "since": "monthly", "filterTopics": ["database"], "includeReadme": true, "maxRepos": 10}

FAQ

The actor requests publicly visible trending and repository information. Your use of the exported data should follow applicable site terms, privacy rules, and your own purpose. Review data use requirements before redistributing contributor details or creating profiles of individuals.

Do I need to configure a proxy?

The default connection configuration is ready for typical runs. You can supply proxyConfiguration when your account or environment needs different routing. The golden run completed with its default settings and did not need a browser challenge or a proxy escalation.

How fast is a run?

Duration depends mostly on how many trending pages and repository metadata requests are made. The 35-result golden run completed on the platform in about 43 seconds after the build. README requests add work. Live site latency and rate limits can change run time.

Can I schedule a daily watchlist?

Yes. Schedule the same input daily or weekly and retain the resulting datasets. Compare rows using fullName plus the source page and period. A run provides the current visible list; it does not recreate rankings from dates before the first scheduled snapshot.

Can I export to a spreadsheet?

Yes. Download the default dataset as CSV or Excel, or connect a workflow that reads dataset items. Arrays such as topics and builtBy may be serialized into cells; JSON preserves their original structure.

Why is a field empty?

Some repositories omit optional information. Metadata fields can also be missing when a public metadata request fails or is rate limited. readmeContent is null unless requested and successfully fetched. The source trendingUrl lets you check what the trending page displayed at extraction time.

Why does starsToday show a weekly value?

The field name stays stable across periods, but the value always reflects the selected period. Read starsPeriod alongside it. For since: "weekly", it represents the displayed stars gained this week; for monthly, it represents the displayed monthly gain.

Integrations

Run this actor on a schedule, read results through the platform API, or connect dataset completion to a webhook. Export the dataset for spreadsheets and other workflow services. A downstream process can filter, sort, and compare the flat repository records without parsing HTML or recomputing page rank.

Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.