# GitHub Scraper: Trending, Repos, Users, Search (`zhtech/github-scraper`) Actor

GitHub trending repositories and developers, repository and user search with full GitHub query syntax, repo details, user and organization profiles with their public repos, optional README text and releases. Official API, optional token, no login.

- **URL**: https://apify.com/zhtech/github-scraper.md
- **Developed by:** [ZH Tech](https://apify.com/zhtech) (community)
- **Categories:** Developer tools, AI, Open source
- **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.
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 Scraper: trending repositories, developers, repo search, users and organizations

Scrape **GitHub** public data in one actor: today's **trending repositories and developers**, **repository and user search** with the full GitHub query syntax, **repository details** for any list of repos, and **user and organization profiles** with their public repositories. Optionally add **README text** and **recent releases** to every repository row.

The default run reads github.com/trending and needs no token, no API quota, no proxy and no login. It takes a few seconds and you only pay for rows you get.

### What can this GitHub scraper do?

| Mode | What you get |
|---|---|
| **Trending** | Today's trending repositories (rank, stars, forks, stars gained today, language, description, contributors shown on the page) and trending developers (rank, login, name, avatar, popular repository). Filter by programming language (one list per language) and by spoken language. Optionally add full API details to every row. |
| **Search** | GitHub repository search or user and organization search with every qualifier GitHub supports (`language:`, `stars:`, `topic:`, `created:`, `pushed:`, `location:`, `followers:`, `in:readme` and so on), plus form fields for language, minimum stars, topics, "created within the last N days" and "pushed within the last N days". Sort by stars, forks, help wanted issues, recently updated, followers, repositories or join date. |
| **Repositories** | Full details of any repository you list as `owner/name` or a GitHub link: stars, forks, real watchers, open issues, language, topics, license, homepage, fork parent, archived and template flags, size, default branch and the created, updated and pushed dates. |
| **Users** | Profiles of users and organizations (name, bio, company, location, website, public email when GitHub shows it, X handle, followers, following, public repos, join date) plus their own public repositories, sorted by recent push, update, creation, name or most stars. |

Extras for every repository row, in any mode: **README text** (raw Markdown, length cap of your choice) and the **latest releases** (tag, name, date, link, prerelease flag, notes).

### Why this actor

- **Trending without API quota.** The default mode reads the public trending page directly, so it works even when GitHub's anonymous API limit (60 requests per hour) is used up. This is also what Apify's daily health check runs, so the actor stays reliable.
- **Honest about rate limits.** It reads GitHub's rate limit headers, waits for a reset when it is close (search resets every minute), and otherwise stops cleanly with a message that says which quota ran out and when it resets. Everything saved so far is kept. No silent empty runs.
- **Your token, optional.** Paste a free GitHub token (no scopes needed) to raise the limit from 60 to 5,000 requests per hour and search from 10 to 30 per minute. The token is stored encrypted and never logged or written to the output.
- **Past 1,000 search results.** GitHub search stops at 1,000 results per query. With "Go past 1,000" on, a repository search sorted by stars continues below the lowest star count seen, so rows stay in star order and each repository appears once (tested: 1,150 unique JavaScript repositories in star order in 13 requests).
- **Everything in one run and one format.** Trending, search, repo lists and profiles share the same field names, so you can merge datasets directly.
- **Fair billing.** Duplicates (the same repository found by two queries or two trending lists) are saved and charged once. Not found inputs, invalid inputs, rate limit problems and robots.txt skips become error rows that are never charged. Invalid input and a rejected token stop the run before the start fee.

### Use cases

- **Developer trend tracking and newsletters:** today's trending repositories in your languages, every morning, with stars gained today.
- **Open source and investment research:** find fast growing new projects (created in the last 30 days, sorted by stars), compare stars, forks, watchers and release cadence.
- **Dependency and vendor monitoring:** a fixed list of repositories with their latest release tags, pushed dates, archived flag and license.
- **Developer relations and recruiting research:** organizations and their public repositories, user search by location, language and followers.
- **AI and RAG datasets:** README text of the top repositories for a topic, ready for embedding or summarization.

### How to use

1. Pick **What to scrape** (the mode).
2. Fill in the section for that mode. Other sections are ignored.
3. Optional: add a GitHub token for anything more than a small API run, turn on README or releases, set **Max results** as a cost cap.
4. Run, then open the **Output** tab. Repositories, trending repositories, profiles, README and releases, and errors each have their own view. Export to JSON, CSV, Excel, XML or HTML, or read it through the API.

### Input examples

Today's trending repositories (the default, no token needed):

```json
{ "mode": "trending", "trendingType": "repositories" }
```

Trending Python and Rust repositories and developers, with topics, license and dates from the API:

```json
{
    "mode": "trending",
    "trendingType": "both",
    "trendingLanguages": ["python", "rust"],
    "trendingDetails": true,
    "githubToken": "YOUR_GITHUB_TOKEN"
}
```

Rising new repositories of the past 30 days about LLMs, most stars first:

```json
{
    "mode": "search",
    "searchQueries": ["llm"],
    "createdWithinDays": 30,
    "searchSort": "stars",
    "maxResultsPerQuery": 200
}
```

Every JavaScript repository with more than 2,000 stars (past the 1,000 cap):

```json
{
    "mode": "search",
    "searchQueries": ["language:javascript stars:>2000"],
    "searchSort": "stars",
    "maxResultsPerQuery": 5000,
    "splitLargeSearches": true,
    "githubToken": "YOUR_GITHUB_TOKEN"
}
```

Developers in a city with many followers:

```json
{ "mode": "search", "searchType": "users", "searchQueries": ["location:berlin followers:>500"], "searchSort": "followers", "maxResultsPerQuery": 100 }
```

A list of repositories with README and the latest 3 releases:

```json
{
    "mode": "repositories",
    "repositories": ["apify/crawlee", "https://github.com/pola-rs/polars", "microsoft/vscode"],
    "includeReadme": true,
    "includeReleases": true,
    "maxReleasesPerRepo": 3
}
```

An organization and its 20 most starred repositories, without forks:

```json
{ "mode": "users", "usernames": ["apify"], "maxReposPerUser": 20, "userReposSort": "stars", "excludeForks": true }
```

### Output examples

A trending repository row (default mode, no API details):

```json
{
    "type": "repository",
    "fullName": "pola-rs/polars",
    "owner": "pola-rs",
    "name": "polars",
    "url": "https://github.com/pola-rs/polars",
    "description": "Extremely fast Query Engine for DataFrames, written in Rust",
    "stars": 40397,
    "forks": 3251,
    "language": "Rust",
    "languageColor": "#dea584",
    "topics": null,
    "license": null,
    "source": "trending",
    "trendingRank": 3,
    "starsInPeriod": 17,
    "trendingPeriod": "daily",
    "trendingLanguage": "rust",
    "builtBy": ["ritchie46", "alexander-beedie", "orlp", "nameexhaustion", "coastalwhite"],
    "trendingUrl": "https://github.com/trending/rust",
    "detailsComplete": true,
    "scrapedAt": "2026-11-20T16:49:19.069Z"
}
```

Fields that only the API knows (`topics`, `license`, `watchers`, `openIssues`, `homepage`, the dates) are `null` on trending rows unless **Add full API details** is on. Every repository row has the same keys in every mode.

A repository row from Repositories mode with releases:

```json
{
    "type": "repository",
    "fullName": "apify/crawlee",
    "owner": "apify",
    "ownerType": "Organization",
    "name": "crawlee",
    "url": "https://github.com/apify/crawlee",
    "description": "Crawlee: A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. ...",
    "homepage": "https://crawlee.dev",
    "stars": 26505,
    "forks": 1774,
    "watchers": 135,
    "openIssues": 150,
    "language": "TypeScript",
    "topics": ["apify", "automation", "crawler", "crawling", "headless", "headless-chrome", "javascript", "nodejs", "npm", "playwright", "puppeteer", "scraper", "scraping", "typescript", "web-crawler", "web-crawling", "web-scraping"],
    "license": "Apache-2.0",
    "isFork": false,
    "isArchived": false,
    "defaultBranch": "master",
    "createdAt": "2016-08-26T18:35:03Z",
    "updatedAt": "2026-11-20T08:56:53Z",
    "pushedAt": "2026-11-20T15:44:33Z",
    "source": "repository",
    "latestRelease": "v4.0.0-rc.1",
    "latestReleaseAt": "2026-10-06T13:48:23Z",
    "releases": [{ "tagName": "v4.0.0-rc.1", "name": "v4.0.0-rc.1", "publishedAt": "2026-10-06T13:48:23Z", "url": "https://github.com/apify/crawlee/releases/tag/v4.0.0-rc.1", "isPrerelease": true, "body": "..." }],
    "detailsComplete": true
}
```

A profile row (user or organization):

```json
{
    "type": "profile",
    "login": "apify",
    "accountType": "Organization",
    "name": "Apify",
    "url": "https://github.com/apify",
    "bio": "Put the web to work.",
    "company": null,
    "location": null,
    "blog": "https://apify.com/",
    "email": "hello@apify.com",
    "twitterUsername": "apify",
    "followers": 2621,
    "following": 0,
    "publicRepos": 279,
    "createdAt": "2016-12-15T10:36:52Z",
    "source": "user",
    "detailsComplete": true
}
```

Trending developer rows are profile rows with `source: "trending-developers"`, `trendingRank` and `popularRepo`.

### GitHub rate limits, explained

| | Without a token | With your token |
|---|---|---|
| Trending page (default mode) | No API quota used | No API quota used |
| Core API (repo details, profiles, user repositories, README, releases) | 60 requests per hour per IP | 5,000 requests per hour |
| Search API | 10 requests per minute | 30 requests per minute |

What a run costs in requests: a search page returns up to 100 rows for 1 search request. A profile, a repository detail, a README or a release list is 1 core request each. A user's repositories cost 1 core request per 100 repositories. The trending page is 1 page load per list, no API.

Without a token, Apify servers share IP addresses, so the 60 per hour may already be partly used by others. **For any run that uses the API, add a token.** Create one at github.com/settings/tokens (classic, no scopes ticked, or fine grained with public repositories read only). If a quota runs out, the run waits when the reset is within **Max wait for a rate limit reset** (90 seconds by default, enough for search), otherwise it stops with a clear message and keeps every row saved so far. Rows that could not get optional details (API details on trending rows, full profiles in user search, README, releases) are still saved, with `detailsComplete: false` and the reason in `detailsError`.

### Pricing

Pay per event, you only pay for what is delivered:

- **Actor start**: a small flat fee once per run.
- **Repository**: per repository row (trending, search, repository details, user repositories).
- **Profile**: per user or organization row (profiles, trending developers, user search).

README text and releases are included in the repository price. The current prices are on the Pricing tab. Never charged: duplicates, error rows (not found, invalid input, rate limit, robots.txt), and anything after your max total charge or Max results is reached. Invalid input and a rejected token stop the run before the start fee.

Typical runs: today's trending repositories is 1 start plus up to 25 repository events. An organization with 30 repositories is 1 profile plus 30 repository events.

### Use with the API, integrations and AI agents

- **API**: `POST https://api.apify.com/v2/acts/zhtech~github-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN` with the JSON input as the body returns the rows in one call. Add `&view=trending` (or `repositories`, `profiles`, `errors`) for a specific view.
- **Clients**: `apify-client` for JavaScript and Python. Example (JavaScript): `await client.actor('zhtech/github-scraper').call({ mode: 'trending', trendingLanguages: ['python'] })`.
- **Schedules**: schedule the trending mode daily and connect Google Sheets, Slack, a webhook, Zapier, Make or n8n.
- **LLMs and MCP**: the actor works as a tool through the Apify MCP server (mcp.apify.com), so Claude, ChatGPT, Cursor and other agents can look up trending projects, search repositories or read READMEs on demand. Set a max total charge on the run to cap the cost.

### FAQ

**Is it legal to scrape GitHub?**
The actor reads public data only: GitHub's official REST API (documented for programmatic use) and the public trending page. It never logs in. GitHub's terms allow using public information through the API; you are responsible for how you use the data, especially personal data such as names, locations and public emails. Do not use it for spam.

**Why are weekly and monthly trending lists not available?**
GitHub's robots.txt asks automated clients not to load URLs with `?since=` (the weekly and monthly trending lists). This actor respects that and reads only the daily list; weekly or monthly input returns an uncharged error row. For the rising repositories of the past week or month, use Search mode with **Created within the last N days** (7 or 30) sorted by stars.

**Do I need a GitHub token?**
Not for the default trending mode. For search, repository lists, profiles, README and releases, a token is strongly recommended (see the rate limit table). It needs no scopes.

**Why is `watchers` null on some rows?**
GitHub's search and list endpoints return a `watchers_count` that is actually the star count. The real number of watchers (subscribers) only comes from the repository details endpoint, so it is filled in Repositories mode and when **Full details** or **Add full API details** is on, and left `null` instead of being wrong elsewhere.

**Why does user search return fewer details without a token?**
GitHub's user search returns only the login. Each full profile is 1 more core request; when the anonymous 60 per hour runs out, the remaining rows keep login, type, URL and avatar with `detailsComplete: false`. Add a token for full profiles.

**Do I get email addresses?**
Only the public email a user or organization chose to show on their GitHub profile, exactly as the API returns it. The actor does not guess emails or read them from commits.

**A repository appears in two trending languages. Is it charged twice?**
No. Each repository and each profile is saved once per run, with the rank of the first list it was found in.

**Why did a search return fewer rows than the match count?**
GitHub returns at most 1,000 results per query (use **Go past 1,000** for repository searches sorted by stars), and its search can time out on very broad queries (logged as incomplete results).

### Limitations

- Weekly and monthly trending lists are not read (robots.txt, see FAQ).
- GitHub search is capped at 1,000 results per query; splitting past it works for repository searches sorted by stars, high to low.
- The trending page has no official API. Parsing is built on stable page anchors and covered by unit tests, but if GitHub changes the page, the run reports a parse error row instead of returning wrong data.
- Private repositories, stars or followers lists, contribution graphs, issues and pull requests are not covered.
- Anonymous API limits are low and shared on cloud IPs; use a token for API heavy runs.

### Support

Found a field that is wrong, a page that does not parse, or need another data point? Open an issue on the Issues tab with the input you used and it will be looked at quickly.

# Actor input Schema

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

Trending: today's trending repositories and developers from github.com/trending (no API quota needed). Search: GitHub repository or user search with the full GitHub query syntax. Repositories: details of repositories you list. Users: profiles of users or organizations you list, with their public repositories. Only the section for the chosen mode is used.

## `trendingType` (type: `string`):

Trending repositories, trending developers, or both.

## `trendingLanguages` (type: `array`):

One trending list per language, for example python, typescript, rust, go, c++, jupyter notebook. Leave empty for all languages.

## `trendingSince` (type: `string`):

Daily is today's trending list. GitHub's robots.txt asks automated clients not to load the weekly and monthly lists (URLs with ?since=), so this actor only reads the daily list; weekly or monthly input returns an error row instead. For rising repositories of the past week or month, use Search mode with "Created within the last N days" sorted by stars.

## `trendingSpokenLanguage` (type: `string`):

Only repositories whose description or README is in this spoken language, as a 2 letter code: en, zh, es, ja, de, fr, pt, ko, ru. Leave empty for any.

## `maxTrendingPerPage` (type: `integer`):

GitHub shows up to 25 entries per trending list.

## `trendingDetails` (type: `boolean`):

Adds topics, license, watchers, open issues, homepage and dates to each trending repository (and the full profile to each trending developer) through the GitHub API, 1 request per row. Without a token GitHub allows 60 requests per hour, so add a token for more than a few lists. Rows are saved even if the quota runs out (detailsComplete false).

## `searchQueries` (type: `array`):

One search per line in GitHub search syntax, exactly as on github.com/search, for example: web scraping language:python stars:>500, topic:llm created:>2026-01-01, location:berlin followers:>200 (user search). Leave empty to search only by the filters below.

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

Repositories or users (users and organizations).

## `searchSort` (type: `string`):

Repositories: best match, stars, forks, help wanted issues, recently updated. Users: best match, followers, repositories, join date. A sort that does not fit the search type falls back to best match.

## `searchOrder` (type: `string`):

High to low (desc) or low to high (asc). Ignored for best match.

## `searchLanguage` (type: `string`):

Adds language: to every search (replaces any language: already in the query), for example python or "jupyter notebook".

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

Adds stars:>=N to every repository search.

## `searchTopics` (type: `array`):

Adds topic: for each one, for example machine-learning, cli.

## `createdWithinDays` (type: `integer`):

Adds created:>= today minus N days. With sort by stars this finds the rising new repositories of the past week (7) or month (30). 0 means no filter.

## `pushedWithinDays` (type: `integer`):

Only repositories with a commit pushed in the last N days (active projects). 0 means no filter.

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

Adds archived:false to repository searches. Forks are already left out of GitHub search unless the query says fork:true.

## `maxResultsPerQuery` (type: `integer`):

GitHub search returns at most 1,000 results per query. Turn on "Go past 1,000" to get more from a repository search sorted by stars.

## `splitLargeSearches` (type: `boolean`):

When a repository search sorted by stars (high to low) reaches 1,000 results, the actor runs it again below the lowest star count seen, so rows stay in star order and each repository appears once. Uses more search requests: add a token.

## `fetchProfileDetails` (type: `boolean`):

User search only returns the login. This reads each full profile (name, bio, company, location, blog, followers, created date), 1 core API request per user. Off returns login, type, URL and avatar only.

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

Repositories as owner/name or links, for example apify/crawlee or https://github.com/microsoft/vscode.

## `usernames` (type: `array`):

GitHub usernames, organization names or profile links, for example torvalds, apify or https://github.com/microsoft.

## `includeUserRepos` (type: `boolean`):

Saves each user's or organization's own public repositories as repository rows.

## `maxReposPerUser` (type: `integer`):

Upper limit of repository rows per user or organization. 0 saves only the profile.

## `userReposSort` (type: `string`):

Recently pushed, recently updated, newest, name, or most stars (reads up to 1,000 repositories first, then keeps the top ones).

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

Leave out repositories that are forks of another repository.

## `fetchRepoDetails` (type: `boolean`):

Search and repository lists already include stars, forks, issues, language, topics, license and dates. This adds watchers (subscribers), network count and parent of forks, 1 core API request per repository. Repository details mode always includes them.

## `includeReadme` (type: `boolean`):

Adds the README (raw Markdown) to each repository row, 1 core API request per repository. Not charged extra.

## `maxReadmeChars` (type: `integer`):

Longer READMEs are cut and marked readmeTruncated true.

## `includeReleases` (type: `boolean`):

Adds the latest releases (tag, name, date, link, prerelease flag, notes up to 2,000 characters) to each repository row, 1 core API request per repository. Not charged extra.

## `maxReleasesPerRepo` (type: `integer`):

Newest first.

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

Your own GitHub personal access token (classic or fine grained, no scopes or permissions needed for public data). Raises the API limit from 60 to 5,000 requests per hour and search from 10 to 30 per minute. Stored encrypted, never logged or saved to the output.

## `maxRateLimitWaitSeconds` (type: `integer`):

When a GitHub quota is used up, the run waits for the reset if it is this close (search resets every minute), otherwise it stops cleanly with a clear message and keeps everything saved so far. Anonymous core quota resets hourly.

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

Hard cap on charged rows for the whole run, a safety limit on cost. 0 means no cap besides your max charge.

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

Not needed. Used only for the github.com trending page, never for the GitHub API (the API limit belongs to your token, so a proxy does not raise it). Leave off.

## Actor input object example

```json
{
  "mode": "trending",
  "trendingType": "repositories",
  "trendingLanguages": [],
  "trendingSince": "daily",
  "maxTrendingPerPage": 25,
  "trendingDetails": false,
  "searchQueries": [
    "web scraping language:python stars:>1000"
  ],
  "searchType": "repositories",
  "searchSort": "best-match",
  "searchOrder": "desc",
  "minStars": 0,
  "searchTopics": [],
  "createdWithinDays": 0,
  "pushedWithinDays": 0,
  "excludeArchived": false,
  "maxResultsPerQuery": 100,
  "splitLargeSearches": false,
  "fetchProfileDetails": true,
  "repositories": [
    "apify/crawlee"
  ],
  "usernames": [
    "apify"
  ],
  "includeUserRepos": true,
  "maxReposPerUser": 30,
  "userReposSort": "pushed",
  "excludeForks": false,
  "fetchRepoDetails": false,
  "includeReadme": false,
  "maxReadmeChars": 20000,
  "includeReleases": false,
  "maxReleasesPerRepo": 3,
  "maxRateLimitWaitSeconds": 90,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `repositories` (type: `string`):

No description

## `trending` (type: `string`):

No description

## `profiles` (type: `string`):

No description

## `errors` (type: `string`):

No description

## `allResults` (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 = {
    "mode": "trending",
    "trendingType": "repositories",
    "searchQueries": [
        "web scraping language:python stars:>1000"
    ],
    "repositories": [
        "apify/crawlee"
    ],
    "usernames": [
        "apify"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/github-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 = {
    "mode": "trending",
    "trendingType": "repositories",
    "searchQueries": ["web scraping language:python stars:>1000"],
    "repositories": ["apify/crawlee"],
    "usernames": ["apify"],
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/github-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 '{
  "mode": "trending",
  "trendingType": "repositories",
  "searchQueries": [
    "web scraping language:python stars:>1000"
  ],
  "repositories": [
    "apify/crawlee"
  ],
  "usernames": [
    "apify"
  ]
}' |
apify call zhtech/github-scraper --silent --output-dataset

```

## MCP server setup

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