# GitHub Repository Search Scraper (`dabooti/github-repo-search-scraper`) Actor

Search GitHub repositories with the full GitHub search syntax and export stars, forks, language, topics, license, open issues and activity dates. Up to 1,000 repositories per query. No login needed.

- **URL**: https://apify.com/dabooti/github-repo-search-scraper.md
- **Developed by:** [Danial Maqbool](https://apify.com/dabooti) (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 $1.00 / 1,000 repositories

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

Export GitHub repository search results to JSON, CSV or Excel. Type the same query you would type in GitHub search, including qualifiers such as `language:`, `stars:>`, `topic:`, `pushed:>` or `org:`, and get one clean row per repository with stars, forks, language, topics, license, open issues and activity dates.

It uses GitHub's official public REST search API. No login and no proxy needed; a GitHub token is optional and only makes large runs faster.

### What you can use it for

- **Open-source research**: list every active project in a niche, for example `topic:rag stars:>200 pushed:>2026-06-01`.
- **Developer tools market maps**: compare competing libraries by stars, forks and how recently they were pushed.
- **Tech scouting and investing**: track fast-growing repositories in a language or topic on a schedule.
- **Dependency and license checks**: find repositories by license or spot archived projects.
- **Dataset building**: feed repository metadata into your own analysis or LLM pipeline.

### What data you get

| Field | Description |
|---|---|
| `fullName`, `name`, `owner`, `ownerType`, `url` | Repository identity and link |
| `description`, `homepage`, `topics` | What the project is about |
| `stars`, `forks`, `watchers`, `openIssues` | Popularity and activity counts |
| `language`, `license` | Main language and SPDX license ID |
| `createdAt`, `updatedAt`, `pushedAt` | Activity dates (ISO 8601) |
| `isFork`, `isArchived`, `isTemplate`, `hasIssues`, `hasWiki`, `hasPages` | Repository flags |
| `sizeKb`, `defaultBranch`, `repoId` | Technical details |
| `query`, `rank`, `scrapedAt` | Which query found it and its position |

### How to use it

1. Add one or more queries in **Search queries**. Anything that works in the GitHub search box works here.
2. Set **Max repositories per query** (up to 1,000, GitHub's limit for one query).
3. Optionally pick a sort order, and add a GitHub token for faster large runs.
4. Click **Start** and download the results from the **Output** tab.

#### Example input

```json
{
  "queries": ["web scraper language:python stars:>500", "topic:llm-agents pushed:>2026-09-01"],
  "maxResultsPerQuery": 300,
  "sort": "stars",
  "order": "desc"
}
```

#### Example output

One record from a real run:

```json
{
  "fullName": "scrapy/scrapy",
  "description": "Scrapy, a fast high-level web crawling & scraping framework for Python.",
  "stars": 65371,
  "forks": 12134,
  "language": "Python",
  "topics": [
    "crawler",
    "crawling",
    "framework",
    "hacktoberfest",
    "python",
    "scraping",
    "web-scraping",
    "web-scraping-python"
  ],
  "license": "BSD-3-Clause",
  "openIssues": 172,
  "pushedAt": "2026-11-13T14:45:54Z",
  "url": "https://github.com/scrapy/scrapy",
  "name": "scrapy",
  "owner": "scrapy",
  "ownerType": "Organization",
  "ownerUrl": "https://github.com/scrapy",
  "homepage": "https://scrapy.org",
  "watchers": 65371,
  "sizeKb": 34065,
  "defaultBranch": "master",
  "isFork": false,
  "isArchived": false,
  "isTemplate": false,
  "hasIssues": true,
  "hasWiki": true,
  "hasPages": false,
  "createdAt": "2010-02-22T02:01:14Z",
  "updatedAt": "2026-11-13T23:54:37Z",
  "repoId": 529502,
  "query": "web scraping language:python stars:>200",
  "rank": 1,
  "scrapedAt": "2026-11-14T00:25:01.394Z"
}
```

### Pricing

Pay per event: **$1.00 per 1,000 repositories** saved, plus a tiny standard start fee and Apify platform usage, which for this lightweight HTTP Actor is usually a fraction of a cent per run. You can cap spending with **Max cost per run** in the run options; the Actor stops cleanly when the cap is reached.

### Tips and limits

- GitHub returns at most **1,000 results per query**. To get more, split one query into several, for example by star ranges (`stars:100..500`, `stars:>500`) or by creation year.
- Without a token GitHub allows 10 search requests per minute, and each request returns up to 100 repositories. The Actor waits automatically when it hits the limit, so 1,000 repositories may take a minute or two. With a token (a classic or fine-grained token with no scopes is enough) the limit is 30 requests per minute.
- The same repository found by two different queries is saved once per query, so you can see which query matched it.
- A `RUN_SUMMARY` record in the key-value store shows the total match count, saved count and any error for each query.

### FAQ

**Do I need a GitHub account?** No. The token is optional.

**Is my token safe?** The token field is a secret input: Apify stores it encrypted and the Actor only sends it to api.github.com.

**Can I schedule it?** Yes. Use Apify Schedules to run the same queries daily or weekly and send the results to Google Sheets, Slack or a webhook.

### Legal note

This Actor reads public repository metadata from GitHub's official API and follows its rate limits. Use the data in line with GitHub's terms of service and acceptable use policies.

# Actor input Schema

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

GitHub repository search queries. All GitHub qualifiers work, for example "web scraper language:python stars:>100", "topic:llm pushed:>2026-01-01" or "org:apify".

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

GitHub returns at most 1,000 results for one query. Split by stars, dates or language to get more.

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

Order of the results.

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

Ignored for best match.

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

Optional personal access token with no scopes. Without it GitHub allows 10 search requests per minute (100 repositories each), so large runs wait between pages. The token is stored encrypted and only sent to api.github.com.

## Actor input object example

```json
{
  "queries": [
    "web scraping language:python stars:>200"
  ],
  "maxResultsPerQuery": 100,
  "sort": "best-match",
  "order": "desc"
}
```

# Actor output Schema

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

No description

## `resultsFull` (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 = {
    "queries": [
        "web scraping language:python stars:>200"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dabooti/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 = { "queries": ["web scraping language:python stars:>200"] }

# Run the Actor and wait for it to finish
run = client.actor("dabooti/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 '{
  "queries": [
    "web scraping language:python stars:>200"
  ]
}' |
apify call dabooti/github-repo-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dabooti/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/9dGFYdUjH0hMQuP9b/builds/hfu2OAZrXrKkf1KkT/openapi.json
