# GitHub Repository Search Scraper: Repos, Stars, Topics & Orgs (`data_factory_nerd/github-repo-search-scraper`) Actor

Search GitHub repositories or list every repo of an organization or user: stars, forks, language, topics, license, last push, stars per day and more. Official GitHub API, no login needed, beats the 1,000-result cap. Monitor new repos. $1 per 1,000 repos.

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

## Pricing

from $0.90 / 1,000 repositories

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

### What is GitHub Repository Search Scraper?

**GitHub Repository Search Scraper** exports GitHub repositories to a clean table. Use it three ways:

1. **Search**: keywords or full GitHub search syntax, e.g. `mcp server`, `topic:llm language:python`, `stars:>1000 vector database`.
2. **Organizations and users**: list every public repo of `microsoft`, `vercel`, `apify` or any user.
3. **Specific repos**: `owner/name` or GitHub URLs, to refresh stars and activity for a watchlist.

For each repo you get **stars, forks, watchers, open issues, language, topics, license, created / last push dates, days since last push, average stars per day**, archived/fork/template flags and more.

It uses the **official GitHub REST API**: no login, no browser, no proxies. Rate limits are handled automatically, and it **goes past GitHub's 1,000-results-per-search cap** by splitting big searches by creation year. Owner emails and personal profile data are not collected.

### What data can you get?

| Field | Example |
|---|---|
| `fullName` / `url` | vercel/next.js / https://github.com/vercel/next.js |
| `description` / `homepage` | The React Framework / https://nextjs.org |
| `stars` / `forks` / `watchers` / `openIssues` | 143,526 / 32,804 / 143,526 / 3,986 |
| `language` / `topics` | JavaScript / \["react", "nextjs", "blog", "compiler"] |
| `license` | MIT |
| `createdAt` / `pushedAt` / `daysSinceLastPush` | 2016-10-05 / 2026-11-15 / 0 |
| `starsPerDay` | 39.7 |
| `owner` / `ownerType` | vercel / Organization |
| `isArchived` / `isFork` / `isTemplate` / `hasPages` / `hasDiscussions` | false / false / false / false / true |

### Use cases

- 🔭 **Market and competitor research**: every repo on a topic (e.g. `topic:rag`), ranked by stars
- 🎯 **Developer-tool lead lists**: organizations building with a language or framework, with their most active repos
- 📈 **Open-source tracking**: weekly star and activity snapshots for a watchlist of repos
- 🧑‍💻 **Dependency and vendor due diligence**: license, last push and archive status of the libraries you use
- 🔔 **New-repo alerts**: monitor mode + a schedule = only repos that newly match your search

### How to scrape GitHub repositories

1. Enter **Search queries**, **Organizations or users**, and/or **Specific repositories**.
2. Optional filters: **Language**, **Topics**, **Minimum stars**, **Pushed within last N days**, **Created on or after**.
3. Click **Start** and download the repos as JSON, CSV or Excel from the **Output** tab.

#### Input example

```json
{
  "searchQueries": ["mcp server", "topic:llm language:python"],
  "owners": ["apify"],
  "repositories": ["vercel/next.js"],
  "minStars": 100,
  "pushedWithinDays": 90
}
```

#### Output example

```json
{
  "fullName": "vercel/next.js",
  "owner": "vercel",
  "ownerType": "Organization",
  "description": "The React Framework",
  "url": "https://github.com/vercel/next.js",
  "homepage": "https://nextjs.org",
  "stars": 143526,
  "forks": 32804,
  "openIssues": 3986,
  "language": "JavaScript",
  "topics": ["blog", "browser", "compiler", "components", "nextjs", "react"],
  "license": "MIT",
  "pushedAt": "2026-11-15T10:51:02Z",
  "daysSinceLastPush": 0,
  "isArchived": false
}
```

### More than 1,000 results

GitHub's search API returns at most 1,000 repositories per query. When a search or an organization has more (e.g. `microsoft` has thousands of repos), the Actor automatically re-runs the query once per creation year and merges the results without duplicates. Turn off **Go past the 1,000-result cap** if you only want the top 1,000.

### Monitor mode: new repos only

Switch on **Only new since last run** and schedule the Actor. The first run returns everything that matches and remembers it in a key-value store in *your* account (`data-factory-github-repos-monitor`). Later runs return only repos that newly match, which is great for "new MCP servers this week" style alerts.

### How much does it cost?

**Pay per result: $1.00 per 1,000 repositories** ($0.001 per repo).

- The top 1,000 repos for a topic cost $1.
- An organization with 200 repos costs $0.20.
- Apify's free plan includes $5 of monthly usage, enough for about 5,000 repos.

Optional: add a free GitHub personal access token (no scopes needed) for 3x higher search rate limits on very large runs. It is used only for GitHub API calls and never logged or saved.

### API example

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("data_factory_nerd/github-repo-search-scraper").call(
    run_input={"searchQueries": ["topic:rag"], "minStars": 500, "sort": "stars"})
for repo in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(repo["fullName"], repo["stars"], repo["language"], repo["pushedAt"])
```

### FAQ

#### Is this allowed by GitHub?

It uses GitHub's official public REST API within its rate limits, for public repository metadata only. It does not collect emails or personal profile data. Use the data in line with GitHub's terms.

#### Why do some searches pause briefly?

Without a token, GitHub allows 10 search requests per minute. Each request returns 100 repos, so the Actor waits for the limit to reset when needed (about 1,000 repos per minute). Add a GitHub token to triple that.

#### A repository is missing. Why?

It may be renamed, private, deleted, or (for searches) a fork, which GitHub excludes unless you turn on **Include forks**. Missing specific repos are listed in the run's SUMMARY.

#### Found a bug or need a field?

Open an issue on the **Issues** tab. We reply quickly.

### Related Actors by data_factory_nerd

| Actor | What it does |
|---|---|
| [SEC EDGAR Filings Scraper](https://apify.com/data_factory_nerd/sec-edgar-filings-scraper) | 10-K, 10-Q, 8-K and full-text search of all SEC filings |
| [Email Security Checker](https://apify.com/data_factory_nerd/email-security-checker) | Bulk SPF, DMARC, DKIM, MTA-STS and BIMI audit with a score and fixes |
| [Domain WHOIS & DNS Lookup](https://apify.com/data_factory_nerd/domain-whois-dns-lookup) | Registrar, creation/expiry dates, availability and DNS records in bulk |
| [Tech Stack Detector](https://apify.com/data_factory_nerd/tech-stack-detector) | Which CMS, analytics, payments and frameworks a website uses |
| [SAM.gov Contract Opportunities](https://apify.com/data_factory_nerd/sam-gov-contract-opportunities) | Federal bids with NAICS, set-asides, deadlines and contacts |
| [Multi-ATS Jobs Scraper](https://apify.com/data_factory_nerd/ats-jobs-scraper) | Jobs from 6 ATS (Lever, Ashby, Workable…) in one schema |
| [Workday Jobs Scraper](https://apify.com/data_factory_nerd/workday-jobs-scraper) | Every job from any myworkdayjobs.com careers site |

# Actor input Schema

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

Keywords or GitHub search syntax, e.g. "vector database", "topic:llm language:python", "stars:>1000 mcp server".

## `owners` (type: `array`):

List all public repos of these organizations/users, e.g. vercel, microsoft, https://github.com/apify.

## `repositories` (type: `array`):

owner/name or GitHub URLs, e.g. facebook/react.

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

Order of results.

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

e.g. Python, TypeScript, Rust.

## `topics` (type: `array`):

Repos must have all these topics, e.g. llm, rag.

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

e.g. 100.

## `pushedWithinDays` (type: `integer`):

Only active repos, e.g. 90.

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

YYYY-MM-DD, e.g. new repos only.

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

GitHub search excludes forks by default.

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

Turn off to skip archived repos.

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

Stop after this many repos (controls cost). 0 = no limit.

## `maxItemsPerQuery` (type: `integer`):

0 = no limit.

## `splitLargeResults` (type: `boolean`):

GitHub returns at most 1,000 repos per query. When there are more, the query is split by creation year.

## `onlyNew` (type: `boolean`):

Return only repos not seen in your previous runs with the same input. Schedule it to discover new repos on a topic.

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

Name for the monitor history.

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

Optional personal access token (no scopes needed) for 3x higher search rate limits on big runs. Never logged or saved.

## Actor input object example

```json
{
  "searchQueries": [
    "mcp server"
  ],
  "sort": "stars",
  "minStars": 100,
  "includeForks": false,
  "includeArchived": true,
  "maxItems": 50,
  "maxItemsPerQuery": 0,
  "splitLargeResults": true,
  "onlyNew": false
}
```

# Actor output Schema

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

No description

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

No description

# 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": [
        "mcp server"
    ],
    "minStars": 100,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_factory_nerd/github-repo-search-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": ["mcp server"],
    "minStars": 100,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("data_factory_nerd/github-repo-search-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": [
    "mcp server"
  ],
  "minStars": 100,
  "maxItems": 50
}' |
apify call data_factory_nerd/github-repo-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data_factory_nerd/github-repo-search-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/KAjueS2WbR3xx96ZU/builds/3k2DWVtVjgfuIx2Ce/openapi.json
