# GitHub Repo Tracker — Star Growth, Releases & Momentum (`gochujang/github-repo-tracker`) Actor

Track GitHub repository metrics over time — star growth, fork trends, new releases, contributor changes, and momentum score. Ideal for tech investors, VCs, and developers spotting rising technologies. Uses GitHub public API. Optional token for 5000 req/hr.

- **URL**: https://apify.com/gochujang/github-repo-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (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.00 / 1,000 repo checks

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 Tracker

Fetches public GitHub repository metadata, recent releases, and contributor counts. It compares star and release snapshots kept in an Apify key-value store across runs, then pushes one dataset row per successfully fetched repository.

### Input

`repos` is a list of `owner/repo` names. `githubToken` is optional and is sent to GitHub for authenticated requests. `alertStarGrowthPct` defaults to 5 and `alertNewRelease` to `true`; `telegramBotToken` and `telegramChatId` are optional and both are needed for Telegram alerts.

### Output

Rows include `repo`, `stars`, `star_change_24h`, `star_change_7d`, `forks`, `open_issues`, `latest_release`, `days_since_release`, `contributors`, `language`, `momentum_score`, `has_new_release`, `github_url`, and `as_of`. For example, a row for `vercel/next.js` has `{"repo":"vercel/next.js","github_url":"https://github.com/vercel/next.js"}` alongside the fetched metrics. The default key-value store also gets a `SUMMARY` record.

### Pricing

The configured pay-per-event prices are $0.001 for `apify-actor-start` and $0.002 per `repo-check`. The code charges the start event once and `repo-check` after a successfully fetched repository has been pushed.

### Limitations

GitHub API rate limits apply; inaccessible or missing repositories are skipped. Star changes depend on this actor's saved snapshots, so a first run reports zero change, and the labels do not guarantee an exact 24-hour or seven-day interval unless runs are scheduled accordingly. Alerts require user-provided Telegram credentials.

# Actor input Schema

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

List of repos in 'owner/repo' format to track

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

GitHub personal access token. Unauthenticated: 60 req/hr. With token: 5000 req/hr. Create at https://github.com/settings/tokens

## `alertStarGrowthPct` (type: `number`):

Send alert when 7-day star growth exceeds this percentage of total stars. Set 0 to disable.

## `alertNewRelease` (type: `boolean`):

Send alert when a repository has published a new release since the last run.

## `telegramBotToken` (type: `string`):

Telegram bot token for alerts (from BotFather). Leave empty to disable.

## `telegramChatId` (type: `string`):

Telegram chat ID to receive alerts.

## Actor input object example

```json
{
  "repos": [
    "vercel/next.js",
    "microsoft/vscode",
    "openai/whisper"
  ],
  "alertStarGrowthPct": 5,
  "alertNewRelease": true,
  "telegramChatId": ""
}
```

# Actor output Schema

## `dataset` (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 = {
    "repos": [
        "vercel/next.js",
        "microsoft/vscode",
        "openai/whisper"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/github-repo-tracker").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": [
        "vercel/next.js",
        "microsoft/vscode",
        "openai/whisper",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/github-repo-tracker").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": [
    "vercel/next.js",
    "microsoft/vscode",
    "openai/whisper"
  ]
}' |
apify call gochujang/github-repo-tracker --silent --output-dataset

```

## MCP server setup

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

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/d27kuRutRvmgOvWjW/builds/VN0TbMXTyYoKnj0R0/openapi.json
