# GitHub Scraper: Repos, Issues, PRs, Contributors & Trending (`memo23/github-scraper`) Actor

GitHub scraper, no token or login: search repositories and users with GitHub's search syntax, repository stats, user and org profiles, issues and pull requests with comments, top contributors, forks, and today's trending repositories. From $1 per 1,000 repositories.

- **URL**: https://apify.com/memo23/github-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Developer tools, 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.00 / 1,000 issue or pull requests

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: Repos, Issues, PRs, Contributors & Trending

**Search GitHub repositories and users** with the same syntax as the GitHub search box, and scrape repository stats, user and organization profiles, **issues and pull requests**, their comments, **top contributors**, forks, and **today's trending repositories**. Or paste links, `owner/repo` names or usernames. **$1 per 1,000 repositories from a search or list, issues or comments; $3 per 1,000 repository lookups or profiles.** No GitHub token, no login.

![How the GitHub Scraper works](https://api.apify.com/v2/key-value-stores/zIllObWz7xZIkKVwj/records/how-it-works-github.png)

```json
{
  "repositorySearchQueries": ["web scraper language:python stars:>500"],
  "userSearchQueries": ["location:berlin language:rust followers:>100"],
  "startUrls": ["facebook/react"],
  "includeIssues": true
}
```

| Input | Rows |
|---|---|
| Repository search | Up to 1,000 repositories per search, each with stars, forks, language, license, topics and dates |
| User or organization search | Up to 1,000 accounts per search, each as a full profile |
| Repository (`facebook/react` or its link) | One repository row: stars, forks, open issues, language, license, topics, dates |
| Account (`torvalds`, `@vercel` or a profile link) | One profile row: name, bio, company, location, website, X handle, followers, repo count |
| Issue or pull request link | Its comments, oldest first (up to 30) |
| Issues of each repository (option) | Up to 150 issues and pull requests: open, closed or both |
| Top contributors (option) | The top 30 contributors by commits |
| Forks (option) | Up to 120 forks: newest, most starred, oldest |
| Repositories of each account (option) | Up to 120 public repositories the account owns |
| Comments on issues found (option) | Comments on every listed issue with 2 or more |
| Issue search | Up to 150 issues and pull requests per search, across GitHub |
| Trending | Today's trending repositories with rank, optionally as full repository rows |

### Why Use This Scraper?

- **Search like on github.com.** `language:`, `stars:>`, `topic:`, `pushed:>`, `location:`, `followers:>`, `org:` and `type:org` work as they do on the site, sorted by stars, forks, followers or recent activity.
- **Issues and pull requests in one list.** Every row says whether it is a pull request, with state, labels, comment and reaction counts, author and author role, and created, closed and merged dates.
- **Issue search across GitHub.** `repo:`, `is:pr`, `is:open`, `label:`, `author:`, `language:` narrow it down.
- **Contributors and forks.** See who builds a project and where it was forked to, without paging through the site.
- **Trending with real numbers.** Turn today's trending list into full repository rows with stars, forks, language and license.
- **Billed once.** A repository that is looked up and also listed as a fork, or an issue found by a search and in its repository, is delivered and charged once.
- **Clean rows.** Numbers are numbers, dates are ISO 8601, every row has a `type`.

### Use Cases

- **Developer relations and community:** track issues, pull requests and comments on your own or a competitor's project.
- **Open-source due diligence:** stars, forks, contributor concentration and issue activity before adopting or investing in a project.
- **Recruiting and sourcing:** developers by location, language and followers, or a project's top contributors, with company, website, hireable status and followers.
- **Bug and feedback mining:** search issues across GitHub for an error message, a library or a feature request.
- **Trend watching:** a daily list of trending repositories with their full stats.
- **Market maps and lead lists:** every project on a topic ranked by stars, and the organizations that maintain them.

### How It Works

1. Searches run page by page until your maximum. Each line of `startUrls` is read as a repository, an account or an issue link; lines that are none of these are reported in the log and skipped.
2. Repositories and accounts are looked up six at a time, then the lists you switched on (issues, contributors, forks, account repositories) are fetched for each.
3. Issue, fork and account repository lists come 30 rows at a time. Past 30, the next 30 come from another order (most recently updated, most discussed, oldest…), until your maximum is reached or the list runs out.
4. Comments on the issues found come last, so repositories and issues get the room first under a row or spending limit.
5. Every row is charged as it is delivered, and the run stops cleanly at your spending limit.

### Input Configuration

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Repositories, accounts and issue or pull request links, one per line. |
| `repositorySearchQueries` | array | Repository searches in GitHub search syntax. |
| `repositorySearchSort` | string | Best match (default), `stars`, `forks` or `updated`. |
| `maxResultsPerRepositorySearch` | integer | 1-1,000. Default 100. |
| `userSearchQueries` | array | User and organization searches in GitHub search syntax. |
| `userSearchSort` | string | Best match (default), `followers`, `repositories` or `joined`. |
| `maxResultsPerUserSearch` | integer | 1-1,000. Default 30. |
| `includeIssues` | boolean | List issues and pull requests of each repository. |
| `issueState` | string | `open` (default), `closed` or `all`. |
| `maxIssuesPerRepository` | integer | 1-150. Default 30. |
| `includeContributors` | boolean | Top 30 contributors of each repository. |
| `includeForks` | boolean | Forks of each repository. |
| `maxForksPerRepository` | integer | 1-120. Default 30. |
| `includeUserRepositories` | boolean | Public repositories each account owns. |
| `maxRepositoriesPerUser` | integer | 1-120. Default 30. |
| `includeComments` | boolean | Comments on every listed issue with 2 or more comments. |
| `issueSearchQueries` | array | Issue and pull request searches across GitHub. |
| `issueSearchSort` | string | Best match (default), `comments`, `created`, `updated` or `reactions`. |
| `maxResultsPerSearch` | integer | 1-150. Default 30. |
| `trending` | boolean | Today's trending repositories. |
| `trendingDetails` | boolean | Full repository rows for the trending repositories. |
| `maxItems` | integer | Cap on all rows. Default 1,000; free-plan runs return up to 100. |

#### Example input

The 500 most starred repositories on a topic:

```json
{
  "repositorySearchQueries": ["topic:llm"],
  "repositorySearchSort": "stars",
  "maxResultsPerRepositorySearch": 500
}
```

Rust developers in Berlin with the most followers:

```json
{
  "userSearchQueries": ["location:berlin language:rust"],
  "userSearchSort": "followers",
  "maxResultsPerUserSearch": 100
}
```

The 100 most recent closed issues and pull requests of VS Code, with their discussions:

```json
{
  "startUrls": ["microsoft/vscode"],
  "includeIssues": true,
  "issueState": "closed",
  "maxIssuesPerRepository": 100,
  "includeComments": true
}
```

Open "good first issue" tickets in Python projects, most discussed first:

```json
{
  "issueSearchQueries": ["label:\"good first issue\" language:python is:open"],
  "issueSearchSort": "comments",
  "maxResultsPerSearch": 60
}
```

Today's trending repositories with full stats:

```json
{
  "trending": true,
  "trendingDetails": true
}
```

### Output Samples

A repository (2026-11-01; GitHub follows renames, so `facebook/react` answers as `react/react`):

```json
{
  "type": "repository",
  "fullName": "react/react",
  "name": "react",
  "owner": "react",
  "url": "https://github.com/react/react",
  "description": "The library for web and native user interfaces.",
  "homepage": "https://react.dev",
  "language": "JavaScript",
  "license": "MIT License",
  "topics": ["declarative", "frontend", "javascript", "library", "react", "ui"],
  "starCount": 252059,
  "forkCount": 51606,
  "openIssueCount": 1484,
  "defaultBranch": "main",
  "isFork": false,
  "isArchived": false,
  "sizeKb": 1137401,
  "createdAt": "2013-05-24T16:15:54.000Z",
  "updatedAt": "2026-11-01T07:24:58.000Z",
  "pushedAt": "2026-10-31T13:53:11.000Z",
  "trendingRank": null,
  "repositoryId": "10270250",
  "source": "repository",
  "sourceInput": "facebook/react"
}
```

A profile:

```json
{
  "type": "profile",
  "username": "sindresorhus",
  "displayName": "Sindre Sorhus",
  "accountType": "User",
  "url": "https://github.com/sindresorhus",
  "bio": "Full-Time Open-Sourcerer. Focused on Swift & JavaScript. …",
  "website": "https://sindresorhus.com/apps",
  "twitterUsername": "sindresorhus",
  "followerCount": 85108,
  "followingCount": 31,
  "publicRepoCount": 1148,
  "publicGistCount": 99,
  "createdAt": "2009-12-20T22:57:02.000Z"
}
```

A pull request:

```json
{
  "type": "issue",
  "isPullRequest": true,
  "number": 38087,
  "title": "[compiler] Promote rest parameter temporaries in BuildHIR",
  "state": "open",
  "url": "https://github.com/react/react/pull/38087",
  "repository": "react/react",
  "text": "Fixes #38084. …",
  "labels": ["CLA Signed"],
  "isDraft": false,
  "commentCount": 0,
  "reactionCount": 0,
  "author": "zhoubiao188",
  "authorType": "User",
  "authorAssociation": "CONTRIBUTOR",
  "postedAt": "2026-11-01T00:24:39.000Z",
  "closedAt": null,
  "mergedAt": null
}
```

A contributor:

```json
{
  "type": "contributor",
  "rank": 1,
  "username": "ijjk",
  "url": "https://github.com/ijjk",
  "contributionCount": 3296,
  "accountType": "User",
  "repository": "vercel/next.js"
}
```

### Key Output Fields

| Field | Meaning |
|---|---|
| `type` | `repository`, `profile`, `issue`, `comment` or `contributor` |
| `source` | How the row was found: `repository`, `repository-search`, `profile`, `user-search`, `trending`, `forks`, `user-repositories`, `repository-issues`, `issue-search`, `issue-comments`, `contributors` |
| `sourceInput` | The input line, search or issue the row came from |
| `isPullRequest` | `true` for pull requests, `false` for issues |
| `authorAssociation` | The author's role on the repository: `OWNER`, `MEMBER`, `CONTRIBUTOR`, `NONE`… |
| `hireable` | `true` when the account says it is open to work; empty otherwise |
| `trendingRank` | Position on today's trending list |
| `forkOf` | The repository a fork row was listed under |

### FAQ

**How many results does a search give?**
Up to 1,000 for each search, the most GitHub returns. To go further, split the search by stars, date or language.

**Are emails included?**
No. GitHub hides them from logged-out visitors, so `email` is not a field. `website` and `twitterUsername` are.

**Why does an issue or fork list stop at 30?**
Those lists come 30 at a time. Raise the maximum for issues, forks, account repositories or searches and the next 30 come from another sort order, up to 150 (120 for forks and account repositories). The top 30 contributors and the first 30 comments per issue are the limit.

**Are star history, stargazers or commit lists included?**
No.

**Do I need a GitHub token?**
No.

**What happens with a wrong name?**
It is reported in the log and skipped, and nothing is charged for it.

**Are private repositories included?**
No, only public data.

### Pricing

| Event | When | Price |
|---|---|---|
| Actor start | Once per run | $0.005 |
| Repository | Each full repository lookup (also trending with full details) | $0.003 |
| Profile | Each user or organization profile, from a name or a search | $0.003 |
| Listed repository | Each repository from a search, an account's list, a fork list or the trending list | $0.001 |
| Issue | Each issue or pull request | $0.001 |
| Comment | Each comment | $0.001 |
| Contributor | Each contributor | $0.0005 |

Example: a repository search with 500 results = $0.005 + 500 × $0.001 = $0.505. One repository with 100 issues and its top 30 contributors = $0.005 + $0.003 + 100 × $0.001 + 30 × $0.0005 = $0.123.

### Support

Found a bug or need a field? Open an issue on the actor's Issues tab and include the run link.

### ⚠️ Disclaimer

This actor reads public GitHub data: public repositories, public profiles, public issues, pull requests and comments. It does not log in and reads nothing private. It is not affiliated with or endorsed by GitHub. You are responsible for using the data in line with GitHub's terms and the laws that apply to you, including data-protection law where rows name people.

### SEO Keywords

github scraper, github search scraper, github repository search, github user search, github repository scraper, github issues scraper, github pull requests, github contributors, github trending, github profile scraper, github forks, github issue search, github api alternative, open source analytics, developer leads

# Actor input Schema

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

One per line. A repository (`facebook/react` or its link) gives a repository row; an account (`torvalds`, or an organization link such as `https://github.com/vercel`) gives a profile row; an issue or pull request link gives its comments. Mix them freely.

## `includeIssues` (type: `boolean`):

Also list the issues and pull requests of every repository above, with labels, comment and reaction counts, author and dates.

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

Which issues and pull requests to list.

## `maxIssuesPerRepository` (type: `integer`):

Up to 150. The newest come first, then the most recently updated and the most discussed.

## `includeContributors` (type: `boolean`):

Also list the top 30 contributors of every repository, ranked by commits.

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

Also list forks of every repository: newest, most starred, oldest.

## `maxForksPerRepository` (type: `integer`):

Up to 120.

## `includeUserRepositories` (type: `boolean`):

Also list the public repositories each account owns, most recently pushed first.

## `maxRepositoriesPerUser` (type: `integer`):

Up to 120.

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

Also fetch the comments (up to 30, oldest first) of every issue and pull request this run lists that has at least 2 comments. Issue and pull request links in the list above always give their comments.

## `repositorySearchQueries` (type: `array`):

Written like the GitHub search box: `web scraper language:python stars:>100`, `topic:llm pushed:>2026-01-01`, `org:vercel`. Each repository comes back with stars, forks, language, license, topics and dates.

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

The order repository search results come in.

## `maxResultsPerRepositorySearch` (type: `integer`):

Up to 1,000, the most GitHub returns for one search. Narrow by stars or date to get past that.

## `userSearchQueries` (type: `array`):

Written like the GitHub search box: `location:berlin language:rust followers:>100`, `type:org location:japan`. Each account comes back as a full profile: name, bio, company, location, website, followers, repository count.

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

The order user search results come in.

## `maxResultsPerUserSearch` (type: `integer`):

Up to 1,000. Each account is one profile row.

## `issueSearchQueries` (type: `array`):

Searches across all of GitHub, written like the GitHub search box: `memory leak is:issue language:rust`, `repo:microsoft/vscode is:pr is:open`, `label:"good first issue" language:python`.

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

The first order results come in. Past 30 results the other orders fill in the rest.

## `maxResultsPerSearch` (type: `integer`):

Up to 150.

## `trending` (type: `boolean`):

Also list the repositories on GitHub's trending page today (up to 25), with rank and description.

## `trendingDetails` (type: `boolean`):

Turn each trending repository into a full repository row with stars, forks, language, license, topics and dates (billed as a repository row instead of a listing row).

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

The run stops at this many dataset rows. Free-plan runs return up to 100.

## Actor input object example

```json
{
  "startUrls": [
    "facebook/react",
    "torvalds"
  ],
  "includeIssues": false,
  "issueState": "open",
  "maxIssuesPerRepository": 30,
  "includeContributors": false,
  "includeForks": false,
  "maxForksPerRepository": 30,
  "includeUserRepositories": false,
  "maxRepositoriesPerUser": 30,
  "includeComments": false,
  "repositorySearchSort": "",
  "maxResultsPerRepositorySearch": 100,
  "userSearchSort": "",
  "maxResultsPerUserSearch": 30,
  "issueSearchSort": "",
  "maxResultsPerSearch": 30,
  "trending": false,
  "trendingDetails": false,
  "maxItems": 1000
}
```

# Actor output Schema

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

Rows told apart by `type`: `repository`, `profile`, `issue`, `comment` and `contributor`.

# 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": [
        "facebook/react",
        "torvalds"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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": [
        "facebook/react",
        "torvalds",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/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": [
    "facebook/react",
    "torvalds"
  ]
}' |
apify call memo23/github-scraper --silent --output-dataset

```

## MCP server setup

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