# GitHub Repository Search — Stars, Topics, License & Owners (`openregistry/github-repos-search`) Actor

Search GitHub repositories or developers with the official GitHub REST API: keywords, language, stars, topics, license, dates. Stars, forks, topics, license, last push and optional owner profiles. Your token optional.

- **URL**: https://apify.com/openregistry/github-repos-search.md
- **Developed by:** [Mahé Perrin](https://apify.com/openregistry) (community)
- **Categories:** Developer tools, 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.50 / 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 Repository Search — Stars, Topics, License & Owners

Search **GitHub repositories** — or developers and organizations — with the **official GitHub REST API**. Filter by keywords, language, stars, topics, license, creation and last-push dates, and get one clean row per repository: stars, forks, topics, license, last push, homepage and, optionally, the owner's public profile.

No login needed, no scraping, no browser. Your own GitHub token is optional and only raises the rate limits. This is an independent tool, not affiliated with or endorsed by GitHub.

### Why this one

- **Works without a token.** The Actor reads GitHub's rate-limit headers and paces itself (10 searches per minute without a token), so a run never fails halfway because of the limit.
- **Every useful filter in the form.** Language, topics, star range, created/pushed dates, license, owners, forks and archived repositories — plus a free field for any GitHub qualifier.
- **Owner profiles in the same row.** Turn on *Add the owner's public profile* to get name, company, website, location, bio and followers of each owner, read once per owner.
- **Developers and organizations too.** Switch to *Developers and organizations* to search accounts by location, language and followers, with their full public profile.
- **Clean data.** Empty strings become `null`, licenses are SPDX identifiers, dates are ISO 8601.

### What you get for each repository

| Field | Example |
|---|---|
| `fullName`, `owner`, `ownerType`, `url` | scrapy/scrapy, scrapy, Organization |
| `description`, `homepage` | Scrapy, a fast high-level web crawling & scraping framework for Python. |
| `language`, `topics` | Python, crawler, scraping, web-scraping |
| `stars`, `forks`, `openIssues` | 65436, 12154, 176 |
| `license`, `licenseName` | BSD-3-Clause |
| `createdAt`, `pushedAt`, `updatedAt` | 2010-02-22, 2026-11-16 |
| `isFork`, `isArchived`, `isTemplate`, `hasPages`, `sizeKb`, `defaultBranch` | false, false, false, … |
| `ownerProfile` | `{ name, company, blog, location, email, bio, followers, publicRepos, … }` (optional) |

In *Developers and organizations* mode each row is an account: `login`, `type`, `name`, `company`, `blog`, `location`, `email` (only when public), `bio`, `followers`, `publicRepos`, `createdAt`, `url`.

### Typical uses

- **Developer tools and DevRel:** find active projects in your ecosystem and the people who maintain them.
- **Investors and analysts:** spot fast-rising open-source projects (few stars, recent creation, frequent pushes).
- **Recruiters:** developers by location and language, with their public profile.
- **Researchers and AI datasets:** repository metadata by topic, language and license.

### Input examples

Popular, maintained Python scraping projects with their owners:

```json
{
  "keywords": "web scraping",
  "languages": ["Python"],
  "minStars": 500,
  "pushedAfter": "2026-06-01",
  "sort": "stars",
  "includeOwnerProfile": true
}
```

Rising LLM projects created this year:

```json
{ "topics": ["llm"], "createdAfter": "2026-01-01", "minStars": 50, "maxStars": 2000, "sort": "stars", "maxResults": 300 }
```

Rust developers in Berlin:

```json
{ "searchType": "users", "location": "Berlin", "languages": ["Rust"], "minFollowers": 50, "sort": "followers" }
```

### Limits to know

- GitHub returns at most **1,000 results per search**. To go further, run several searches split by star range or creation date.
- Without a token: 10 searches per minute (about 1,000 repositories per minute) and 60 profile reads per hour. When the profile quota runs out, the remaining rows are still delivered with `ownerProfile` set to `null`. A token with no scopes gives 30 searches per minute and 5,000 profiles per hour.
- Star counts and dates are those GitHub's search index holds at run time.

### Personal data

Owner and account profiles contain what people chose to publish on GitHub (name, location, sometimes an e-mail). You are responsible for your own use of the data, including GDPR, the GitHub Terms of Service and GitHub's Acceptable Use Policies, which forbid using profile information for spam or unsolicited e-mails.

### Pricing

Pay per result: **$0.0005 per repository** ($0.50 per 1,000) and **$0.001 per developer or organization profile**. The optional owner profile in repositories mode costs nothing extra. `maxResults` caps the bill and duplicates are never charged.

# Actor input Schema

## `searchType` (type: `string`):

Repositories (default) or GitHub accounts.

## `keywords` (type: `string`):

Words searched in the name, description and topics of repositories (or in login, name and e-mail of accounts).

## `languages` (type: `array`):

Programming languages, e.g. Python, TypeScript, Rust, Go. Several languages are alternatives.

## `topics` (type: `array`):

Repositories mode: GitHub topics, e.g. machine-learning, llm, home-assistant. Every topic listed must be present.

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

Repositories mode.

## `maxStars` (type: `integer`):

Repositories mode: useful to find rising projects.

## `createdAfter` (type: `string`):

Creation date on or after (YYYY-MM-DD).

## `createdBefore` (type: `string`):

Repositories mode: creation date on or before (YYYY-MM-DD).

## `pushedAfter` (type: `string`):

Repositories mode: keep repositories with code pushed on or after this date — a good filter for maintained projects.

## `license` (type: `string`):

Repositories mode: SPDX license key, e.g. mit, apache-2.0, gpl-3.0.

## `owners` (type: `array`):

Repositories mode: only repositories of these users or organizations, e.g. microsoft, apify.

## `includeForks` (type: `boolean`):

Repositories mode: forks are excluded by GitHub unless you turn this on.

## `includeArchived` (type: `boolean`):

Repositories mode: turn off to keep only active, writable repositories.

## `includeOwnerProfile` (type: `boolean`):

Repositories mode: adds name, company, website, location, public e-mail, bio and followers of each owner (one extra call per distinct owner). Without a token GitHub allows 60 profiles per hour.

## `location` (type: `string`):

Users mode: location written in the profile, e.g. Berlin, France, San Francisco.

## `minFollowers` (type: `integer`):

Users mode.

## `minRepos` (type: `integer`):

Users mode.

## `accountType` (type: `string`):

Users mode.

## `includeProfiles` (type: `boolean`):

Users mode: reads each account's public profile (name, company, location, bio, followers). Turn off for logins only.

## `rawQuery` (type: `string`):

Any GitHub search qualifiers added to the query, e.g. in:readme, good-first-issues:>3, size:<1000, org:vercel.

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

GitHub returns at most 1,000 results per search, so the sort decides which ones you get.

## `order` (type: `string`):

Ignored for best match.

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

A personal access token with no scopes (public data only) raises the limits from 10 to 30 searches per minute and from 60 to 5,000 profiles per hour. It is stored encrypted and only sent to api.github.com.

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

Up to 1,000 per run (GitHub's limit per search). For more, split by star range or creation date.

## Actor input object example

```json
{
  "searchType": "repositories",
  "keywords": "web scraping",
  "languages": [
    "Python"
  ],
  "includeForks": false,
  "includeArchived": true,
  "includeOwnerProfile": false,
  "accountType": "any",
  "includeProfiles": true,
  "sort": "best-match",
  "order": "desc",
  "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 = {
    "keywords": "web scraping",
    "languages": [
        "Python"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("openregistry/github-repos-search").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 = {
    "keywords": "web scraping",
    "languages": ["Python"],
}

# Run the Actor and wait for it to finish
run = client.actor("openregistry/github-repos-search").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 '{
  "keywords": "web scraping",
  "languages": [
    "Python"
  ]
}' |
apify call openregistry/github-repos-search --silent --output-dataset

```

## MCP server setup

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

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/sL1aho5n8ztKjTSwK/builds/FlD6MV0xhZpAsqg46/openapi.json
