# GitHub Repository Search & Intelligence (`amygraphics/github-repository-intelligence`) Actor

Search and compare GitHub repositories with community, commits, contributors, releases, advisories, heuristic scores and OSV package-version checks. Monitor changes and partition broad searches.

- **URL**: https://apify.com/amygraphics/github-repository-intelligence.md
- **Developed by:** [Zakaria el bouami](https://apify.com/amygraphics) (community)
- **Categories:** Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.06 / 1,000 repository results

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 Repository Search & Due Diligence

Search public GitHub repositories or look up specific `owner/repo` names. Combine discovery and optional due-diligence data: community profile, commit activity, contributors, release recency, language proportions, public advisories, a sample of commit signature verification, and **OSV.dev checks for explicitly supplied package versions**. Compare repositories and track observed changes. Official APIs; no browser or API key required for small runs.

### Pricing

One start event costs **$0.005 per GB of memory** (minimum once). Each delivered repository costs: Free **$0.00023**, Bronze **$0.00020**, Silver **$0.000156**, Gold, Platinum and Diamond **$0.000056**. Optional enrichments are included in the row; the summary is free. Set a maximum run charge on Apify. Platform usage may be billed separately depending on pricing settings and plan.

### Search, lookup and comparison

```json
{"queries":["web scraping"],"language":"Python","minStars":100,"pushedAfter":"2026-01-01","excludeForks":true,"excludeArchived":true,"sort":"stars","maxResults":20,"mode":"market-map","maxEnriched":5}
```

```json
{"repositories":["psf/requests","pallets/flask"],"queries":[],"mode":"dependency-audit","includeComparison":true,"maxResults":2,"maxEnriched":2,"packageChecks":[{"repository":"psf/requests","ecosystem":"PyPI","name":"requests","version":"2.19.0"}]}
```

Direct lookups are processed first, then search queries. Clear the form's example query when doing lookup only. Filters apply to search queries, not direct lookups. Queries support GitHub qualifiers, with deduplication by repository ID. The optional `autoPartition` splits high-volume search results by creation-date ranges; `maxSearchRequests` (1–100) bounds search calls, and `maxResults` caps delivered rows (1–10,000). Partitioning does not guarantee exhaustive output: same-day overflows, GitHub rate limits, incomplete results, changing repositories, result limits and query/request caps are reported in the summary. GitHub ranking applies within each partition; the combined result is not globally reranked.

### Workflows and output

`mode` presets: `search`, `market-map`, `dependency-audit`, `adoption-shortlist`, `maintainer-outreach`, `trend-watch` and `repo-due-diligence`. Presets **enable their documented enrichments**; select search mode to choose enrichments manually. The default enrichment cap is 10 repositories, maximum 200. Each requested surface can be `ok`, `not_found`, `empty`, `pending`, `unavailable` or skipped due to a cap/rate limit. Direct and search results share the same output fields.

- Repo metadata: name, URL, stars, forks, issue/PR count, language, topics, licence, owner, timestamps, archive/fork status, GitHub size and clone URL.
- Optional public owner profile, latest release, language bytes and percentages, GitHub community profile, first 100 contributors and their concentration within that sample, and GitHub 13/52-week default-branch commit activity. GitHub statistics can be pending and do not cover every branch.
- Optional first 100 recent commits: GitHub's reported signature-verification fraction. This is a sample, **not an audit of all commits**.
- Optional first 20 public GitHub repository advisories. An empty response is not evidence of security. The GitHub API may have additional pages and may not include every relevant vulnerability.
- **OSV.dev package checks:** give an exact ecosystem, name and version mapped to a repo yourself. OSV is queried only for the specified version; the Actor does **not** verify that a repo owns or uses that package. Results include advisory IDs, aliases and summaries, capped at 50 per check, and report truncation. OSV can have gaps and fuzzy version matching; zero matches does not prove safety. Supported ecosystem values: `PyPI`, `npm`, `Maven`, `Go`, `crates.io`, `NuGet`, `RubyGems`.
- Optional `includeContributorEmails` exposes author addresses from the first 100 public commits after basic noreply/bot filtering. It is **off by default, even in presets**; addresses are unverified personal data. Observe privacy law and GitHub terms, and do not use the data for spam.

### Evidence, scores and monitoring

Each repository includes explanatory factor-based `intelligence` scores and coverage for project health, adoption readiness, community, maintenance evidence, supply-chain evidence and outreach evidence. Missing components are excluded rather than treated as zero. **These weights are unvalidated heuristics, not probabilities, independent security audits or safe-to-adopt recommendations.** Each score carries its factors, weights and coverage; results with differing coverage may not be comparable. No visible advisories does not imply no vulnerabilities, and no recent push does not prove abandonment; projects can be feature-complete. A days-until-inactivity calculation assumes no future push and is not a forecast.

`includeComparison` ranks returned rows by stars and heuristic health and reports coverage. It compares only the bounded rows actually delivered, not the entire ecosystem. A named `onlyChanges` watch tracks changes to observed stars, forks, issue counts, push time, archive status, licence, and when successfully fetched, release tag and first-page advisory IDs. Star rate compares saved snapshots only and requires at least a day between observations. First run emits current matches. The store identity changed in v2, so create a new baseline. Watches are bounded snapshots, can miss updates, do not report removals, and must not run concurrently on the same watch. Failed enrichment is not treated as a removal.

### Rate limits, privacy and responsibility

GitHub has separate search and core API limits; unauthenticated runs share an IP quota, and enrichment requires multiple requests. Optional `githubToken` is an Apify encrypted input, sent only to `api.github.com`; redirects to other hosts are rejected. The Actor does not rotate proxies to evade limits. It reports limit/source errors without blind retries; result rows already delivered remain available. GitHub's watchers field mirrors source data and is not an independently verified subscriber count; open issue counts can include pull requests. Output is public metadata, not source-code archives. This independent Actor is not affiliated with GitHub or OSV.dev.

# Actor input Schema

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

Optional search queries or GitHub qualifiers; provide queries and/or direct repositories. Default example can be cleared.

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

Optional GitHub language filter, for example Python.

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

Optional GitHub topics; all listed topics must match.

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

Optional GitHub username or organization.

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

Minimum public count (0 disables filter).

## `minForks` (type: `integer`):

Minimum public count (0 disables filter).

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

Optional inclusive date YYYY-MM-DD.

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

Optional inclusive date YYYY-MM-DD.

## `excludeForks` (type: `boolean`):

Adds a GitHub search qualifier.

## `excludeArchived` (type: `boolean`):

Adds a GitHub search qualifier.

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

GitHub search ranking.

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

Direction for sorted results.

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

Total rows across direct repositories and queries, up to 10,000; GitHub quotas and partition limits apply.

## `includeOwnerDetails` (type: `boolean`):

Optional public owner name, company, location, email and follower count when available.

## `includeRelease` (type: `boolean`):

Optional latest release tag, publication date and link; no release is explicitly reported.

## `includeLanguages` (type: `boolean`):

Optional GitHub language byte totals; these are not percentages or code quality measurements.

## `includeAdvisories` (type: `boolean`):

Optional first 20 repository advisories; missing results do not establish safety.

## `maxEnriched` (type: `integer`):

Maximum repositories to enrich (0–200). Each enrichment consumes GitHub requests; token recommended for larger runs.

## `onlyChanges` (type: `boolean`):

First run emits current repositories; later runs only emit new or changed tracked metadata. Not safe for concurrent runs on one watch.

## `watchName` (type: `string`):

Required with onlyChanges; letters, digits, underscore or hyphen.

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

Optional public-data GitHub token for higher rate limits. Encrypted by Apify; sent only to api.github.com.

## `includeComparison` (type: `boolean`):

Compare delivered repositories by stars, push recency and transparent heuristic health score; scores are not validated risk or safety ratings.

## `repositories` (type: `array`):

Exact owner/repo names for direct lookup or comparison, up to 100. Evaluated before search queries.

## `autoPartition` (type: `boolean`):

Split searches above 1000 results into date ranges. Large runs may remain incomplete due to query/request budgets, date ties or GitHub limits.

## `maxSearchRequests` (type: `integer`):

Request budget for search and partition pages; 1–100. A reached budget is reported as incomplete.

## `includeCommunity` (type: `boolean`):

Include GitHub community health percentage and community file presence.

## `includeActivity` (type: `boolean`):

Include GitHub 13/52-week commit statistics when GitHub has computed them.

## `includeContributors` (type: `boolean`):

Include up to 100 public contributors and top share in that sample.

## `includeCommitSample` (type: `boolean`):

Include verified-signature proportion among at most 100 recent default-branch commits.

## `includeContributorEmails` (type: `boolean`):

Opt-in personal data from recent public commit author metadata; addresses are unverified. Respect GitHub terms and privacy law.

## `packageChecks` (type: `array`):

Optional JSON list of repository, ecosystem, package name and version objects. The mapping is user-supplied, not automatically verified.

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

Presets request useful enrichments. Personal commit emails always require explicit opt-in.

## Actor input object example

```json
{
  "queries": [
    "web scraping"
  ],
  "minStars": 0,
  "minForks": 0,
  "excludeForks": false,
  "excludeArchived": false,
  "sort": "best-match",
  "order": "desc",
  "maxResults": 50,
  "includeOwnerDetails": false,
  "includeRelease": false,
  "includeLanguages": false,
  "includeAdvisories": false,
  "maxEnriched": 10,
  "onlyChanges": false,
  "includeComparison": false,
  "autoPartition": false,
  "maxSearchRequests": 30,
  "includeCommunity": false,
  "includeActivity": false,
  "includeContributors": false,
  "includeCommitSample": false,
  "includeContributorEmails": false,
  "packageChecks": []
}
```

# 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 = {
    "queries": [
        "web scraping"
    ],
    "packageChecks": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("amygraphics/github-repository-intelligence").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": ["web scraping"],
    "packageChecks": [],
}

# Run the Actor and wait for it to finish
run = client.actor("amygraphics/github-repository-intelligence").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": [
    "web scraping"
  ],
  "packageChecks": []
}' |
apify call amygraphics/github-repository-intelligence --silent --output-dataset

```

## MCP server setup

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

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/2HAU65rGvFUx6VP4s/builds/VJA7y3VF8dQcyZNax/openapi.json
