# GitHub Repository Search Scraper (`nanodata/github-repository-search-scraper`) Actor

Search public GitHub repositories by keyword, topic, language or stars: stars, forks, topics, license, owner, dates and more. Pay per repository.

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

## Pricing

from $1.00 / 1,000 repository delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Repository Search Scraper

Search public GitHub repositories and export one row per repository: name, owner, description, stars, forks, watchers, open issues, language, topics, license, dates, flags and more. You pay per repository delivered.

The data comes from the documented public [GitHub](https://github.com/) search interface (`api.github.com/search/repositories`). No GitHub account and no access token are needed. The actor does not ask for a token and never sends one.

### What you get

For each repository the actor returns one row with:

- `id`, `nodeId`, `name`, `fullName`, `url`, `apiUrl`, `description`
- `ownerLogin`, `ownerId`, `ownerType` (User or Organization), `ownerUrl`, `ownerAvatarUrl`: public owner details only
- `stars`, `forks`, `watchers`, `openIssues` (open issues and pull requests, as GitHub counts them)
- `language`, `topics`
- `licenseSpdx`, `licenseName`, `licenseKey`
- `defaultBranch`, `sizeKb`
- `createdAt`, `updatedAt`, `pushedAt`: times in UTC
- `homepage`
- `archived`, `disabled`, `isFork`, `isTemplate`, `isPrivate`, `isMirror`, `mirrorUrl`, `allowForking`, `webCommitSignoffRequired`
- `hasIssues`, `hasProjects`, `hasDownloads`, `hasWiki`, `hasPages`, `hasDiscussions`
- `visibility`, `score` (GitHub's relevance score for the search)
- `cloneUrl`, `sshUrl`, `gitUrl`
- `rank` (position in the results of the search), `query` (the search text used), `sourceUrl`, `scrapedAt`

A value the source does not show is null. Topics is an empty list when a repository has none.

### Typical uses

- Find the most starred projects on a topic, in a language, or in a time window
- Track new and recently updated projects in a field
- Build lists of open source tools with their licenses and activity
- Find sponsors, partners or hiring targets through the organizations behind popular projects
- Feed a dashboard, a spreadsheet or a research dataset

### Pricing

You pay per repository delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One repository row | `repository-result` | $0.001 per repository ($1.00 per 1,000) |

A run that finds nothing is not charged. If you set a maximum cost for the run, the actor stops cleanly once the next row would go over it.

**New to Apify?** Every account gets a $5 free monthly platform credit, enough for a first test run before you pay anything.

### Limits you should know

- GitHub allows 10 searches per minute without a sign-in. Each page of up to 100 repositories is one search. The actor reads the limit that GitHub reports and, when no search is left, waits for the reset (up to 65 seconds) and continues.
- GitHub returns at most 1,000 results for any search (10 pages of 100). When a search reaches that limit, the run status says so. To get more, split the work into several searches with narrower filters, for example `stars:100..500` and `stars:501..2000`, or one search per language.
- How long a run takes: up to 10 pages arrive without a long pause, so 1,000 repositories take about one to two minutes. Each further group of 10 pages adds about one minute of waiting. For example 5 searches of 1,000 repositories each take roughly 5 to 6 minutes. The actor reads one page every 3 seconds.
- GitHub sometimes marks an answer as incomplete when its own search timed out. The run status says so when this happens.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | list | `topic:web-scraping` | One GitHub search text per line. Raw GitHub search syntax works, for example `topic:web-scraping stars:>100`, `language:go pushed:>2026-01-01` or `web crawler in:name,description` |
| `language` | text | empty | Adds `language:<name>` to every search |
| `minStars` | number | 0 | Adds `stars:>=N` to every search |
| `topic` | list | empty | Adds `topic:<name>` to every search. A repository must carry all listed topics |
| `sort` | choice | `stars` | `stars`, `updated`, `forks` or `best` (best match) |
| `maxResultsPerQuery` | number | 100 | Repositories per search text, up to 1,000 |

How it works:

- Every search text is read in turn, page by page, in the order GitHub gives (the `sort` you chose).
- Filters are added to every search text. A filter the text already holds is not added twice.
- With no search text, the filters make one search. With no input at all, the actor searches the topic `web-scraping`.
- A repository that matches two searches is delivered once, with the first search that found it.
- Number fields also accept numbers written as text, for example `"150"`.
- A search text that GitHub rejects as invalid is skipped and named in the status. The other searches continue.

#### Example: popular web scraping projects

```json
{
  "queries": ["topic:web-scraping"],
  "sort": "stars",
  "maxResultsPerQuery": 150
}
```

#### Example: Go projects with filters, two searches

```json
{
  "queries": ["web crawler", "headless browser automation"],
  "language": "Go",
  "minStars": 100,
  "sort": "updated",
  "maxResultsPerQuery": 200
}
```

### Output sample

```json
{
  "id": 787076358,
  "nodeId": "R_kgDOLunVBg",
  "name": "firecrawl",
  "fullName": "firecrawl/firecrawl",
  "url": "https://github.com/firecrawl/firecrawl",
  "apiUrl": "https://api.github.com/repos/firecrawl/firecrawl",
  "description": "Supercharge your AI agents with data from the web and beyond.",
  "ownerLogin": "firecrawl",
  "ownerId": 135057108,
  "ownerType": "Organization",
  "ownerUrl": "https://github.com/firecrawl",
  "ownerAvatarUrl": "https://avatars.githubusercontent.com/u/135057108?v=4",
  "stars": 100000,
  "forks": 8000,
  "watchers": 100000,
  "openIssues": 300,
  "language": "TypeScript",
  "topics": ["web-scraping", "crawler", "ai"],
  "licenseSpdx": "AGPL-3.0",
  "licenseName": "GNU Affero General Public License v3.0",
  "licenseKey": "agpl-3.0",
  "defaultBranch": "main",
  "sizeKb": 60000,
  "createdAt": "2024-04-15T00:00:00Z",
  "updatedAt": "2026-11-08T10:00:00Z",
  "pushedAt": "2026-11-08T09:00:00Z",
  "homepage": "https://firecrawl.dev",
  "archived": false,
  "isFork": false,
  "isTemplate": false,
  "hasIssues": true,
  "visibility": "public",
  "score": 1,
  "rank": 1,
  "query": "topic:web-scraping",
  "sourceUrl": "https://api.github.com/search/repositories?q=topic%3Aweb-scraping&sort=stars&order=desc&per_page=100&page=1",
  "scrapedAt": "2026-11-09T12:00:00Z"
}
```

The sample is shortened. Real rows hold every field listed above. The numbers and dates in the sample are illustrative.

### Limitations

- The actor reads repository search only. It does not read file contents, issues, commits, releases or user profiles.
- Owner details are the public login, id, type, page and avatar address. No names, emails or other profile data.
- `stars` and the other counts change often. A row shows the values at `scrapedAt`.
- The order of results can shift while repositories change, so a few repositories can be missed or repeated between two pages. Repeats are removed.
- `sizeKb` is the size GitHub reports, in kilobytes.
- If GitHub keeps answering with errors or keeps its request limit, the run stops with a status that says so, and only delivered rows are charged.

### FAQ

**Do I need a GitHub account or token?**
No. The actor uses GitHub's public search without a sign-in, which is why the limit is 10 searches per minute.

**Why are there at most 1,000 repositories per search?**
GitHub returns only the first 1,000 results of any search. Split the work into narrower searches, for example by star ranges, language or creation date.

**How do I write a search?**
Use GitHub's repository search syntax, for example `topic:web-scraping stars:>100`, `language:python created:>2026-01-01`, `user:apify` or `org:microsoft`. The `queries` field takes the same text you would type on github.com.

**Why did I get fewer rows than `maxResultsPerQuery`?**
The search matched fewer repositories, or the maximum cost you set for the run was reached. The run status message says which.

**What happens with a search that finds nothing?**
The run ends with no rows, nothing is charged, and the status says so.

**Can a run be restarted safely?**
Yes. Progress is saved after every page. A restarted run continues where it stopped and does not deliver or charge the same rows twice.

**Is this affiliated with GitHub?**
No. This is an independent tool that reads GitHub's public search. Please keep your use modest and in line with GitHub's terms.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=nanodata/github-repository-search-scraper
```

**Example prompt once connected:**

> "Use `github-repository-search-scraper` to find the 20 most starred Go web scraping repositories with stars and license. Return results as a table."

### Related Actors

- [Product Hunt Scraper: Daily, Weekly and Monthly Leaderboards](https://apify.com/santamaria-automations/producthunt-scraper): Get the Product Hunt leaderboard for any day, week or month: product name, tagline, rank, votes, comments, topics, thumbnail, launch date and links.
- [Reddit Scraper - $0.75/1k](https://apify.com/santamaria-automations/reddit-scraper): Scrape Reddit posts and comments from any subreddit, search query, or user profile.
- [Threads Scraper: Search Posts & Profiles, No Login](https://apify.com/santamaria-automations/threads-search-scraper): Search Threads posts by keyword or download any public profile's posts: text, author, likes, replies, reposts and time.

### Support

Found a problem or need a field added? Open an issue on the [Issues tab](https://apify.com/nanodata/github-repository-search-scraper/issues). We usually reply within one business day. You can also email contact@nanoscrape.com.

# Actor input Schema

## `queries` (type: `array`):

One GitHub repository search per line. Raw GitHub search syntax works, for example topic:web-scraping stars:>100, language:go pushed:>2026-01-01 or web crawler in:name,description. Leave empty to use the filters below.

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

Optional. Adds language:<name> to every search, for example Go, Python or C++.

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

Optional. Adds stars:>=N to every search.

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

Optional. Adds topic:<name> to every search for each entry, for example web-scraping. A repository must have all topics listed.

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

Order of the results. GitHub holds the first 1000 results of each search.

## `maxResultsPerQuery` (type: `integer`):

Maximum repositories for each search text, up to 1000 (the most GitHub returns for one search). Default 100.

## Actor input object example

```json
{
  "sort": "stars",
  "maxResultsPerQuery": 100
}
```

# Actor output Schema

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

One row per repository

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nanodata/github-repository-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("nanodata/github-repository-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 '{}' |
apify call nanodata/github-repository-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nanodata/github-repository-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/3NM0HNvAwYXYIylJd/builds/exj5qU4v1j8bn3Tj2/openapi.json
