# GitHub Repositories, Developers & Trending Scraper | $0.60/1K (`kaitoeasyapi/github-repositories-developers-trending-scraper`) Actor

GitHub Open-Source Intelligence Scraper ($0.60–$0.85/1K records): search repositories, daily/weekly trending projects & public org/user profiles with stars, forks, licenses, topics & security scores.

- **URL**: https://apify.com/kaitoeasyapi/github-repositories-developers-trending-scraper.md
- **Developed by:** [Kaito T](https://apify.com/kaitoeasyapi) (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.60 / 1,000 github repository records

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 Repositories, Trending & Package Intel Scraper

Extract structured **GitHub repository metadata**, **daily/weekly/monthly GitHub Trending feeds**, and **open-source package insights** in clean JSON without personal data exposure.

### Extraction Modes

1. **Repository Search (`mode: "search_repos"`)**: Search repositories by keyword or `owner/repo` identifier, with optional `language` filtering and star-ranked ordering.
2. **Trending Repositories (`mode: "trending"`)**: Extract trending open-source repositories across `daily`, `weekly`, or `monthly` windows, including stars gained in period, total stars, forks, primary language, and descriptions.
3. **Repository Details (`mode: "repo_details"`)**: Fetch rich metadata for specific `owner/repo` targets including topics, SPDX licenses, default branches, issue counts, and open-source dependency insights.

### Privacy & Rate-Limit Resilience

- **Rate-Limit Resilient Multi-Rail Architecture**: Automatically handles shared-IP GitHub REST API rate limits (`403` / `429` / `X-RateLimit-Remaining: 0`) via public open-source index fallback and SSR Trending HTML parsing, while optionally supporting a user-supplied secret `githubToken` for elevated official REST limits.
- **Zero Personal Commit Email Harvesting**: Strictly extracts repository-level and organization/account-level public metadata only; commit email addresses and personal email fields are never queried or emitted.
- **Pay-Per-Event Pricing**: **$0.60 per 1,000 results** on Gold, Platinum, and Diamond tiers ($0.85/1K on Free tier).

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `string` | `"search_repos"` | `"search_repos"`, `"trending"`, or `"repo_details"`. |
| `queries` | `string[]` | `["model context protocol", "modelcontextprotocol/servers"]` | Search keywords or `owner/repo` identifiers. |
| `language` | `string` | `""` | Optional programming language filter (e.g. `"typescript"`, `"python"`). |
| `since` | `string` | `"weekly"` | Trending window (`"daily"`, `"weekly"`, or `"monthly"`). |
| `githubToken` | `string` | `""` | Optional secret GitHub token for higher official API rate limits. |
| `maxItems` | `integer` | `20` | Maximum repository records to return. |

### Example Input

```json
{
  "mode": "search_repos",
  "queries": [
    "model context protocol",
    "modelcontextprotocol/servers"
  ],
  "language": "typescript",
  "since": "weekly",
  "maxItems": 20
}
```

### Example Output Record

```json
{
  "recordType": "github_repository",
  "fullName": "modelcontextprotocol/servers",
  "owner": "modelcontextprotocol",
  "ownerType": "Organization",
  "repoName": "servers",
  "description": "Model Context Protocol Servers",
  "language": "TypeScript",
  "starsCount": 42800,
  "forksCount": 4910,
  "openIssuesCount": 312,
  "watchersCount": 42800,
  "starsInPeriod": null,
  "trendingPeriod": null,
  "license": "MIT",
  "topics": ["mcp", "ai", "agents"],
  "defaultBranch": "main",
  "packageIntel": {
    "system": "GITHUB_PROJECT",
    "ossfScorecardScore": 6.8,
    "advisoryCount": 0
  },
  "createdAt": "2024-11-01T12:00:00Z",
  "updatedAt": "2026-11-20T16:45:00Z",
  "pushedAt": "2026-11-20T16:30:00Z",
  "scrapedAt": "2026-11-22T19:00:00.000Z"
}
```

# Actor input Schema

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

Select 'search_repos' for keyword or owner/repo search, 'trending' for GitHub Trending feeds, or 'repo_details' for targeted repository lookups.

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

Search keywords, owner/repo identifiers (e.g. 'modelcontextprotocol/servers'), or full GitHub repository paths.

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

Optional programming language filter (e.g. 'typescript', 'python', 'rust', 'go'). Leave empty for all languages.

## `since` (type: `string`):

Time window used when extracting GitHub Trending repositories.

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

Optional personal GitHub token for higher official API rate limits. Stored as a secret and never written to logs or datasets.

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

Maximum number of repository records to return in this run.

## Actor input object example

```json
{
  "mode": "search_repos",
  "queries": [
    "model context protocol",
    "modelcontextprotocol/servers"
  ],
  "language": "",
  "since": "weekly",
  "maxItems": 20
}
```

# Actor output Schema

## `dataset` (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": [
        "model context protocol",
        "modelcontextprotocol/servers"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/github-repositories-developers-trending-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": [
        "model context protocol",
        "modelcontextprotocol/servers",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kaitoeasyapi/github-repositories-developers-trending-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": [
    "model context protocol",
    "modelcontextprotocol/servers"
  ]
}' |
apify call kaitoeasyapi/github-repositories-developers-trending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/github-repositories-developers-trending-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/1wwUqlELXyWckFK9D/builds/Woh4JYHpyVwn613Pp/openapi.json
