# GitHub Scraper: Repos, Trending, Issues, PRs and Releases (`datagrovehq/github-scraper`) Actor

Scrape GitHub repositories from searches, trending pages, owners and repo lists, plus issues, pull requests and releases. Stars, forks, topics, license, dates, labels, downloads. No login; optional token for big runs.

- **URL**: https://apify.com/datagrovehq/github-scraper.md
- **Developed by:** [Datagrove](https://apify.com/datagrovehq) (community)
- **Categories:** Developer tools, 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.30 / 1,000 repository scrapeds

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, Trending, Issues, PRs and Releases

One tool for public GitHub data. Search repositories, pull today's trending repos,
list everything an organization or user has published, look up a list of repos, and
export issues, pull requests and releases. No login and no GitHub account needed.

### What you can get

| Source | Input | Rows |
|---|---|---|
| Repository search | `web scraping language:python`, `topic:llm stars:>500` | repos (up to 1,000 per query) |
| Trending today | `python`, `rust`, or empty for all languages | repos with trending rank and stars gained today |
| Owners | `microsoft`, `https://github.com/vercel` | all public repos of a user or org (up to 1,000) |
| Repositories | `apify/crawlee`, repo URLs | repo details, plus issues/PRs and releases if turned on |
| Issue and PR search | `is:issue is:open label:bug language:go` | issues and PRs across GitHub (up to 1,000 per query) |

All sources can be combined in one run. Duplicates within a source are removed.

### Pricing

Pay only for rows you get. No start fee.

- **$0.30 per 1,000 repositories**
- **$0.10 per 1,000 issues or pull requests**
- **$0.10 per 1,000 releases**

Error rows (repository not found, bad input) are free. Set a maximum cost per run in the
run options and the tool stops cleanly when it is reached.

### Input examples

Top Python scraping repos by stars:

```json
{ "searchQueries": ["web scraping language:python"], "maxItemsPerSource": 200 }
```

New AI repos gaining stars this month:

```json
{ "searchQueries": ["topic:llm created:>2026-11-01"], "sort": "stars" }
```

Today's trending Rust and TypeScript repos:

```json
{ "trendingLanguages": ["rust", "typescript"] }
```

Every open pull request in two repos:

```json
{
  "repositories": ["apify/crawlee", "psf/requests"],
  "includeRepoDetails": false,
  "includeIssues": true,
  "issueType": "pulls",
  "issueState": "open",
  "maxItemsPerSource": 1000
}
```

Release history with download counts:

```json
{ "repositories": ["ollama/ollama"], "includeReleases": true, "includeRepoDetails": false }
```

### Output

Every row has `recordType` (`repo`, `issue`, `pullRequest` or `release`) and `source`
(which input produced it).

Repository row:

```json
{
  "recordType": "repo",
  "fullName": "apify/crawlee",
  "url": "https://github.com/apify/crawlee",
  "owner": "apify",
  "ownerType": "Organization",
  "description": "Crawlee—A web scraping and browser automation library for Node.js ...",
  "homepage": "https://crawlee.dev",
  "language": "TypeScript",
  "topics": ["apify", "crawler", "scraping", "playwright", "puppeteer"],
  "stars": 26505,
  "forks": 1774,
  "openIssues": 149,
  "license": "Apache-2.0",
  "isFork": false,
  "isArchived": false,
  "createdAt": "2016-08-26T18:35:03Z",
  "pushedAt": "2026-11-20T13:20:49Z",
  "source": { "type": "repository", "value": "apify/crawlee" }
}
```

Trending rows add `trendingRank`, `starsToday` and `builtBy` (top contributor usernames).

Issue / PR rows: `repo`, `number`, `title`, `url`, `state`, `stateReason`, `isPullRequest`,
`mergedAt`, `isDraft`, `author`, `authorAssociation`, `labels`, `assignees`, `milestone`,
`comments`, `reactions`, `thumbsUp`, `body` (Markdown), `createdAt`, `updatedAt`, `closedAt`.

Release rows: `repo`, `tag`, `name`, `url`, `author`, `isPrerelease`, `publishedAt`,
`body` (release notes), `assets` (name, size, downloads, URL), `totalDownloads`.

The dataset has three views: Repositories, Issues and PRs, Releases.

### Limits and tips

- **Search returns at most 1,000 results per query** (a GitHub limit). For more, split the
  query, for example by date: `created:2025-01-01..2025-06-30` and `created:2025-07-01..2025-12-31`,
  or by star range.
- **Searches, trending, owners and repo details** use GitHub's search quota, which refills
  every minute. They work without a token; the tool waits briefly when needed.
- **Issues and releases of a repository** use GitHub's hourly quota: 60 requests per hour
  per IP without a token, and each request returns up to 100 rows. For more than a few
  thousand rows, add a GitHub personal access token (classic or fine-grained, no scopes
  needed) in the `githubToken` field. It is stored as a secret and only sent to GitHub.
  Or use **Issue and PR search** with `repo:owner/name`, which uses the search quota.
- Trending is GitHub's daily list. It usually has 10 to 25 repos per language.
- Only public data is returned. Private repositories show up as "not found".
- No email addresses or other personal contact data are collected.

### FAQ

**Do I need a GitHub account?** No. A token is optional and only speeds up large issue or
release exports.

**How fresh is the data?** It is fetched live from GitHub at run time.

**Can I schedule it?** Yes. Use Apify schedules, for example daily trending snapshots or a
weekly export of new issues with `updatedSince`.

**Something broke or a field is missing?** Open an issue on this tool's Issues tab and it
will be looked at quickly.

# Actor input Schema

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

Search GitHub repositories. GitHub's qualifiers work: language:python, stars:>1000, topic:llm, created:>2026-01-01, pushed:>2026-10-01, license:mit, org:apify. GitHub serves up to 1,000 results per query.

## `trendingLanguages` (type: `array`):

Today's trending repositories from github.com/trending, with stars gained today and full repo data. Use a language (python, typescript, rust, go) or an empty entry for all languages.

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

Repositories as owner/repo or URL (https://github.com/apify/crawlee). Returns repo details, and their issues and releases if turned on below.

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

All public repositories of a user or organization (up to 1,000), as a name or URL (microsoft, https://github.com/vercel).

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

Search issues and PRs across GitHub with qualifiers: is:issue, is:pr, is:open, label:bug, repo:owner/name, language:go, created:>2026-10-01, "good first issue". Up to 1,000 results per query.

## `maxItemsPerSource` (type: `integer`):

Stop after this many rows from each search, trending page, owner, or repository's issues or releases.

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

Order for repository searches and owners.

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

For owners: also list repositories that are forks of other projects.

## `includeRepoDetails` (type: `boolean`):

Output one row per repository in the Repositories list. Turn off to get only their issues or releases.

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

Get issues and pull requests of each repository in the Repositories list, newest first.

## `issueType` (type: `string`):

For repository issues: issues, pull requests, or both.

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

For repository issues: open, closed, or all.

## `updatedSince` (type: `string`):

Optional. For repository issues: only those updated on or after this date (YYYY-MM-DD).

## `issueSort` (type: `string`):

Order for issue and PR searches.

## `includeBody` (type: `boolean`):

Include the full text (Markdown) of issues and PRs. Turn off for smaller datasets.

## `includeReleases` (type: `boolean`):

Get releases of each repository in the Repositories list: tag, notes, assets and download counts.

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

Optional personal access token (no scopes needed). Without it, issues and releases are limited to 60 requests per hour per IP (100 rows per request). Searches, trending, owners and repo details work fine without it.

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

Not needed for normal use. Without a token, an Apify proxy switches IPs when GitHub's hourly limit runs out.

## Actor input object example

```json
{
  "searchQueries": [
    "web scraping language:python"
  ],
  "maxItemsPerSource": 100,
  "sort": "stars",
  "includeForks": false,
  "includeRepoDetails": true,
  "includeIssues": false,
  "issueType": "all",
  "issueState": "all",
  "issueSort": "best-match",
  "includeBody": true,
  "includeReleases": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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": [
        "web scraping language:python"
    ]
};

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

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

```

## MCP server setup

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