# GitHub Repo Search & Trends: Stars, Topics, Growth (`michael80/github-repo-search-trends`) Actor

Search GitHub repositories via the official API: trending new repos, stars per day, star growth between runs, topics, license, latest release. Flat CSV-ready rows, no personal data. Failures free.

- **URL**: https://apify.com/michael80/github-repo-search-trends.md
- **Developed by:** [Toolmaster Data Tools](https://apify.com/michael80) (community)
- **Categories:** Developer tools, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 repository returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Search & Trends: Stars, Topics, Growth

Find and monitor **GitHub repositories** through the **official GitHub API**: search by keyword, topic, language or organisation, discover the **fastest-rising new projects**, and measure **star growth between runs**. One flat, CSV-ready row per repository, no scraping of HTML and **no personal data**.

- **Trending made reliable:** combine `createdWithinDays` (e.g. 7) with sorting by stars to get this week's rising projects for any topic or language, with `starsPerDay` to compare young and old projects fairly.
- **Real growth numbers:** with `trackChanges` the Actor remembers each repository and adds `starsGained`, `forksGained` and `isNewInResults` on the next run. Schedule it daily or weekly for a growth dashboard of your market, competitors or tech stack.
- **Full GitHub search syntax:** `topic:llm`, `org:microsoft`, `in:readme rag`, `license:mit`, `stars:100..500` and more, plus convenient filters for language, minimum stars, created and last-push dates; forks and archived repos excluded by default.
- **Useful fields:** stars, forks, open issues, topics, license (SPDX), homepage, created/last push, days since last push, size, default branch, flags (fork, archived, template, discussions), optional latest release.
- **Look up specific repositories** by `owner/repo` or URL (incl. real watcher count).
- **Privacy by design:** only repository data. Owner profiles, e-mails and contributor lists are deliberately not collected; you get `ownerType` (User/Organization) only.
- **Transparent:** rate limits, invalid queries and missing repositories are reported in a `note` row and are free.

### Who uses it

| User | Typical use |
| --- | --- |
| Developer-tool companies and DevRel | Track competitors and the ecosystem around their product, spot rising projects early |
| Investors and analysts | Weekly lists of fast-growing open-source projects by topic |
| Tech recruiters and agencies | Find active projects in a technology (repository level, no personal data) |
| Researchers and writers | Datasets of repositories for studies, newsletters and "awesome" lists |

### Input

| Field | Example | Notes |
| --- | --- | --- |
| `searchQueries` | `["topic:llm", "vector database"]` | GitHub search syntax allowed |
| `repositories` | `["apify/crawlee"]` | Direct lookups |
| `language`, `minStars` | `Python`, `100` | Filters |
| `createdWithinDays`, `pushedWithinDays` | `7`, `30` | Trending / active only |
| `sort` | `stars` | `stars`, `forks`, `updated`, `help-wanted-issues`, `best-match` |
| `maxResultsPerQuery`, `maxResults` | `100`, `500` | GitHub allows max. 1,000 per search |
| `includeLatestRelease` | `true` | One extra request per repository |
| `trackChanges`, `monitorName` | `true`, `ai-tools` | Growth between runs |
| `githubToken` | – | Optional, free, no scopes needed; stored encrypted |

**Without a token** GitHub allows 10 searches per minute and 60 other requests per hour, shared per IP address. That is fine for searches; for many direct lookups or releases add a free token (github.com › Settings › Developer settings › Fine-grained tokens, "Public repositories (read-only)").

### Output

```json
{
  "type": "repository",
  "fullName": "kividbio/kividb",
  "url": "https://github.com/kividbio/kividb",
  "description": "A fast, multi-threaded Redis and Valkey alternative written in Rust …",
  "language": "Rust",
  "topics": ["cache", "database", "full-text-search"],
  "stars": 1114,
  "starsPerDay": 39.79,
  "forks": 116,
  "openIssues": 93,
  "license": "AGPL-3.0",
  "ownerType": "Organization",
  "createdAt": "2026-10-16T01:07:52Z",
  "pushedAt": "2026-11-13T10:58:35Z",
  "daysSinceLastPush": 0,
  "starsGained": 212,
  "isNewInResults": false
}
```

### Pricing (pay per event)

| Event | Price |
| --- | --- |
| Repository returned | **$1.00 per 1,000 repositories** |

Notes, errors and duplicates (a repository found by several queries is returned once) are free. Higher Apify plans get automatic Store discounts.

### FAQ

**Is this the GitHub "Trending" page?** No, that page has no API and changes its layout. This Actor uses the official search API (created within N days, sorted by stars) plus its own growth tracking between runs, which is more stable and works for any topic or language.

**Why max. 1,000 results per query?** That is a limit of the GitHub search API. Split large searches with filters (e.g. language or star ranges such as `stars:100..500`).

**Something wrong or missing?** Open an issue on the Actor page. We usually answer within one business day.

***

### Kurz auf Deutsch

Sucht und beobachtet **GitHub-Repositories über die offizielle GitHub-API**: nach Stichwort, Thema, Sprache oder Organisation, mit **Trend-Modus** (neu angelegte Projekte nach Sternen sortiert, Sterne pro Tag) und **Sternzuwachs zwischen zwei Läufen**. Flache, CSV-taugliche Zeilen ohne personenbezogene Daten. Abrechnung: 1,00 $ pro 1.000 Repositories; Hinweise und Fehler sind kostenlos. Ein kostenloser GitHub-Token ist optional.

***

**Anbieter / Impressum (Angaben gemäß § 5 DDG):** Michael Schönherr · Am Spiegelwald 1 · 08344 Grünhain-Beierfeld · Deutschland · E-Mail: toolmaster@tuta.io

# Changelog

This Actor's version history is a separate document: https://apify.com/michael80/github-repo-search-trends/changelog.md

# Actor input Schema

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

One query per line. Plain words ("vector database") or GitHub search syntax ("topic:llm", "user:apify", "org:microsoft", "in:readme rag"). Leave empty to search only by the filters below.

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

Optional: owner/repo or github.com URLs to look up directly (adds the real watcher count).

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

Optional filter, e.g. Python, TypeScript, Rust, Go.

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

Only repositories with at least this many stars.

## `createdWithinDays` (type: `integer`):

Only repositories created in the last N days. Together with sorting by stars this gives you the fastest-rising new projects (e.g. 7 = trending this week).

## `pushedWithinDays` (type: `integer`):

Only repositories with a push (new code) in the last N days. Filters out abandoned projects.

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

Sort order of the GitHub search (descending).

## `maxResultsPerQuery` (type: `integer`):

GitHub returns at most 1,000 results per search. Narrow your query (language, minStars, dates) for more specific lists.

## `maxResults` (type: `integer`):

Optional overall cap across all queries (cost cap).

## `excludeForks` (type: `boolean`):

Skip forked repositories.

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

Skip archived (read-only) repositories.

## `includeLatestRelease` (type: `boolean`):

Adds the latest release tag and date (one extra API request per repository; a GitHub token is recommended).

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

Remembers stars and forks of each repository and adds starsGained, forksGained and isNewInResults on the next run. Schedule the run daily or weekly.

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

Separate memory for different watch lists when tracking star growth (e.g. 'ai-tools').

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

A free personal access token without any scopes (github.com > Settings > Developer settings > Fine-grained tokens, public repositories read-only). Raises the limits from 10 to 30 searches per minute and from 60 to 5,000 requests per hour. Stored encrypted.

## `selfTest` (type: `boolean`):

Ignore the input and fetch 5 popular web-scraping repositories plus apify/crawlee to verify the Actor works.

## Actor input object example

```json
{
  "searchQueries": [
    "topic:web-scraping"
  ],
  "repositories": [
    "apify/crawlee"
  ],
  "sort": "stars",
  "maxResultsPerQuery": 100,
  "excludeForks": true,
  "excludeArchived": true,
  "includeLatestRelease": false,
  "trackChanges": false,
  "selfTest": false
}
```

# Actor output Schema

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

Name, stars, growth, language, topics, license, dates.

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

Complete rows incl. size, flags, previous stars and query.

# 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": [
        "topic:web-scraping"
    ],
    "repositories": [
        "apify/crawlee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("michael80/github-repo-search-trends").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": ["topic:web-scraping"],
    "repositories": ["apify/crawlee"],
}

# Run the Actor and wait for it to finish
run = client.actor("michael80/github-repo-search-trends").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": [
    "topic:web-scraping"
  ],
  "repositories": [
    "apify/crawlee"
  ]
}' |
apify call michael80/github-repo-search-trends --silent --output-dataset

```

## MCP server setup

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

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/gPeZxXuno23StGvd9/builds/GNXI95DfRuxT99VkQ/openapi.json
