# GitHub Repo Stats Scraper — Stars, Commits, Releases & Topics (`actor-forge/github-repo-stats`) Actor

Bulk GitHub repository analytics from the official API: stars, forks, watchers, open issues vs PRs, languages, topics, licence, latest release, 4/52-week commit activity and contributor count. Input repo URLs, whole orgs or a search like topic:llm stars:>500. $0.30 per 1,000 repos.

- **URL**: https://apify.com/actor-forge/github-repo-stats.md
- **Developed by:** [ActorForge](https://apify.com/actor-forge) (community)
- **Categories:** Developer tools, Business
- **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 repos

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 Repo Stats Scraper — Stars, Commits, Releases & Topics

Bulk GitHub repository analytics from the official API: stars, forks, watchers, open issues vs PRs, languages, topics, licence, latest release, 4/52-week commit activity and contributor count. Input repo URLs, whole orgs or a search like topic:llm stars:>500. $0.30 per 1,000 repos.

**Bulk GitHub repository analytics for devtool and open-source market research, investor scouting, competitor tracking and dependency due diligence, from GitHub's official REST API.** Give it **repository URLs or owner/name**, **whole organisations or users** (every public repo they own), or **a GitHub search** with any qualifier ("topic:llm stars:>500", "language:rust topic:database", "stars:100..1000 created:>2025-06-01"). Each repository becomes one clean row: **stars, forks, real watchers, open issues and open pull requests counted separately, primary language plus the full language breakdown, topics, licence (SPDX), created / last-push / updated dates, the latest release and its date, commits in the last 4 and 52 weeks (with the weekly series), contributor count**, a **stars-per-day growth proxy**, homepage, and archived / fork / template flags. Choose **Basic** for core stats only (one search call per 100 repos, very fast) or **Full** for activity, releases and contributors. Works without a key for a few repositories; add your own free GitHub token for thousands per run. **$0.30 per 1,000 repositories**, no compute bill on top; repos that don't exist and rate-limit notices are free status rows.

### What data does it return?

Every run outputs clean, schema-validated rows like these:

| fullName | stars | forks | openIssues | openPullRequests | primaryLanguage | license | contributors | commitsLast4Weeks | commitsLast52Weeks | latestRelease.tag |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| apify/crawlee | 26424 | 1756 | 94 | 40 | TypeScript | Apache-2.0 | 152 | 85 | 724 | v3.18.2 |

### How much does it cost?

Transparent pay-per-event pricing — you only pay for what you get, and the
actor **always respects your run budget**: set a maximum total charge and it
stops cleanly at the cap instead of overrunning.

| Event | Price | Charged | Worked example |
| --- | --- | --- | --- |
| `repo` | $0.0003 | per repository row delivered | 1,000 repositories (Basic or Full) = $0.30; the top 1,000 "topic:llm" repos = $0.30 |
| `apify-actor-start` | $0.00005 | per run per GB of memory (platform start fee) | One run at 256 MB = $0.0000125 |

### Input options

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `repos` | array | no | — | GitHub repository URLs or owner/name, one per line, e.g. github.com/apify/crawlee or vercel/next.js. Leave empty to use only organisations or a search. |
| `owners` | array | no | — | GitHub organisation or user names (or their profile URLs), e.g. "vercel" or "github.com/langchain-ai". Every public repository they own is included, most recently pushed first, subject to the fork/archived switches below. |
| `searchQuery` | string | no | — | A GitHub repository search with any of GitHub's qualifiers, e.g. "topic:llm stars:>500", "language:rust topic:database", "vector database pushed:>2026-01-01", "stars:100..1000 created:>2025-06-01". GitHub returns at most the first 1,000 matches per query; split by stars or dates for more. |
| `sort` | string | no | `"stars"` | Order of search results (descending). Only applies to the search query. |
| `detailLevel` | string | no | `"full"` | Full adds watchers, language breakdown, latest release, weekly commit activity (last 4 and 52 weeks), contributor count and open PRs vs issues: about 6 API calls per repository. Basic returns the core stats only (stars, forks, open issues, language, topics, licence, dates): no extra calls for organisation or search results, so it is far faster and lighter on rate limits. Same price. |
| `includeForks` | boolean | no | `false` | Include forked repositories from organisations and searches. Repositories you list by name are always included. |
| `includeArchived` | boolean | no | `true` | Include archived (read-only) repositories from organisations and searches. Each row has an "archived" flag either way. |
| `maxItems` | integer | no | `100` | Stop after this many repository rows. Free status rows don't count. |
| `githubToken` | string | no | — | Your own free GitHub personal access token. A fine-grained token with no extra permissions is enough (public data only). Without it GitHub allows 60 requests per hour per IP address, shared with other Apify users, so only a few repositories per run are possible; with it, 5,000 requests per hour. The token is only sent to api.github.com and never stored in the output. |

### Limits & honest notes

- Data comes from GitHub's public REST API (api.github.com) and covers public repositories only. This actor is not made by, affiliated with or endorsed by GitHub. It returns repository metadata and counts only: no stargazer, follower or contributor lists, no emails or other personal data.
- Rate limits: without a token GitHub allows 60 requests per hour per IP address, and Apify's IPs are shared, so a token-less run may manage only a handful of repositories (or none). Full detail costs about 6 requests per repository; Basic costs 1 per listed repository and none for organisation or search results. With your own free token you get 5,000 requests per hour (about 800 repositories at Full detail, many thousands at Basic) and 30 searches per minute. When the limit runs out the run stops cleanly with a free status row saying when it resets; rows already delivered are kept. Use your own token only: GitHub's terms forbid pooling tokens to get around limits.
- GitHub search returns at most the first 1,000 results for one query. For more, split the query by star range or dates (e.g. stars:500..1000, stars:>1000).
- Commit activity comes from GitHub's statistics endpoint, which GitHub computes in the background: the first request for a rarely viewed repo can come back as "still computing". The actor retries for about 10 seconds; if it is still not ready the commit fields are empty and listed in the row's "missing" field. GitHub does not compute statistics for repositories with 10,000+ commits, and very large repos can refuse the contributor count. Contributors counts GitHub accounts with commits on the default branch (email-only authors excluded); GitHub links at most about 500 author emails to accounts, so for very large projects the count is a floor.
- Open issues: GitHub's open_issues_count includes pull requests; Full detail separates them (openIssues + openPullRequests). Basic gives only the combined openIssuesAndPrs. Stars per day is lifetime stars divided by repository age, a rough growth proxy (GitHub's API has no free star history). Respects your run budget: set a maximum total charge and the run stops cleanly at the cap.

### Related ActorForge actors

- [Brand Mentions Monitor](https://apify.com/actor-forge/dev-community-mentions) — see what developers say about the same projects on Hacker News, Bluesky and GitHub issues
- [Tech Stack Detector](https://apify.com/actor-forge/tech-stack-detector) — find which websites use the tools you are researching

### Changelog

- **2026-11-11** — Initial release: repo URLs, organisations/users and GitHub search; Full and Basic detail; languages, releases, 4/52-week commit activity, contributors, open PRs vs issues; optional BYO token; free status rows for limits and missing repos.

***

*Built and maintained by **ActorForge**. Reliability first: every actor in the
portfolio is monitored by an automated nightly self-test, and breakages are
typically fixed the same day.*

# Actor input Schema

## `repos` (type: `array`):

GitHub repository URLs or owner/name, one per line, e.g. github.com/apify/crawlee or vercel/next.js. Leave empty to use only organisations or a search.

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

GitHub organisation or user names (or their profile URLs), e.g. "vercel" or "github.com/langchain-ai". Every public repository they own is included, most recently pushed first, subject to the fork/archived switches below.

## `searchQuery` (type: `string`):

A GitHub repository search with any of GitHub's qualifiers, e.g. "topic:llm stars:>500", "language:rust topic:database", "vector database pushed:>2026-01-01", "stars:100..1000 created:>2025-06-01". GitHub returns at most the first 1,000 matches per query; split by stars or dates for more.

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

Order of search results (descending). Only applies to the search query.

## `detailLevel` (type: `string`):

Full adds watchers, language breakdown, latest release, weekly commit activity (last 4 and 52 weeks), contributor count and open PRs vs issues: about 6 API calls per repository. Basic returns the core stats only (stars, forks, open issues, language, topics, licence, dates): no extra calls for organisation or search results, so it is far faster and lighter on rate limits. Same price.

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

Include forked repositories from organisations and searches. Repositories you list by name are always included.

## `includeArchived` (type: `boolean`):

Include archived (read-only) repositories from organisations and searches. Each row has an "archived" flag either way.

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

Stop after this many repository rows. Free status rows don't count.

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

Your own free GitHub personal access token. A fine-grained token with no extra permissions is enough (public data only). Without it GitHub allows 60 requests per hour per IP address, shared with other Apify users, so only a few repositories per run are possible; with it, 5,000 requests per hour. The token is only sent to api.github.com and never stored in the output.

## Actor input object example

```json
{
  "repos": [
    "https://github.com/apify/crawlee"
  ],
  "sort": "stars",
  "detailLevel": "full",
  "includeForks": false,
  "includeArchived": true,
  "maxItems": 100
}
```

# Actor output Schema

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

One row per repository: stars, forks, watchers, open issues and PRs, languages, topics, licence, dates, latest release, commit activity and contributor count.

## `summary` (type: `string`):

Rows delivered, API requests made, whether GitHub's rate limit was hit, and billing.

# 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 = {
    "repos": [
        "https://github.com/apify/crawlee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("actor-forge/github-repo-stats").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 = { "repos": ["https://github.com/apify/crawlee"] }

# Run the Actor and wait for it to finish
run = client.actor("actor-forge/github-repo-stats").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 '{
  "repos": [
    "https://github.com/apify/crawlee"
  ]
}' |
apify call actor-forge/github-repo-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,actor-forge/github-repo-stats"
        }
    }
}
```

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/7vNnlgOZcPHEltQ5R/builds/7h1GiBSwZd2OeVIJR/openapi.json
