# Github Scraper | $2 / 1k | All In One (`fatihtahta/github-scraper`) Actor

Scrape GitHub at real scale with no cap. Get the richest data on repos, issues, PRs, users and orgs including stars, forks, topics, tech stack, users, owners and more. Great for market intel, dev products, lead lists, talent scouting and big, clean datasets.

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

## Pricing

$1.99 / 1,000 results

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 Scraper | $2 / 1k | All In One

### Overview

Github.com hosts millions of repositories, issues, pull requests, discussions, users, and packages that reflect real development activity and technology adoption. **Github Scraper | $2 / 1k | All In One** captures this public data at scale so you can monitor projects, communities, and marketplaces without manual browsing. Configure searches or paste direct URLs, and the actor automates collection with consistent, reliable results to save time on every run.

### Why Use This Actor

- **Market and product research:** Track trending repositories, forks, stars, and topics to understand technology momentum and competitor movement.
- **Lead and talent discovery:** Surface active maintainers, organizations, and contributors for outreach or partnership research.
- **Directory and dataset building:** Export structured lists of repos, issues, pull requests, discussions, users, commits, and marketplace listings for enrichment or analytics.
- **Operational efficiency:** Schedule repeat runs, keep data fresh, and avoid repetitive manual checks on Github.

### Input Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `startUrls` | array of strings | Fully formed Github URLs for search results, repositories, issues, pull requests, discussions, users/organizations, or marketplace listings. Each URL is crawled exactly as provided. | Prefilled example provided |
| `queries` | array of strings | Keyword queries turned into Github search URLs using your selected result type and filters. | — |
| `searchType` | string | Github search vertical for query-based runs: repositories, issues, pull requests, discussions, users, commits, registry packages, wikis, topics, or marketplace listings. | `repositories` |
| `language` | string | Limit results to a specific programming language. | — |
| `owner` | string | Restrict matches to a single user or organization namespace. | — |
| `followers` | string | Filter users or organizations by follower counts using numbers, ranges, or comparisons. | — |
| `forks` | string | Filter repositories by fork counts using numbers, ranges, or comparisons. | — |
| `stars` | string | Target repositories by star counts using numbers, ranges, or comparisons. | — |
| `topic` | string | Require repositories to include a specific topic tag. | — |
| `license` | string | Filter repositories by license keyword or SPDX identifier. | — |
| `created` | string | Filter repositories by creation date using exact dates, ranges, or comparisons. | — |
| `pushed` | string | Filter repositories by most recent commit date using exact dates, ranges, or comparisons. | — |
| `size` | string | Filter repositories by repository size in kilobytes using numbers, ranges, or comparisons. | — |
| `limit` | integer | Maximum number of listings to save across all inputs. | `50000` |
| `proxyConfiguration` | object | Configure Apify proxy settings to distribute requests and keep networking stable. Residential proxies are preselected. | `{"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}` |

### Example Input

```json
{
  "queries": ["apify scraping"],
  "searchType": "repositories",
  "stars": ">100",
  "language": "JavaScript",
  "limit": 200
}
```

### Example Output

Each dataset item represents one Github result with key descriptive fields.

```json
{
  "archived": false,
  "brand": "vlang",
  "color": "#4f87c4",
  "description": "Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Suppor…",
  "followers": 37115,
  "good_first_issue_issues_count": 1,
  "has_funding_file": true,
  "has_issues": true,
  "help_wanted_issues_count": 0,
  "id": "169677297",
  "language": "V",
  "mirror": false,
  "owner_id": 46413578,
  "owner_login": "vlang",
  "owned_by_organization": true,
  "public": true,
  "repo_id": 169677297,
  "repo_name": "v",
  "sponsorable": false,
  "starred_by_current_user": false,
  "title": "vlang/ v",
  "topics": [
    "language",
    "programming-language",
    "compiler",
    "v"
  ],
  "type": "Public",
  "updated_at": "2025-12-10T14:41:12.039Z",
  "url": "https://github.com/vlang/v"
}
```

- `archived` — Whether the repository is archived.
- `brand`, `color` — Project branding details when available.
- `description` — Repository summary from Github.
- `followers`, `stars`, `forks` (when present) — Popularity and engagement indicators.
- `owner_*` and `repo_*` fields — Unique identifiers and ownership metadata.
- `topics` — Tagged topics for the repository.
- `updated_at` — ISO timestamp of the latest observed update.
- `url` — Direct link to the Github page captured.

### Notes & Limitations

- Use this actor responsibly and only for lawful purposes. Review and respect Github’s terms of service and any applicable policies before collecting or using data.
- Public data may include personal information; ensure you have a legal basis to process it in your jurisdiction.
- Start with moderate limits when testing new queries or URLs to keep runs efficient.

### Support

Questions or custom needs? Open an issue on the **Issues** tab of the actor page in Apify Console and it will be resolved around the clock.

Happy Scraping,

- Fatih

# Actor input Schema

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

Provide one or more fully-formed GitHub URLs (search results, repositories, issues, pull requests, discussions, or user/organization profiles). Each URL is crawled exactly as given, honoring any filters already present.

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

Select the GitHub search vertical used when constructing URLs from keyword queries. This defines whether results return repositories, issues, pull requests, discussions, users, commits, packages, wikis, topics, or marketplace listings.

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

Enter one or more GitHub keyword queries. The scraper turns each query into a GitHub search URL using the chosen result type and any filters you set below.

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

Limit results to code written primarily in a specific language (e.g., JavaScript, Python, C++). Works with any GitHub-supported language qualifier.

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

Restrict matches to a single user or organization namespace (e.g., torvalds, vercel, apify). Useful for exploring everything under one owner.

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

Only include users or organizations with follower counts in the specified range. Supports numbers, ranges, and comparisons (e.g., 1000, >500, 100..5000).

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

Filter repositories based on fork counts using exact values, ranges, or comparison operators (e.g., 1000, >=500, 50..500).

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

Target repositories by popularity using star counts. Accepts numbers, ranges, or comparisons (e.g., 5000, >1000, 100..10000).

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

Require repositories to include a specific topic tag (e.g., cryptography, github-actions). Combine multiple topics by repeating this field in separate runs.

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

Filter repositories by license keyword or SPDX identifier (e.g., mit, apache-2.0, gpl-3.0). Helps ensure compatibility with your project requirements.

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

Filter repositories by creation date using exact values, ranges, or comparisons (e.g., 2025-12-10, >2025-12-07, 2024-01-01..2024-12-31).

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

Filter repositories by the most recent commit date. Accepts exact dates, ranges, or comparisons (e.g., <2025-12-10, 2024-01-01..2024-06-30).

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

Filter repositories by repository size in kilobytes using numbers, ranges, or comparison operators (e.g., 1000, <5000, 0..2000).

## `limit` (type: `integer`):

Stop the run once this many results have been saved across all inputs and search modes. Helps cap runtime and dataset size for large crawls.

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

Configure Apify proxy settings to distribute requests and avoid GitHub throttling. Residential proxies are preselected for higher reliability.

## Actor input object example

```json
{
  "startUrls": [
    "https://github.com/search?q=vscode+stars%3A%3E1000+&type=repositories",
    "https://github.com/Fatiht8a"
  ],
  "searchType": "repositories",
  "limit": 50000,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "startUrls": [
        "https://github.com/search?q=vscode+stars%3A%3E1000+&type=repositories",
        "https://github.com/Fatiht8a"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihtahta/github-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 = { "startUrls": [
        "https://github.com/search?q=vscode+stars%3A%3E1000+&type=repositories",
        "https://github.com/Fatiht8a",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/github-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 '{
  "startUrls": [
    "https://github.com/search?q=vscode+stars%3A%3E1000+&type=repositories",
    "https://github.com/Fatiht8a"
  ]
}' |
apify call fatihtahta/github-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fatihtahta/github-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/0d3G1FDeQLIP8NbkI/builds/VWCUhZFpot0c2SDfP/openapi.json
