# GitHub Scraper - Repos, Stars & Trending (`yck69/github-scraper`) Actor

GitHub repos by topic, today's Trending list or your own list: stars, forks, open issues, language, topics, license. Star-growth tracking. No token needed.

- **URL**: https://apify.com/yck69/github-scraper.md
- **Developed by:** [yck](https://apify.com/yck69) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 repository extracteds

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, Stars & Trending

Read the **repositories of a GitHub topic** (sorted by stars), the **Trending** page, or a list of repos you give: stars, forks, watchers, open issues, language, topics, license and dates. **No GitHub token or login needed**: it reads the public pages GitHub allows in its robots.txt. Track **star growth** between runs.

- **Modes**: a topic (llm, web-scraping, rust...), Trending today (all languages or one), or a list of repository URLs.
- **Live numbers** (stars, forks, watchers) read from each repository page, plus open issues, topics, license and creation date.
- **Filters**: minimum stars, language, exclude archived.
- **Star and fork growth** with `trackChanges`: each row says what changed since the last run, for a watchlist.
- **Stars today** and the trending period on Trending rows.

**$2.50 per 1,000 repositories.** You pay only for the results you receive.

### How to use it

1. Click **Try for free** at the top of this page.
2. Fill the input (the defaults work as a first test).
3. Click **Start**, or schedule the Actor for monitoring and alerts.
4. Download the results as JSON, CSV or Excel, or call the Actor from the API.

### Use cases

- Developer-tool scouts and investors spotting fast-rising projects.
- DevRel teams watching their ecosystem.
- Researchers building repository datasets.

### Input examples

**Top repositories of a topic**

```json
{
  "mode": "topic",
  "topic": "web-scraping",
  "minStars": 100,
  "maxItems": 50
}
```

**Trending Python repos today**

```json
{
  "mode": "trending",
  "trendingLanguage": "python"
}
```

**Watch competitors' growth**

```json
{
  "mode": "repos",
  "repoUrls": [
    "firecrawl/firecrawl",
    "microsoft/vscode"
  ],
  "trackChanges": true,
  "monitorName": "watch"
}
```

### Input reference

| Field | Name | Type | Description |
|---|---|---|---|
| `mode` | What to collect | string | Topic reads github.com/topics pages; Trending reads today's trending list. |
| `topic` | Topic | string | For Topic mode: llm, web-scraping, rust, self-hosted… |
| `language` | Language filter | string | Keep only repositories whose main language is this one, e.g. Python. |
| `trendingLanguage` | Trending language | string | For Trending: python, javascript, rust, go… Empty = all languages. |
| `repoUrls` | Repository URLs | array | For Specific repositories: owner/name or full URLs. |
| `minStars` | Min stars | integer | Skip smaller repositories. |
| `excludeArchived` | Exclude archived | boolean | Skip archived (read-only) repositories. |
| `trackChanges` | Track star growth between runs | boolean | Adds a changes field with stars/forks/issues gained since the previous run — star velocity for your watchlist. |
| `onlyNew` | Only new repositories since last run | boolean | Output only repositories not returned before (or whose stars changed). |
| `monitorName` | Monitor name | string | Optional name to keep separate monitoring histories. |
| `maxItems` | Max repositories | integer | Maximum repositories returned. |

### Output

Each result is one JSON object. Main fields: `fullName`, `name`, `owner`, `url`, `description`, `homepage`, `stars`, `forks`, `watchers`, `openIssues`, `language`, `topics`, `license`, `createdAt`, `updatedAt`, `archived`, `isFork`, `defaultBranch`, `ageDays`, `starsPerDay`, `starsToday`, `trendingPeriod`, `source`.

When you schedule the Actor with a `monitorName`, rows also carry `isNew`, `firstSeenAt` and (where relevant) a `changes` object listing what moved since the previous run.

Example (shortened):

```json
{
  "fullName": "firecrawl/firecrawl",
  "name": "firecrawl",
  "owner": "firecrawl",
  "url": "https://github.com/firecrawl/firecrawl",
  "description": "Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥",
  "homepage": "https://firecrawl.dev",
  "stars": 202344,
  "forks": 10603,
  "watchers": 501,
  "openIssues": 798,
  "language": "TypeScript",
  "topics": [
    "ai",
    "ai-agents",
    "…"
  ],
  "license": "AGPL-3.0",
  "createdAt": "2024-04-15T21:02:29.000Z"
}
```

### What it does not do

- GitHub's own search is not used (its search pages are not open to crawlers), so discovery is by topic page or Trending.
- The topic list comes from github.com/topics, about 20 repositories per page. `language` and the last-update date are filled for topic and Trending rows, not for a plain URL list.
- No last-push date, README text or release data. Open issues come from Google's open deps.dev data, so they can lag a few days.
- Pages are read one at a time and politely, so 100 repositories take a couple of minutes.

### Data source and legality

Public github.com pages (topic, Trending and repository pages, all allowed by robots.txt) and the open deps.dev API for open-issue counts. Public data, no login. The Actor does not log in, does not solve captchas and does not bypass anti-bot protection. You are responsible for using the data in line with the source's terms and the laws that apply to you (including data-protection law when the data concerns people).

### FAQ

**Do I need a GitHub token?**

No. Nothing is sent to GitHub's API and no login is used.

**Why is language empty on some rows?**

It is read from the topic or Trending list, which a plain URL list does not have.

### Pricing

Pay per event: $2.50 per 1,000 repositories. A tiny start fee per run applies. Apify platform usage is included for the Actor owner's pay-per-event model.

### Support

Questions or a missing field? Open an issue from the Actor page and tell us the input you used.

# Actor input Schema

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

Topic reads github.com/topics pages; Trending reads today's trending list.

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

For Topic mode: llm, web-scraping, rust, self-hosted…

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

Keep only repositories whose main language is this one, e.g. Python.

## `trendingLanguage` (type: `string`):

For Trending: python, javascript, rust, go… Empty = all languages.

## `repoUrls` (type: `array`):

For Specific repositories: owner/name or full URLs.

## `minStars` (type: `integer`):

Skip smaller repositories.

## `excludeArchived` (type: `boolean`):

Skip archived (read-only) repositories.

## `trackChanges` (type: `boolean`):

Adds a changes field with stars/forks/issues gained since the previous run — star velocity for your watchlist.

## `onlyNew` (type: `boolean`):

Output only repositories not returned before (or whose stars changed).

## `monitorName` (type: `string`):

Optional name to keep separate monitoring histories.

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

Maximum repositories returned.

## Actor input object example

```json
{
  "mode": "topic",
  "topic": "llm",
  "excludeArchived": true,
  "trackChanges": false,
  "onlyNew": false,
  "maxItems": 30
}
```

# Actor output Schema

## `overview` (type: `string`):

Repositories.

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

Every field of every row.

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

The SUMMARY record.

# 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 = {
    "topic": "llm",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("yck69/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 = {
    "topic": "llm",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("yck69/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 '{
  "topic": "llm",
  "maxItems": 30
}' |
apify call yck69/github-scraper --silent --output-dataset

```

## MCP server setup

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