# GitHub Intel: Repos, Developer Leads & Stargazer Lists (`w3crawler/github-intel-scraper`) Actor

Uses the official public GitHub REST API for bounded repository search and optional public stargazer/contributor lists.

- **URL**: https://apify.com/w3crawler/github-intel-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 intelligences

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Intel

Collect bounded public GitHub repository, stargazer, or contributor records. The Actor supports three explicit modes: repository search, public stargazers for one repository, and public contributors for one repository. It uses the documented unauthenticated GitHub REST API and does not accept or require a GitHub token.

### Source behavior

The public GitHub repository and people surfaces expose repository names, owners, stars, forks, languages, profile links, stargazers, and contributor counts. This Actor normalizes those source-backed fields into compact dataset rows and keeps the API endpoint in `sourceUrl`. It does not access private profiles or repositories, perform writes, log in, bypass CAPTCHA or rate limits, or use undocumented endpoints. Unauthenticated rate limits apply; the run summary reports the actual source outcome.

### Input

```json
{
  "mode": "repositories",
  "query": "stars:>1000 language:JavaScript",
  "limit": 25
}
```

For `repositories` mode, `query` uses public GitHub repository search syntax and `limit` is capped at 100. For `stargazers` or `contributors`, provide `owner` and `repo`:

```json
{
  "mode": "contributors",
  "owner": "octocat",
  "repo": "Hello-World",
  "limit": 25
}
```

Unknown input keys are rejected. Input limits are enforced before requests. The Actor does not silently turn a missing owner/repository into a different mode.

### Dataset output

Repository rows can contain `mode`, owner `login`, `fullName`, public repository URL, avatar URL, stars, forks, language, account type, the public endpoint `sourceUrl`, and `scrapedAt`. Stargazer and contributor rows contain the public login/profile/avatar, account type, contributions where GitHub provides them, mode, source URL, and scrape time. These are meaningful source fields. Internal record IDs, actor inventory labels, store slugs, status/data flags, diagnostic labels, and request counters are not emitted in normal rows.

If GitHub returns an error or no usable public rows, the dataset may contain one minimal diagnostic row with `url`, `error`, `errorCode`, and `scrapedAt`. The `OUTPUT_SUMMARY` key-value record retains run status, requested mode, endpoint, records emitted, source availability, and diagnostic details.

#### Repository example

```json
{
  "mode": "repositories",
  "login": "octocat",
  "fullName": "octocat/Hello-World",
  "htmlUrl": "https://github.com/octocat/Hello-World",
  "stars": 2100,
  "forks": 900,
  "language": "JavaScript",
  "sourceUrl": "https://api.github.com/search/repositories?q=stars%3A%3E1000&per_page=25",
  "scrapedAt": "2026-08-24T00:00:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Local run

```bash
npm ci
npm run check
npm test
apify validate-schema
apify run --purge --input-file input.json
npm run validate
```

Keep query and limit bounds modest for unauthenticated runs and use only legitimate public-source purposes.

# Actor input Schema

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

Public endpoint to read: repository search, stargazers, or contributors.

## `query` (type: `string`):

GitHub repository search syntax used only in repositories mode.

## `owner` (type: `string`):

Public repository owner required for stargazers or contributors mode.

## `repo` (type: `string`):

Public repository name required for stargazers or contributors mode.

## `limit` (type: `integer`):

Maximum number of public records to emit, capped at 100.

## Actor input object example

```json
{
  "mode": "repositories",
  "query": "stars:>1000",
  "limit": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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("w3crawler/github-intel-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/github-intel-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/CK5uy2HrrgEo2jdei/builds/qBUDejMKC28VSmDwT/openapi.json
