# GitHub Scraper — Repositories, Stars & Releases (`felixgoldwin/github-repository-scraper`) Actor

Extract public GitHub repositories and releases with stars, forks, topics, licenses and release notes. Search keywords, list owner repositories or export release history. No account required.

- **URL**: https://apify.com/felixgoldwin/github-repository-scraper.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 90.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 repository or releases

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

### What does GitHub Repository & Releases Scraper do?

Export **public GitHub repository and release metadata** into a structured dataset. Search [GitHub](https://github.com/) by topic, language, license or popularity; list a user or organization's repositories; look up specific repositories; or collect release notes and asset metadata. The Actor uses GitHub's public REST API without a login or API token.

It is useful for finding open-source projects, comparing developer tools, maintaining a repository directory, and monitoring releases. Schedule repeat runs in Apify to compare activity over time, or use the API to send exports into an existing workflow. This Actor collects metadata and release text; it does not download source code, README files, Git history or release binaries.

### How to scrape GitHub

1. Select **What to scrape**: Search repositories, Repositories by owner, Specific repositories, or Releases.
2. Enter the relevant search queries, owner names, or repository names and URLs.
3. Choose your filters and the maximum total results. Start with a small run to confirm the data you need.
4. Run the Actor and open the dataset. Download the results as JSON, CSV, Excel, HTML or XML, or retrieve them through the Apify API.

Search example:

```json
{
  "mode": "search",
  "queries": ["topic:machine-learning language:Python stars:>100 license:apache-2.0"],
  "sortBy": "updated",
  "order": "desc",
  "includeArchived": false,
  "maxItems": 300,
  "maxPages": 10
}
```

To collect an organization's repositories, use `{"mode":"owners","owners":["apify"],"maxItems":500}`. For releases, use `{"mode":"releases","repositories":["apify/crawlee","nodejs/node"],"includePrereleases":false,"maxItems":200}`. Repository inputs also accept HTTPS URLs such as `https://github.com/apify/crawlee`.

### What data can this GitHub scraper extract?

Repository modes produce one record per unique public repository. Releases mode produces one record per unique release.

| Fields | Type | Meaning |
| --- | --- | --- |
| `type`, `id`, `repository`, `url` | String / number | Record type, stable GitHub ID, owner/name and source link |
| `stars`, `forks`, `openIssuesAndPullRequests` | Number or null | Repository popularity and open issue-plus-pull-request counts |
| `language`, `topics`, `license` | Text / array / null | Primary language, topic tags and GitHub's reported license identifier |
| `isFork`, `archived`, `disabled` | Boolean or null | Repository status |
| `createdAt`, `updatedAt`, `pushedAt` | Date string or null | Repository creation, update and push times |
| `tag`, `name`, `body`, `bodyTruncated` | Text / boolean / null | Release tag, title and release notes, with a truncation flag |
| `prerelease`, `publishedAt` | Boolean / date or null | Release status and publication time |
| `assets` | Array | Release asset names, byte sizes, download counts and source URLs |
| `scrapedAt` | Date string | When this record was collected |

Other repository fields include `name`, `description`, `owner`, `defaultBranch` and `homepage`. Missing source values remain null. The issue count intentionally includes pull requests, matching GitHub's field. Stars are not reported as watchers.

### Input options and filtering

See the Input tab for the full configuration. Each run uses one mode. `queries` is used only for Search; `owners` only for Repositories by owner; `repositories` only for Specific repositories and Releases. Inputs are deduplicated, including differently capitalized owner and repository names.

Search accepts up to 20 queries of 256 characters each and supports GitHub's repository query qualifiers. If queries are omitted in Search mode, the default is `stars:>100 language:TypeScript`. GitHub controls search matching; the Actor does not promise that a query finds every repository. See [GitHub's search documentation](https://docs.github.com/en/rest/search/search).

`sortBy` applies only to Search. Owner listings use GitHub's [public user repository listing endpoint](https://docs.github.com/en/rest/repos/repos#list-repositories-for-a-user), which also returns public repositories for organization names, and always sort by their updated date. `order` applies to Search and owner listings; release results retain GitHub's source ordering. `includeForks` and `includeArchived` filter repository results after retrieval, and `includePrereleases` filters release results. Filtered records do not become billable results. To search forks, include `fork:true` in your GitHub query as well as keeping `includeForks` enabled.

`maxItems` is a **global result limit**, default 1,000 and maximum 10,000. It is shared across every target in the input. `maxPages` is a global source-page budget, default 50 and maximum 100. A source page contains up to 100 records, while a specific repository lookup also consumes one page. Filtering may produce fewer saved records from a page. Input order matters when an early target fills the global result limit.

### GitHub limits and partial results

GitHub's anonymous API quota is **60 core requests per hour per originating IP address**, and repository search allows **10 requests per minute**. Cloud runs may share an IP's remaining quota. The Actor follows rate-limit signals and records incomplete coverage rather than claiming that a quota-limited export is complete. An HTTP 403 or 429 response stops further collection and keeps records already saved; run again later after the quota resets. A successful response showing no quota remaining may cause a short wait when the reset is within 30 seconds, but the Actor does not wait through long reset windows. It does not accept a GitHub token or proxy configuration. See [GitHub's rate-limit documentation](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api).

GitHub search returns at most **1,000 results per individual query**, even if its reported total is larger. Owner listings and release listings use their own pagination, so the search ceiling does not apply to those modes. You can supply several distinct queries or owners, subject to the global budgets and available quota. Duplicate results across targets are saved once.

GitHub can also return an `incomplete_results` flag for a search that times out internally. Check the **SUMMARY** record in the key-value store for warnings, pages read, per-target counts, stop reasons and any errors. A run can finish with fewer results because the source is exhausted, records were filtered, the page budget was reached, or GitHub limited access. A result limit is a ceiling, not a promise of that many records.

### Pricing

The price is **$1 per 1,000 saved results ($0.001 each), plus $0.005 when a run starts**. Platform usage costs are included. One repository or one release is one result; nested release assets are not separate results. Duplicates, filtered records, errors and the run summary are not billed as results.

For example, a run saving 100 records costs $0.105, and a run saving 1,000 costs $1.005. An empty run still incurs the $0.005 start fee. Set a result cap and Apify's maximum total charge to control spending. GitHub rate limits can prevent the requested number of results from being delivered.

### Example output

These shortened examples are **illustrative**, not claimed live measurements. Repository and release modes produce different field sets.

```json
[
  {
    "type": "repository",
    "id": 123456,
    "repository": "example-org/example-tool",
    "url": "https://github.com/example-org/example-tool",
    "name": "example-tool",
    "description": "An example public developer tool",
    "owner": "example-org",
    "stars": 250,
    "forks": 30,
    "openIssuesAndPullRequests": 12,
    "language": "TypeScript",
    "topics": ["automation"],
    "license": "MIT",
    "isFork": false,
    "archived": false,
    "scrapedAt": "2026-11-11T12:00:00.000Z"
  },
  {
    "type": "release",
    "id": 987654,
    "repository": "example-org/example-tool",
    "url": "https://github.com/example-org/example-tool/releases/tag/v1.2.0",
    "tag": "v1.2.0",
    "name": "Version 1.2.0",
    "body": "Improved pagination and error reporting.",
    "bodyTruncated": false,
    "prerelease": false,
    "publishedAt": "2026-11-10T12:00:00.000Z",
    "assets": [],
    "scrapedAt": "2026-11-11T12:00:00.000Z"
  }
]
```

### FAQ and support

#### Do I need a GitHub account?

No. All requests are unauthenticated and limited to public resources. Private repositories, draft releases and account-only information are not accessible. No email enrichment or developer profile collection is performed. Release notes are source text and may contain information their authors published.

#### Does a license field mean I can reuse the code?

The field reports metadata supplied by GitHub, which can be absent or ambiguous. It is not a legal determination. Review the repository's actual license and relevant terms before using its content. This Actor does not download that code for you.

#### How can I automate exports or report a problem?

Use the API tab for programmatic runs or Apify Schedules for repeated exports. For a failed target or unexpected result, inspect SUMMARY and open the Issues tab with the input, run link and expected behavior. Do not include credentials. GitHub Repository & Releases Scraper is an independent tool and is not affiliated with or endorsed by GitHub.

# Actor input Schema

## `mode` (type: `string`):

Search finds repositories by GitHub query. Owners lists public repositories for users or organizations. Repositories looks up specific repositories. Releases exports public release metadata from the repositories you provide.

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

Search mode only. Up to 20 GitHub repository queries, 256 characters each. Supports qualifiers such as language:TypeScript, topic:ai, stars:>100 and license:mit. GitHub returns at most 1,000 results per query. If omitted in search mode, uses stars:>100 language:TypeScript.

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

Required in Owners mode. Up to 50 GitHub usernames or organization names, such as apify or microsoft. Use account names, not emails or profile URLs. Repositories are sorted by last update using the selected order.

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

Required in Specific repositories and Releases modes. Up to 50 owner/repository names or HTTPS GitHub repository URLs. For example, apify/crawlee or https://github.com/apify/crawlee. Duplicates are removed case-insensitively. Do not include credentials, URL parameters or fragments.

## `sortBy` (type: `string`):

Sort field for Search mode only. Owners mode always sorts by updated date. This field does not affect specific repository lookup or release ordering.

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

Applies to Search and Owners modes. Descending returns the largest or newest values first. Releases retain GitHub's source ordering; specific repositories retain input order.

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

Keep forked repositories in repository results. Turning this off removes records GitHub marks as forks. Applies to Search, Owners and Specific repositories modes, not Releases mode. Search queries must themselves include fork:true if you want GitHub to search forks.

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

Keep archived repositories in repository results. Turning this off removes records GitHub marks as archived. Applies to Search, Owners and Specific repositories modes, not Releases mode.

## `includePrereleases` (type: `boolean`):

Releases mode only. Keep releases GitHub labels as prereleases. Turning this off excludes those records. Draft and private releases are not accessible to this unauthenticated scraper.

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

Maximum unique matching records saved across the whole run, not per query or repository. Filters and duplicates do not consume this result limit. Actual output also depends on source availability, page budget and GitHub rate limits.

## `maxPages` (type: `integer`):

Global page budget across all input targets. A page contains up to 100 source records; a specific repository lookup also uses one page. Filters can reduce records saved per page. GitHub rate limits may stop the run before this budget is reached.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "stars:>100 language:TypeScript"
  ],
  "owners": [
    "apify"
  ],
  "repositories": [
    "apify/crawlee"
  ],
  "sortBy": "stars",
  "order": "desc",
  "includeForks": true,
  "includeArchived": true,
  "includePrereleases": true,
  "maxItems": 1000,
  "maxPages": 50
}
```

# Actor output Schema

## `repositories` (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": [
        "stars:>100 language:TypeScript"
    ],
    "owners": [
        "apify"
    ],
    "repositories": [
        "apify/crawlee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/github-repository-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": ["stars:>100 language:TypeScript"],
    "owners": ["apify"],
    "repositories": ["apify/crawlee"],
}

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/github-repository-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": [
    "stars:>100 language:TypeScript"
  ],
  "owners": [
    "apify"
  ],
  "repositories": [
    "apify/crawlee"
  ]
}' |
apify call felixgoldwin/github-repository-scraper --silent --output-dataset

```

## MCP server setup

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