# GitHub Repositories Scraper (`neuro-scraper/github-repositories-scraper`) Actor

GitHub Repositories Scraper exports public GitHub repositories from searches, URLs, users, organisations, topics or trending lists: stars, forks, watchers, issues, license, topics, commits, releases, contributors, languages, owner profile, health scores and change tracking.

- **URL**: https://apify.com/neuro-scraper/github-repositories-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### GitHub Repositories Scraper

**GitHub Repositories Scraper** exports public GitHub repositories into a clean table: stars, forks, watchers, open issues, language and language breakdown, license, topics, commits, releases and the latest release, top contributors, README text, the owner's profile, maintenance status, health scores, benchmarks and a change log against your previous run. Developers, open-source program offices, VCs, analysts, recruiters and tool makers use it to map a technology space, audit dependencies, find maintainers, shortlist libraries and watch competitors.

> **Also from Neuro Scraper:** need short videos too? Try the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - reels, views, likes, captions and video links in one table.

The GitHub Repositories Scraper runs in the cloud on Apify: give it what you are looking for, press Start, and download a clean table of repositories as JSON, CSV, Excel or HTML - or pull it from the API. No account, no login and no browser extension are needed, and the GitHub Repositories Scraper keeps every column in the same order on every row so your spreadsheet formulas never break.

#### What the GitHub Repositories Scraper gives you

- `rank` - Position of the repository in its search, list or input order (1 = first).
- `id` - GitHub's numeric repository id.
- `fullName` - owner/name, e.g. psf/requests.
- `name` - Repository name.
- `owner` - Login of the owning user or organisation.
- `ownerType` - User or Organization.
- `ownerUrl` - Link to the owner's profile.
- `ownerAvatarUrl` - Owner's avatar image.
- `description` - Short description written by the owner.
- `url` - Link to the repository.
- `repoUrl` - Same link (column name used by other tools).
- `homepage` - Project website set by the owner.

The full list of 71 columns is in [Output fields](#output-fields) below.

### How to use the GitHub Repositories Scraper

1. Open the GitHub Repositories Scraper in Apify Console and click **Try for free** (or **Start** if you already use it).
2. Fill in the input form - the prefilled values already return results, so you can simply press Start first.
3. Set the maximum number of repositories you want; small runs are quick and cheap.
4. Click **Start** and watch the log: the GitHub Repositories Scraper reports every page it reads and how many new repositories it found.
5. Open the **Output** tab when the run finishes and download the table, or connect it to Google Sheets, Make, Zapier or your own code through the API.

### Input options of the GitHub Repositories Scraper

Every option of the GitHub Repositories Scraper is explained below: what it does, which values it accepts, its default and a tip.

#### Search queries (`searchQueries`)

`searchQueries` - is the list of keywords to search repositories for, one per line. Each line is its own search, and every search returns up to Max repositories per input rows. GitHub search qualifiers such as language:python, stars:>500 or org:apache work inside a line, and the filters below (language, stars, forks, license, dates, forks, archived) are added to every line automatically. Example: \["web scraper", "vector database"]. Prefilled example: `["web scraper"]`.

#### Repository, user or organisation URLs (`startUrls`)

`startUrls` - takes GitHub links or owner/repo names. A repository link (https://github.com/psf/requests) or a short name (psf/requests) gives exactly that repository. A user or organisation link (https://github.com/microsoft) gives the public repositories of that account, up to Max repositories per input. Mix them freely in one list; duplicates are removed.

#### Users (their repositories) (`usernames`)

`usernames` - lists GitHub user logins whose own public repositories you want, for example sindresorhus. Each login is one input, so the limit Max repositories per input applies to every user separately. Use it to export a developer's portfolio with stars, forks, languages and activity for each project.

#### Organisations (their repositories) (`organizations`)

`organizations` - lists GitHub organisation logins such as microsoft, apache or vercel. Every organisation returns its public repositories, up to Max repositories per input each, with the same columns as a search. Combine it with Only the top N by score to keep just the most important projects of a large organisation.

#### Topics (`topic`)

`topic` - adds one or more repository topics, for example machine-learning or web-scraping. Each topic is added to every search as a topic filter; used alone (without search queries) it lists the most starred repositories tagged with those topics. Topic names are lower-case words joined by hyphens.

#### Mode (`mode`)

`mode` - chooses what the run does. auto (the default) decides from the inputs you filled: URLs, users and organisations give their repositories, search queries give search results, and a trending period gives the trending list. search, urls, trending and users force one behaviour. users turns the search queries into developer profile rows. Allowed values: `auto` (Auto (from the filled inputs)), `search` (Search repositories), `urls` (URLs / users / organisations), `trending` (Trending repositories), `users` (Users (profiles)). Default: `"auto"`.

#### Search for (`type`)

`type` - switches the searches between repositories and users. repositories (default) gives one row per repository. users runs the same search queries as a developer search and returns one profile row per person, with name, bio, company, location, followers, website, social links and repository totals, like the GitHub User Profiles Scraper. Allowed values: `repositories` (Repositories), `users` (Users (profile rows)). Default: `"repositories"`.

#### Max repositories per input (`maxItems`)

`maxItems` - is the number of repositories each search query, user, organisation or topic returns. The search follows its result pages (100 repositories per page) until this number is reached or the results end; GitHub itself stops a single search at 1,000 results. Repository links always give one row each. Default 20. Default: `20`. Range: 1 to 100000.

#### Max search pages (`maxPages`)

`maxPages` - caps how many result pages of 100 repositories a search may read, as a second safety limit next to Max repositories per input. Leave it empty to let the item limit decide. Example: 2 pages = at most 200 repositories per query. Range: 1 to 100.

#### Sort by (`sort`)

`sort` - orders the search results before they are cut at the limit: stars (most starred first, default), forks, updated (recently updated first), help-wanted-issues or best-match (GitHub's relevance order). The rank column and the ranking explanation follow this order. Allowed values: `stars` (Most stars), `forks` (Most forks), `updated` (Recently updated), `help-wanted-issues` (Help-wanted issues), `best-match` (Best match). Default: `"stars"`.

#### Sort order (`sortOrder`)

`sortOrder` - is desc (highest first, default) or asc (lowest first) for the sort field. Ascending order is useful to find small, new or overlooked projects for a keyword, for example the least starred repositories that still match. Allowed values: `desc` (Descending (highest first)), `asc` (Ascending (lowest first)). Default: `"desc"`.

#### Programming language (`language`)

`language` - keeps only repositories whose main language is this one, for example Python, TypeScript, Go or Rust. The value is added to every search. Empty or any means all languages. Spelling follows GitHub's language names, case does not matter.

#### Min stars (`minStars`)

`minStars` - keeps only repositories with at least this many stars. Combine it with Max stars for a star range, for example 100 to 1,000 stars to find growing mid-size projects instead of the giants. Empty means no lower limit. Range: 0 to no upper limit.

#### Max stars (`maxStars`)

`maxStars` - keeps only repositories with at most this many stars. Useful together with Min stars to target a band of repositories, or alone to skip the famous projects that dominate every search. Empty means no upper limit. Range: 0 to no upper limit.

#### Min forks (`minForks`)

`minForks` - keeps only repositories forked at least this many times, a good signal that other people build on the code. Example: 50. Empty means no limit. The filter is added to every search query of the run. Range: 0 to no upper limit.

#### License (`license`)

`license` - keeps only repositories under one license: mit, apache-2.0, gpl-3.0, gpl-2.0, bsd-2-clause, bsd-3-clause, lgpl-3.0, lgpl-2.1, mpl-2.0, agpl-3.0, unlicense, isc, cc0-1.0 or epl-2.0. any (default) keeps every license and also repositories without one. Allowed values: `any` (any), `mit` (mit), `apache-2.0` (apache-2.0), `gpl-3.0` (gpl-3.0), `gpl-2.0` (gpl-2.0), `bsd-2-clause` (bsd-2-clause), `bsd-3-clause` (bsd-3-clause), `lgpl-3.0` (lgpl-3.0), `lgpl-2.1` (lgpl-2.1), `mpl-2.0` (mpl-2.0), `agpl-3.0` (agpl-3.0), `unlicense` (unlicense), `isc` (isc), `cc0-1.0` (cc0-1.0), `epl-2.0` (epl-2.0). Default: `"any"`.

#### Created after (`createdAfter`)

`createdAfter` - keeps only repositories created on or after this date, in the format YYYY-MM-DD, for example 2026-01-01. Use it to find new projects in a field. It is added to every search query as a creation-date filter.

#### Pushed after (`pushedAfter`)

`pushedAfter` - keeps only repositories that received a push (new commits) on or after this date, YYYY-MM-DD. This is the simplest way to skip abandoned projects. Example: 2026-06-01 keeps only repositories active in the last months.

#### Include forks (`includeForks`)

`includeForks` - adds forked repositories to search results. GitHub leaves forks out of searches by default, so this is false by default too. Turn it on when you also want copies of projects that people changed. Repository links are always returned, fork or not. Default: `false`.

#### Include archived repositories (`includeArchived`)

`includeArchived` - keeps archived (read-only) repositories in the results when true (default). Set it to false to drop every archived repository from the searches, for example when you shortlist libraries that still receive fixes. Default: `true`.

#### Go past 1,000 search results (`autoPartitionResults`)

`autoPartitionResults` - lets a search go past GitHub's limit of 1,000 results per search. When it is on and Max repositories per input is above 1,000, the run repeats the search for every creation year (2026, 2025, 2024 ...) and merges the results without duplicates until the limit is reached. Default false. Default: `false`.

#### Only the top N by score (`deliverTopN`)

`deliverTopN` - keeps only the N best repositories of every input, ranked by the overall score column (popularity, activity, community and hygiene). 0 or empty keeps all. Example: search 200 repositories with Max repositories per input = 200 and keep the top 20 here. Range: 0 to no upper limit.

#### Open every repository page (`enrichRepoData`)

`enrichRepoData` - opens every repository's own page to read the exact watcher count, number of commits, releases and tags, topics, license, homepage, community files (code of conduct, contributing guide, security policy) and the README. Default true. Turn it off for the fastest possible run with search columns only. Default: `true`.

#### Extra data per repository (`fetchExtras`)

`fetchExtras` - picks the extra data read for every repository: latestRelease (tag, name, date), languages (share of each language in percent), contributors (top contributors with their commit counts), readme (README as plain text) and issues (recent issues and pull requests). Default: latestRelease, languages, contributors and readme. Default: `["latestRelease", "languages", "contributors", "readme"]`.

#### Contributors per repository (`maxContributors`)

`maxContributors` - sets how many top contributors are listed per repository when the extras include contributors, from 1 to 100. Default 10. The first contributor is also copied into the topContributor column for spreadsheets. Default: `10`. Range: 1 to 100.

#### Include the owner profile (`includeOwnerProfile`)

`includeOwnerProfile` - adds the owner's public profile to every row as the ownerProfile column: display name, bio, company, location, website, X handle, avatar, number of repositories, followers and following, and whether the owner is an organisation. Owners are read once per run, even when they own many repositories. Default true. Default: `true`.

#### Issue state (`state`)

`state` - chooses which issues and pull requests are listed when the extras include issues: open (default), closed or all. The list is sorted by the last update, newest first, and shows title, author, labels, comment count, dates and the link. Allowed values: `open` (open), `closed` (closed), `all` (all). Default: `"open"`.

#### Issues updated since (`since`)

`since` - keeps only issues and pull requests updated on or after this date (YYYY-MM-DD) when the extras include issues. Example: 2026-11-01 for this month's activity. It does not filter the repositories themselves - use Pushed after for that.

#### Issues per repository (`issuesPerRepo`)

`issuesPerRepo` - is the number of recent issues and pull requests listed per repository when the extras include issues, from 1 to 100. Default 10. Bigger numbers make the run slower because every issue list is a separate request. Default: `10`. Range: 1 to 100.

#### Include issue comments (`includeComments`)

`includeComments` - adds up to 10 comments (author, date, text) to every listed issue when the extras include issues. Default false. Useful for support analysis and to see how maintainers answer, but it adds one request per issue. Default: `false`.

#### Include pull request reviews (`includeReviews`)

`includeReviews` - adds the reviews (reviewer, state such as APPROVED or CHANGES_REQUESTED, date) to every listed pull request when the extras include issues. Default false. It shows how strict and how fast code review is in a project. Default: `false`.

#### Include pull request files (`includeFiles`)

`includeFiles` - adds the changed files (file name, status, added and deleted lines) to every listed pull request when the extras include issues. Default false. Use it to see which parts of a code base change most often. Default: `false`.

#### Trending period (`trendingSince`)

`trendingSince` - turns the run into a trending list when no search or URL is given (or with mode trending): daily (today), weekly (this week) or monthly (this month). Every trending repository gets the same columns as a search result plus starsToday and builtBy. Allowed values: `daily` (daily), `weekly` (weekly), `monthly` (monthly).

#### Trending language (`trendingLanguage`)

`trendingLanguage` - limits the trending list to one programming language, for example python, rust or typescript. Empty means all languages. Use the GitHub Trending Scraper for several languages and periods in one run.

#### Trending spoken language (`spokenLanguageCode`)

`spokenLanguageCode` - limits the trending list to repositories written for speakers of one language, as a two-letter code: en, zh, es, ja, de and so on. Empty means any spoken language. It works only together with the trending period.

#### Benchmark repositories (`compareRepos`)

`compareRepos` - lists repositories (owner/repo or links) to compare every result with. They are read like the other repositories but not saved as rows; instead the benchmarks column of every row shows its star, fork and activity percentile among all results plus these comparison repositories.

#### Compare with the previous run (`compareToPreviousRun`)

`compareToPreviousRun` - remembers the results of this exact input and compares the next run with them. Every row then says changeType new, updated or unchanged, previousState holds the earlier stars, forks, open issues and push date, and trend shows the star change since then. Default true - schedule the run daily to monitor repositories. Default: `true`.

#### Output format (`outputFormat`)

`outputFormat` - controls the width of every row: enriched (default) gives all columns; minimal gives only rank, name, link, description, stars, forks, language, topics, license, push date and time; raw gives all columns plus the original GitHub record of the repository in a raw column. Allowed values: `enriched` (Enriched (all columns)), `minimal` (Minimal (main columns)), `raw` (Raw (all columns + original record)). Default: `"enriched"`.

#### Add a sequential id (`addSequentialId`)

`addSequentialId` - adds a sequentialId column with 1, 2, 3 ... in the order the rows were saved. Default false. Handy when you merge several runs into one sheet and need a stable row number next to the GitHub id. Default: `false`.

#### Max concurrency (`maxConcurrency`)

`maxConcurrency` - sets how many repositories are processed at the same time, from 1 to 20. Default 8, which finishes a 20-repository run in about ten seconds. Lower it if you run many copies in parallel; higher values rarely help. Default: `8`. Range: 1 to 20.

#### Proxy configuration (`proxyConfiguration`)

`proxyConfiguration` - is optional. GitHub answers normal connections, so the default is no proxy and nothing has to be set. Choose an Apify proxy or your own proxy only if your network or company policy needs one; the run then uses one fixed proxy address for the whole run. Default: `{"useApifyProxy": false}`.

### Input examples for the GitHub Repositories Scraper

Copy one of these into the JSON tab of the input form (or send it to the API):

**Search repositories by keyword**

```json
{
  "searchQueries": [
    "web scraper"
  ],
  "maxItems": 20,
  "sort": "stars"
}
```

**Filtered search: Python, 100-5,000 stars, MIT, active this year**

```json
{
  "searchQueries": [
    "vector database"
  ],
  "language": "Python",
  "minStars": 100,
  "maxStars": 5000,
  "license": "mit",
  "pushedAfter": "2026-01-01",
  "maxItems": 50
}
```

**Repository links with issues and pull requests**

```json
{
  "startUrls": [
    "https://github.com/psf/requests",
    "pallets/flask"
  ],
  "fetchExtras": [
    "latestRelease",
    "languages",
    "contributors",
    "readme",
    "issues"
  ],
  "state": "all",
  "issuesPerRepo": 5
}
```

**All repositories of an organisation, top 10 by score**

```json
{
  "organizations": [
    "vercel"
  ],
  "maxItems": 200,
  "deliverTopN": 10
}
```

**Topic list compared with two benchmarks**

```json
{
  "topic": [
    "web-scraping"
  ],
  "maxItems": 30,
  "compareRepos": [
    "scrapy/scrapy",
    "apify/crawlee"
  ]
}
```

### Output fields

Each row of the GitHub Repositories Scraper output is one repository. Columns:

| Field | What it contains |
|---|---|
| `rank` | Position of the repository in its search, list or input order (1 = first). |
| `id` | GitHub's numeric repository id. |
| `fullName` | owner/name, e.g. psf/requests. |
| `name` | Repository name. |
| `owner` | Login of the owning user or organisation. |
| `ownerType` | User or Organization. |
| `ownerUrl` | Link to the owner's profile. |
| `ownerAvatarUrl` | Owner's avatar image. |
| `description` | Short description written by the owner. |
| `url` | Link to the repository. |
| `repoUrl` | Same link (column name used by other tools). |
| `homepage` | Project website set by the owner. |
| `homepageUrl` | Same website (alternative column name). |
| `stars` | Number of stars. |
| `forks` | Number of forks. |
| `watchers` | Number of people watching the repository. |
| `openIssues` | Open issues and pull requests. |
| `language` | Main programming language. |
| `languages` | Share of every language in percent, e.g. {"Python": 99.4}. |
| `license` | License id, e.g. MIT or Apache-2.0. |
| `licenseName` | Full license name. |
| `topics` | Topics (tags) of the repository. |
| `createdAt` | Creation date (ISO 8601). |
| `updatedAt` | Last change of the repository record. |
| `pushedAt` | Last push of code. |
| `daysSinceLastPush` | Days since the last push. |
| `age_days` | Age of the repository in days. |
| `stars_per_day` | Stars divided by age in days. |
| `fork_to_star_ratio` | Forks divided by stars. |
| `isAbandoned` | true when archived or no push for more than 365 days. |
| `isArchived` | true when the owner archived it (read-only). |
| `isFork` | true when it is a fork of another repository. |
| `isTemplate` | true when it is a template repository. |
| `sizeKb` | Size of the repository in KB. |
| `size` | Same size in KB (alternative column name). |
| `defaultBranch` | Default branch, e.g. main. |
| `hasIssues` | Issues enabled. |
| `hasWiki` | Wiki enabled. |
| `hasPages` | GitHub Pages site enabled. |
| `hasDiscussions` | Discussions enabled. |
| `commitCount` | Number of commits on the default branch. |
| `releaseCount` | Number of releases. |
| `tagCount` | Number of tags. |
| `latestRelease` | Latest release: tagName, name, publishedAt, url, isPrerelease. |
| `contributors` | Top contributors: username, contributions, contributorType, profileUrl, avatarUrl. |
| `topContributor` | The first contributor with username, contributions, contributorType, profileUrl, repositoryFullName, repositoryUrl. |
| `communityProfile` | Which community files exist: readme, license, codeOfConduct, contributing, securityPolicy. |
| `activityStats` | commitCount, releaseCount, tagCount, openIssues, contributorsListed, daysSinceLastPush in one object. |
| `readmeContent` | README as plain text (up to 20,000 characters). |
| `ownerProfile` | Owner profile: username, name, bio, company, location, blog, twitterUsername, avatarUrl, publicRepos, publicGists, followers, following, profileUrl, isOrganization. |
| `scores` | popularity, activity, community, hygiene and overall score (0-100). |
| `benchmarks` | starsPercentile, forksPercentile, activityPercentile and comparedWith (number of repositories compared). |
| `recommendations` | Plain-language notes, e.g. archived, no license, unmaintained, actively developed. |
| `explanations` | How every score was calculated for this repository. |
| `trend` | Star change since the previous run, or the lifetime star rate with a label (hot, rising, steady, quiet). |
| `maintenance` | status (active, maintained, slowing, abandoned, archived), daysSinceLastPush, lastPushAt, isArchived. |
| `forecast` | Projected stars in 30 and 90 days (linear projection of the lifetime star rate). |
| `rankingExplanation` | Why the repository has its rank (query, sort field, order). |
| `changeType` | new, updated or unchanged compared with the previous run of the same input. |
| `previousState` | stars, forks, openIssues, pushedAt, isArchived and scrapedAt of the previous run. |
| `changedFields` | Which of stars, forks, openIssues, pushedAt, isArchived changed since the previous run (only when a previous run exists). |
| `starsToday` | Stars gained in the trending period (trending mode only). |
| `builtBy` | Logins shown as builders on the trending list (trending mode only). |
| `enrichmentSkipped` | true when some extras could not be read in this run. |
| `enrichmentSkippedReason` | Which extras were skipped and why. |
| `mode` | search or urls - how the row was found. |
| `type` | Row type: repository. |
| `sourceUrl` | The search or list the row came from. |
| `searchQuery` | The full search (with filters) that found the repository. |
| `extractedAt` | Time the row was made (UTC). |
| `scrapedAt` | Same time (alternative column name). |

### Which columns can be empty

The GitHub Repositories Scraper fills every column the repository itself has. A column is empty only when the site has no value for that repository - measured on our test runs:

| Columns | When they are empty | Measured |
|---|---|---|
| `starsToday`, `builtBy` | always empty outside trending mode - they exist only on the trending list | 21/21 empty in the search + URL test, filled in trending mode |
| `previousState`, `changedFields` | previousState is empty on the first run of an input (nothing to compare yet); changedFields is an empty list when nothing changed since the previous run | first run 21/21 empty previousState; second run 21/21 unchanged, so changedFields empty |
| `enrichmentSkippedReason` | empty when every extra was read - the good case | 21/21 empty (nothing skipped) |
| `latestRelease` | the repository has never published a release (releaseCount = 0) | 8/21; every one of them had releaseCount 0 or no releases at all |
| `homepage`, `homepageUrl` | the owner did not set a project website | 8/21 |
| `topics` | the owner did not add topics | 4/21 |
| `license`, `licenseName` | the repository has no license file GitHub recognises | 3/21 |
| `language`, `languages` | the repository holds no code files, e.g. an awesome-list of links | 1/21 |
| `searchQuery` | empty for rows that came from a repository link instead of a search | 1/21 (the URL row) |

### How much does the GitHub Repositories Scraper cost?

The GitHub Repositories Scraper uses pay-per-result pricing: you pay only for the repositories you get. The price is **$1.49 per 1,000 repositories** on the Free plan and lower on paid plans ($1.39 Bronze, $1.29 Silver, $1.19 Gold and above), plus a tiny start fee per run. Worked example: 500 repositories cost about 500 / 1,000 x $1.49 = **$0.75**. Free-plan users get up to 30 repositories per run, which is enough to test the GitHub Repositories Scraper before paying anything.

### Use the GitHub Repositories Scraper with the API

Start the GitHub Repositories Scraper from your own code and read the repositories when the run is finished.

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/github-repositories-scraper").call(run_input={"searchQueries": ["web scraper"], "maxItems": 20, "sort": "stars"})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

**Node.js**

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: "<YOUR_API_TOKEN>" });
const run = await client.actor("neuro-scraper/github-repositories-scraper").call({"searchQueries": ["web scraper"], "maxItems": 20, "sort": "stars"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**cURL** (run and get the items in one call)

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~github-repositories-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" -H "Content-Type: application/json" -d '{"searchQueries": ["web scraper"], "maxItems": 20, "sort": "stars"}'
```

### GitHub Repositories Scraper use cases

- Map a technology space: search a keyword, keep the top 100 by stars and compare activity, licenses and maintainers.
- Dependency audit: check the libraries you use for archived status, missing licenses, last push and open issues.
- Adoption shortlist: rank candidate libraries by the overall score and read the recommendations column.
- Investor and analyst research: watch star growth of the projects in a category with scheduled runs and the change log.
- Recruiting and developer relations: find active maintainers through the top contributors and owner profiles.

### Tips for better results with the GitHub Repositories Scraper

- Use GitHub qualifiers inside a query for precise searches, e.g. "scraper language:go stars:>200".
- For more than 1,000 results per keyword turn on Go past 1,000 search results.
- Schedule the same input daily with Compare with the previous run to get a change log of stars and pushes.
- Turn off the extras you do not need for the fastest runs.

### Limits of the GitHub Repositories Scraper

- GitHub stops one search at 1,000 results; Go past 1,000 search results splits the search by year to reach more.
- Languages, contributors and issues count against GitHub's hourly limit for one network address. Very large runs can reach it; the rows then carry enrichmentSkipped = true and the reason, and every other column is still filled.
- Only public repositories are returned. Email addresses are never collected.

### GitHub Repositories Scraper FAQ

#### Can the GitHub Repositories Scraper search by language, stars and license?

Yes. Use the language, Min stars, Max stars, Min forks, license, created and pushed date filters; they are added to every search query. GitHub qualifiers inside the query work too.

#### Does the GitHub Repositories Scraper return contributors and the README?

Yes. The default extras include the latest release, the language breakdown, the top contributors and the README as text.

#### How do I monitor repositories with the GitHub Repositories Scraper?

Keep Compare with the previous run on and schedule the run. Each row then shows changeType, previousState and the star change in trend.

#### Can the GitHub Repositories Scraper export issues and pull requests?

Yes. Add issues to the extras and choose the state, date, number per repository and whether comments, reviews and changed files are included.

#### Does the GitHub Repositories Scraper give contributor emails?

No. It never collects email addresses or phone numbers.

#### Do I need an account or a login to use the GitHub Repositories Scraper?

No. The GitHub Repositories Scraper collects only data anyone can see without signing in. You need just an Apify account to run it.

#### How fast is the GitHub Repositories Scraper?

The GitHub Repositories Scraper works on several repositories at the same time and streams every row to the dataset as soon as it is ready; a typical test of 20 repositories finishes in well under two minutes.

#### Can I schedule the GitHub Repositories Scraper?

Yes. Create a task with your input and add a schedule (hourly, daily, weekly) in Apify Console; each run of the GitHub Repositories Scraper then delivers fresh repositories automatically.

#### Which formats can I download from the GitHub Repositories Scraper?

JSON, CSV, Excel (XLSX), XML, HTML table and RSS - from the Output tab or through the API.

#### Can I connect the GitHub Repositories Scraper to Google Sheets, Make or Zapier?

Yes. Apify integrations send the GitHub Repositories Scraper results to Google Sheets, Slack, Make, Zapier, n8n, webhooks and more after each run.

#### What happens if a run of the GitHub Repositories Scraper is interrupted?

Every repository already scraped stays in the dataset; start the run again (or resurrect it) to continue.

#### Is it legal to use the GitHub Repositories Scraper?

The GitHub Repositories Scraper collects publicly visible data only. Make sure your use of the data follows the site terms and data-protection laws such as GDPR and CCPA.

#### Why is a column empty in my GitHub Repositories Scraper results?

See [Which columns can be empty](#which-columns-can-be-empty): the site has no value for that repository. The GitHub Repositories Scraper never leaves out a value the site shows.

#### Do you offer custom versions of the GitHub Repositories Scraper?

Yes - open an issue on the Actor page and describe the fields or sources you need.

### Get started with the GitHub Repositories Scraper

Press **Try for free**, keep the prefilled input and start your first run of the GitHub Repositories Scraper - your first repositories are ready in about a minute. Questions or ideas for the GitHub Repositories Scraper? Open an issue on the Actor page and we answer quickly.

### More scrapers from Neuro Scraper

| Actor | What it extracts |
|---|---|
| [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) | Facebook reels with views, likes, comments, captions and video links |
| [GitHub Trending Scraper](https://apify.com/neuro-scraper/github-trending-scraper) | Trending repositories and developers by language and period |
| [GitHub User Profiles Scraper](https://apify.com/neuro-scraper/github-user-profiles-scraper) | Developer and organisation profiles with repository totals |

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search repositories for, one per line, e.g. web scraper. GitHub search qualifiers work too (language:python stars:>100). The filters below are added to every query.

## `startUrls` (type: `array`):

GitHub URLs or owner/repo names: a repository (https://github.com/psf/requests or psf/requests) gives that repository; a user or organisation (https://github.com/microsoft) gives its public repositories.

## `usernames` (type: `array`):

GitHub logins whose own public repositories you want, e.g. sindresorhus.

## `organizations` (type: `array`):

GitHub organisation logins whose public repositories you want, e.g. microsoft.

## `topic` (type: `array`):

Repository topics, e.g. machine-learning. Every topic is added as topic:<name> to the search (alone it lists the topic's repositories).

## `mode` (type: `string`):

What to scrape. Auto picks it from the inputs you filled.

## `type` (type: `string`):

repositories = one row per repository; users = the search queries find developer profiles instead.

## `maxItems` (type: `integer`):

How many repositories each search query / user / organisation gives (the search follows its next pages until the limit). Repository URLs give one row each.

## `maxPages` (type: `integer`):

Optional cap on search pages (100 repositories per page).

## `sort` (type: `string`):

Order of the search results.

## `sortOrder` (type: `string`):

Descending or ascending order for the sort field.

## `language` (type: `string`):

Only repositories in this language, e.g. Python, TypeScript, Go. Empty or any = all languages.

## `minStars` (type: `integer`):

Only repositories with at least this many stars.

## `maxStars` (type: `integer`):

Only repositories with at most this many stars.

## `minForks` (type: `integer`):

Only repositories with at least this many forks.

## `license` (type: `string`):

Only repositories under this license.

## `createdAfter` (type: `string`):

Only repositories created on or after this date (YYYY-MM-DD).

## `pushedAfter` (type: `string`):

Only repositories with a push on or after this date (YYYY-MM-DD).

## `includeForks` (type: `boolean`):

Also return forked repositories in searches (GitHub leaves forks out by default).

## `includeArchived` (type: `boolean`):

Turn off to drop archived (read-only) repositories.

## `autoPartitionResults` (type: `boolean`):

GitHub stops a search at 1,000 results. When on and you ask for more, the search is split by creation year to collect more repositories.

## `deliverTopN` (type: `integer`):

Keep only the N best repositories of every input by overall score (0 = all).

## `enrichRepoData` (type: `boolean`):

Read each repository's own page for exact watchers, commits, releases, tags, topics, license and community files.

## `fetchExtras` (type: `array`):

Additional data read for every repository.

## `maxContributors` (type: `integer`):

How many top contributors to list when contributors are requested.

## `includeOwnerProfile` (type: `boolean`):

Add the owner's public profile (name, bio, company, location, followers, website) to every row.

## `state` (type: `string`):

Which issues / pull requests to list when Extra data includes issues.

## `since` (type: `string`):

Only issues / pull requests updated on or after this date (with Extra data = issues).

## `issuesPerRepo` (type: `integer`):

How many recent issues / pull requests to list per repository.

## `includeComments` (type: `boolean`):

Add up to 10 comments to every listed issue.

## `includeReviews` (type: `boolean`):

Add the reviews of every listed pull request.

## `includeFiles` (type: `boolean`):

Add the changed files of every listed pull request.

## `trendingSince` (type: `string`):

With mode Trending: today, this week or this month.

## `trendingLanguage` (type: `string`):

With mode Trending: only this language, e.g. python.

## `spokenLanguageCode` (type: `string`):

With mode Trending: spoken language code of the repositories, e.g. en, zh.

## `compareRepos` (type: `array`):

Repositories (owner/repo or URL) to compare every result with in the benchmarks column. They are not output themselves.

## `compareToPreviousRun` (type: `boolean`):

Remember this input's results and mark every repository as new, updated or unchanged on the next run, with the previous values and the star change.

## `outputFormat` (type: `string`):

How many columns each row has.

## `addSequentialId` (type: `boolean`):

Add a sequentialId column (1, 2, 3 ...) in output order.

## `maxConcurrency` (type: `integer`):

How many pages are read in parallel.

## `proxyConfiguration` (type: `object`):

GitHub works without a proxy. Set one only if your network needs it.

## Actor input object example

```json
{
  "searchQueries": [
    "web scraper"
  ],
  "mode": "auto",
  "type": "repositories",
  "maxItems": 20,
  "sort": "stars",
  "sortOrder": "desc",
  "license": "any",
  "includeForks": false,
  "includeArchived": true,
  "autoPartitionResults": false,
  "enrichRepoData": true,
  "fetchExtras": [
    "latestRelease",
    "languages",
    "contributors",
    "readme"
  ],
  "maxContributors": 10,
  "includeOwnerProfile": true,
  "state": "open",
  "issuesPerRepo": 10,
  "includeComments": false,
  "includeReviews": false,
  "includeFiles": false,
  "compareToPreviousRun": true,
  "outputFormat": "enriched",
  "addSequentialId": false,
  "maxConcurrency": 8,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "web scraper"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/github-repositories-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "searchQueries": ["web scraper"] }

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/github-repositories-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "web scraper"
  ]
}' |
apify call neuro-scraper/github-repositories-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/github-repositories-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/EAkb4tO23KrxvMylt/builds/16kVsJlOYGT7BYjgx/openapi.json
