# GitHub Trending & Repo Search – Stars, Forks & Topics API (`rowfeed/github-trending-api`) Actor

GitHub's trending repositories (today, this week, this month, any language) and repository search as clean rows: stars, stars gained, forks, language, topics, license and last push. No token. $0.40 per 1,000 repos.

- **URL**: https://apify.com/rowfeed/github-trending-api.md
- **Developed by:** [Rowfeed](https://apify.com/rowfeed) (community)
- **Categories:** Developer tools, AI, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 1,000 repositories

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 Trending & Repo Search – Stars, Forks & Topics API

Get GitHub's trending repositories for today, this week or this month, for all languages or the ones you pick, and search all of GitHub's repositories, as clean rows: stars, stars gained in the period, forks, language, description, topics, license, website and last push. No GitHub token and no login.

Built for developer-tool and AI trend tracking, open-source scouting, tech newsletters, competitor and ecosystem research, lead lists of companies building in a space, and AI agents that need to know what developers are starring right now.

### What you get

- **Trending:** the Trending list in rank order, with the stars gained today, this week or this month. One list per language (`python`, `rust`, `typescript` …), and an optional spoken-language filter.
- **Repository search:** up to 1,000 repositories per search, sorted by stars, forks or last update. GitHub's qualifiers work: `language:python stars:>1000 topic:llm`, `pushed:>2026-10-01`, `org:vercel`.
- **Search rows add:** open issues, topics, license, website, owner type (user or organization), created date, last push, archived and fork flags.
- **Monitoring:** schedule Trending daily to see what is taking off, or a search with `pushed:>` or `created:>` to catch new projects in your niche.
- **No personal data:** the "Built by" people on Trending are left out, and email addresses in descriptions become `[email removed]`.

### Example output rows

A real Trending row (today, all languages):

```json
{
  "source": "trending",
  "rank": 1,
  "repo": "meta/astryx",
  "url": "https://github.com/meta/astryx",
  "description": "An open source design system that's fully customizable and agent ready",
  "language": "TypeScript",
  "stars": 24542,
  "forks": 1917,
  "stars_in_period": 2842,
  "period": "daily",
  "trending_language": "all languages",
  "search": null
}
```

A real search row (`web scraping`, most stars):

```json
{
  "source": "search",
  "rank": 1,
  "repo": "unclecode/crawl4ai",
  "url": "https://github.com/unclecode/crawl4ai",
  "language": "Python",
  "stars": 87225,
  "forks": 9090,
  "open_issues": 331,
  "topics": ["ai", "crawler", "llm", "web-scraping"],
  "license": "Apache-2.0",
  "owner_type": "User",
  "created": "2024-05-09T09:48:50Z",
  "last_push": "2026-11-10T12:30:15Z",
  "archived": false,
  "fork": false,
  "search": "web scraping"
}
```

### How to use

1. Click **Try for free** (or **Start**) at the top of this page to open the input form.
2. Fill in **Trending repositories**. Get GitHub's Trending list. The form comes with a working example, so you can also run it as it is.
3. Optional: adjust **Trending period**, **Trending languages (optional)**, **Spoken language (optional)**, **Search repositories (optional)**. Every field has a sensible default.
4. Click **Start** and wait for the run to finish.
5. Download the results as Excel, CSV or JSON from the **Output** tab, or get them through the Apify API, a schedule or an integration (Make, Zapier, Google Sheets ...).

### Pricing

Pay per event, no subscription:

- **$0.40 per 1,000 repositories** ($0.0004 per row).
- $0.002 per run start.

Examples: the pre-filled run (today's Trending) costs about $0.006. Trending for 10 languages (about 150 rows) costs about $0.06. A search for the top 1,000 Python repositories costs $0.402. Error rows are never charged.

### Input

| Field | What it does |
|---|---|
| `includeTrending` | Get the Trending list (on by default). |
| `period` | `daily`, `weekly` or `monthly`. |
| `trendingLanguages` | One Trending list per language. Empty = all languages. |
| `spokenLanguage` | Optional two-letter code (`en`, `zh`) for Trending. |
| `searches` | Repository searches, one per line, with GitHub's qualifiers. |
| `sort` | `stars`, `forks`, `updated` or `best-match`, for searches. |
| `maxResults` | Per search, up to 1,000 (default 100). |

### Good to know

- **Trending lists are short:** GitHub shows 10 to 25 repositories per list. Pick several languages to get more.
- **Searches run one after another:** GitHub allows 10 searches a minute without a token, so 10+ searches with many pages take a few minutes. The Actor waits instead of failing.
- **Up to 1,000 results per search** (GitHub's limit). Narrow with qualifiers such as `stars:>100` or `created:>2026-01-01` to reach more.
- Not affiliated with GitHub.

### More tools from Rowfeed

- [Hacker News API](https://apify.com/rowfeed/hacker-news-api) – Hacker News stories, front page, Ask/Show HN and the monthly hiring thread as rows.
- [Reddit Scraper](https://apify.com/rowfeed/reddit-scraper) – posts and newest comments of any subreddit, filtered by your keywords, without usernames.
- [Website Technology Checker](https://apify.com/rowfeed/website-technology-checker) – which CMS, frameworks and tools any website runs.
- [Google Sheets Export](https://apify.com/rowfeed/google-sheets-export) – send the results of any run to a Google Sheet.

# Actor input Schema

## `includeTrending` (type: `boolean`):

Get GitHub's Trending list. Off = only your searches.

## `period` (type: `string`):

Stars gained in this period decide the ranking.

## `trendingLanguages` (type: `array`):

One Trending list per language. Empty = all languages.

## `spokenLanguage` (type: `string`):

Two-letter code, e.g. en or zh, for the Trending list.

## `searches` (type: `array`):

Keywords, one per line. GitHub's search qualifiers work: language:, stars:>, topic:, pushed:>, user:, org:.

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

For searches.

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

Up to 1,000 (GitHub's limit per search).

## Actor input object example

```json
{
  "includeTrending": true,
  "period": "daily",
  "trendingLanguages": [
    "python",
    "typescript",
    "rust"
  ],
  "spokenLanguage": "en",
  "searches": [
    "web scraping",
    "language:python stars:>1000 topic:llm",
    "mcp server pushed:>2026-10-01"
  ],
  "sort": "stars",
  "maxResults": 100
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("rowfeed/github-trending-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("rowfeed/github-trending-api").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 '{}' |
apify call rowfeed/github-trending-api --silent --output-dataset

```

## MCP server setup

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

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/WX8Sqw6N6S0Wy80ws/builds/fI9YVeSsKb3gfsDic/openapi.json
