# Github Email Scraper (`w3crawler/github-email-scraper`) Actor

Instantly extract contributor emails and detailed profiles from any public GitHub repository or organization to supercharge your developer outreach and recruiting.

- **URL**: https://apify.com/w3crawler/github-email-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 commit emails

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 Public Commit Email Scraper

Find email addresses that are visibly present in public GitHub commit metadata and aggregate them by address. For each public repository, the Actor inspects a bounded number of commit rows, deduplicates the addresses, keeps supporting repository and commit evidence, and can optionally enrich linked public GitHub profiles.

### Public-only behavior

The source is public GitHub repository commit metadata, including the author/committer name and email that GitHub exposes on public commit responses. The Actor does not infer private addresses, scrape authenticated pages, access private repositories, bypass CAPTCHA or rate limits, or send write requests. GitHub noreply addresses are identified as such, but no claim is made that a public email is currently deliverable or belongs to a particular person beyond the source record.

The public repository commit history is a rendered GitHub surface with commit links, authors, timestamps, and messages. The Actor uses GitHub's documented public REST representation of those public commit rows because it provides the same source fields in a bounded, stable response. A caller-supplied token is optional for public API rate-limit headroom and is never written to the dataset or summary.

### Input

```json
{
  "githubIds": ["apify/apify-cli"],
  "maxCommitsPerRepo": 50,
  "maxProfiles": 20,
  "enrichProfiles": true,
  "maxItems": 100,
  "timeoutMs": 30000
}
```

`githubIds` accepts public users, organizations, or `owner/repository` values and is required by the input schema. A repository ID inspects that repository; a user or organization ID expands to at most `maxRepos` recently updated public repositories. `maxCommitsPerRepo` is capped at 1,000, `maxProfiles` at 100, and `maxItems` at 1,000. Profile enrichment is optional and bounded. Timeouts are 1–120 seconds. Unknown input keys are rejected. Proxy configuration is retained only for Store compatibility; this Actor uses direct public GitHub requests.

### Dataset output

Each normal row contains a public `email`, source-derived `name`, optional GitHub `login`, numeric profile ID, public avatar/profile URL, repositories where the address appeared, repository URLs, the bounded `commit_count`, supporting commit SHAs, first/last observed commit timestamps, `is_github_noreply`, optional public profile fields, the public repository `sourceUrl`, and `scrapedAt`. These fields are source-backed and useful for public contributor analysis. Internal record IDs, success flags, source-website labels, transport labels, and request counters are not emitted in normal rows.

Operational failures are summarized in `OUTPUT`, including repositories, inspected commit rows, API requests, contributor count, failed requests, and failure details. The Actor does not create fake email rows for unavailable repositories.

#### Dataset example

```json
{
  "name": "Octocat",
  "email": "octo@users.noreply.github.com",
  "login": "octocat",
  "repositories": ["octocat/Hello-World"],
  "repository_urls": ["https://github.com/octocat/Hello-World"],
  "commit_count": 3,
  "commit_shas": ["abc123"],
  "is_github_noreply": true,
  "sourceUrl": "https://github.com/octocat/Hello-World",
  "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
```

Respect GitHub terms and applicable privacy laws. Keep the commit and repository bounds modest and use the data only for legitimate public-source purposes.

# Actor input Schema

## `githubIds` (type: `array`):

Public GitHub users, organizations, or repositories.

## `maxRepos` (type: `integer`):

Bounded public repository expansion for user or organization IDs.

## `maxCommitsPerRepo` (type: `integer`):

Maximum public commit rows inspected for each repository.

## `maxProfiles` (type: `integer`):

Maximum linked public profile lookups.

## `enrichProfiles` (type: `boolean`):

Fetch optional public profile metadata.

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

Maximum deduplicated contributor email records.

## `timeoutMs` (type: `integer`):

Maximum time allowed for each API request.

## `userAgent` (type: `string`):

Optional transparent HTTP user-agent string.

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

Optional authorized token for API rate-limit headroom; never written to output.

## `proxyConfiguration` (type: `object`):

Retained for Store compatibility; direct public API requests are used.

## Actor input object example

```json
{
  "githubIds": [
    "octocat/Hello-World"
  ],
  "maxRepos": 5,
  "maxCommitsPerRepo": 50,
  "maxProfiles": 20,
  "enrichProfiles": true,
  "maxItems": 100,
  "timeoutMs": 30000
}
```

# 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-email-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-email-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-email-scraper --silent --output-dataset

```

## MCP server setup

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