# GitHub Scraper: Repositories, Trending, Issues, Releases (`bardach_technologies/github-repository-data-scraper`) Actor

GitHub scraper without login: search repositories by phrase, topic and language, list the most starred new repositories of the last N days, read repository details, README, issues, releases and a user's or organisation's repositories. Only-new mode. USD 0.0008 per result row.

- **URL**: https://apify.com/bardach_technologies/github-repository-data-scraper.md
- **Developed by:** [Bardach Technologies](https://apify.com/bardach_technologies) (community)
- **Categories:** Developer tools, Open source, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 result rows delivered

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/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

This **GitHub scraper** returns public GitHub data as rows: **repository search** by phrase, topic or language, **GitHub trending** (the most starred new repositories of the last N days), repository details with optional README, **issues**, releases, and the repositories of a user or organisation. It reads GitHub's public REST API without a login, can deliver only what is new since your last run, and removes e-mail addresses and phone numbers from the text it returns.

On a busy shared address a run can be rate limited and then delivers fewer rows or none; see the limits below.

Found it useful? A short review on this page helps other people find it.

Try it: click **Start** with the prefilled input (the most starred Python repositories created in the last 7 days, up to 20 results). In the local run of 29.11.2026 it wrote 21 rows in about 13 seconds (the platform run of 28.11.2026 took 15.4 seconds) and cost USD 0.016 (20 x 0.0008), plus Apify's start event of USD 0.00005. That is the example's result when GitHub's search limit allows it: on a busy shared address a run can be rate limited and then delivers fewer rows or none (see the limits below).

### Sample output

#### Minimal input

```json
{ "trendingDays": 7, "language": "Python", "maxResultsPerJob": 20 }
```

#### Output

One output row (a repository row from the local run of 29.11.2026, shortened; owner, name, description and link are placeholders, the other values are from that run):

```json
{
  "type": "repository",
  "job": "trending: last 7 days",
  "fullName": "example-owner/example-repo",
  "owner": "example-owner",
  "description": "A short description of the repository (placeholder)",
  "url": "https://example.com/example-owner/example-repo",
  "language": "Python",
  "stars": 3480,
  "forks": 738,
  "openIssues": 786,
  "license": "GPL-3.0",
  "topics": [],
  "createdAt": "2026-11-23T23:54:39Z",
  "pushedAt": "2026-11-29T16:52:13Z",
  "detectedAt": "2026-11-29T17:41:28+00:00"
}
```

Each job (a search phrase, the trending list, a repository's details, issues or releases, an account's list) also ends with one free `job` row that says what happened: `ok`, `limitReached`, `truncated`, `notFound`, `blocked`, `rateLimited`, `authRejected`, `refused`, `notTried` or why it was not read.

Sample output table: the minimal input above (the most starred new Python repositories of the last 7 days, 20 results; local run of 29.11.2026) wrote 21 rows (20 repositories and 1 free job row, `limitReached`) and cost USD 0.016 (20 x 0.0008) plus Apify's start event (USD 0.00005). Repository names, owners and descriptions are left out of the table because some owners are private people; the rows carry them. The first six repositories:

| language | stars | forks | license | createdAt | openIssues |
|---|---|---|---|---|---|
| Python | 3480 | 738 | GPL-3.0 | 2026-11-23T23:54:39Z | 786 |
| Python | 1778 | 0 | MIT | 2026-11-27T15:09:07Z | 0 |
| Python | 1670 | 184 | MIT | 2026-11-26T17:53:07Z | 9 |
| Python | 614 | 140 | GPL-3.0 | 2026-11-24T22:58:04Z | 28 |
| Python | 601 | 84 | — | 2026-11-25T20:14:03Z | 5 |
| Python | 488 | 42 | — | 2026-11-22T08:02:45Z | 3 |

### Input

The prefilled input is a complete run. The fields most buyers set:

| Field | What you set |
|---|---|
| `trendingDays` | Adds one job: the most starred repositories created in the last N days (1 to 365; prefilled 7; 0 is off). |
| `language` and `topic` | Optional filters, a language as GitHub names it (prefilled `Python`) and a topic such as `machine-learning`. |
| `searchPhrases` | Up to 20 repository searches, one per line; GitHub's own qualifiers such as `stars:>1000` also work. |
| `repositories` and `accounts` | `owner/name` links for details, issues and releases, or users and organisations for their repository lists. |
| `maxResultsPerJob` | At most this many rows per job (default 100, prefilled 20). |

Also: `onlyNewSinceLastRun` with a `stateKey` for a monitor, and an optional `githubToken` (secret) for higher GitHub limits. With every list empty the run ends at once without a result charge.

### Use cases

- **New projects in a niche:** `{ "trendingDays": 14, "topic": "vector-database", "minStars": 20, "onlyNewSinceLastRun": true }` run once a day gives each newly created, already popular project once.
- **Release watch:** `{ "repositories": ["vercel/next.js", "facebook/react"], "repositoryDetails": false, "includeReleases": true, "onlyNewSinceLastRun": true }` gives only releases not delivered before.
- **Open issues of a project:** `{ "repositories": ["owner/name"], "repositoryDetails": false, "includeIssues": true, "issueState": "open" }` lists the newest open issues (pull requests only with `includePullRequests`). `{ "accounts": ["vercel"], "excludeForks": true }` lists everything one organisation publishes, most recently pushed first.

### Use it from n8n, Make, the API or an AI agent

1. Fill the same fields as in the form: `trendingDays`, `language`, `topic`, `searchPhrases`, `repositories` or `accounts`. For a monitor add `onlyNewSinceLastRun` and keep the same `stateKey`.
2. In n8n or Make use the Apify module: run this Actor with that JSON, then get the dataset items. With the API, start a run with the same JSON and read its default dataset. An AI agent can call the Actor as a tool with the same JSON, for example through the Apify MCP server.
3. Read one row per repository, issue or release, then one free `job` row per job. Use `type` to sort them.
4. Read `outcome` and the rate-limit state in the key-value store record `OUTPUT`: a run on a busy shared address can end with `rateLimited` and `notTried` jobs; start it again later or add a GitHub token.

### Related Actors

- **Our dataset to Google Sheets Actor** (Apify Store; search for "Dataset to Google Sheets Export via Service Account"): writes the rows of a run into a spreadsheet.
- **Our dataset merge Actor** (Apify Store; search for "Merge Datasets & Remove Duplicates by Field"): merges the datasets of several runs and removes duplicate rows by a field such as `fullName`.

### What you get

- Repository rows: name, owner, description, link, language, stars, forks, open issues, licence, topics and created, pushed and updated times; optional README as text.
- Issue and release rows: title or tag, state, labels, dates, link and a 300-character excerpt.
- Only-new mode: at regular intervals, just the new repositories, issues or releases for each job.

### Who this is for

Developers and analysts who want repository lists for a niche, watch new popular projects or releases, or follow what an organisation publishes, as rows for a sheet or a model.

### How to read GitHub data

1. Fill in what you want: **Search phrases**, **Language** or **Topic**, **Trending**, **Repositories** or **Users or organisations**. Each phrase, each repository (details, issues, releases) and each account is one job; one run takes at most 200 jobs (a repository with details, issues and releases is 3 jobs, so 100 repositories with all three would be 300 and are refused).
2. Optional: switch on **Only new since the last run** and run the Actor at regular intervals with the same input and **State key**. The first run delivers everything it read and remembers it; later runs deliver only what is new for that job. Repository details rows are always delivered.
3. Optional: add a **GitHub token** (see below) to raise GitHub's limits.
4. Read the dataset: one row per delivered repository, issue or release, then one job row per job. The `OUTPUT` record holds the counts, how the run ended (`complete`, `stoppedEarly` or `incomplete`) and GitHub's rate-limit state.

### What it does

- Reads only GitHub's REST API at api.github.com: search, the public repository list of an account, one repository, its issues and its releases, and the README as plain text when you ask for it. No web page, no profile, no commit, no e-mail field.
- One request per second, searches at least 6.2 seconds apart without a token (2.1 with one). `robots.txt` of api.github.com is read first (it has no rules). A limit or refusal is asked once and never waited out or retried, even when the reset is seconds away: any 429, primary or secondary rate limit, general 403 or 451, an error message where data belongs (also with status 200), and a web page, check page or plain text where API data belongs (any status, a server error included) ends that kind of request (core or search) for the run, and a 401 ends all requests. The job that met it is `rateLimited`, `refused` or `authRejected`; the remaining jobs of that kind are `notTried` without a request, also after a restart. All of them are free and their saved state is unchanged. The price of this rule: a run that meets a short limit delivers less than one that waited, so start it again later for the `notTried` jobs.
- Delivers repository rows (id, full name, owner, description, link, homepage, language, stars, forks, open issues, licence, topics, created, updated and pushed time, default branch, archived, fork), issue rows (number, title, state, author login, labels, comments, dates, link, 300-character excerpt) and release rows (tag, name, author login, dates, link, 300-character excerpt, asset count and download count). Issue and release authors are public GitHub logins; nothing else about a person is read.
- Removes e-mail addresses and phone numbers from descriptions, issue and release text, names, labels and READMEs before it is written: plain, spelled-out, full-width (`＠`, `．`, `。`), percent-encoded (`%40`) and entity (`&#64;`) addresses, addresses and numbers with invisible characters inside, `+` numbers, national numbers with any separators (`0800·123·4567`, `030|1234|5678`), `tel:` and other phone addresses, WhatsApp links and Telegram invite links (`t.me/+`). They are replaced by `[email removed]`, `[e-mail removed]`, `[phone removed]` or `[removed]`. Kept: version numbers, dates and counts. A homepage is kept only as a plain http(s) link without contact data or credentials; one with a contact form in it is left out. A GitHub token you enter is replaced by `[removed]` wherever an answer repeats it.
- Malformed text in an answer (for example a broken Unicode character) is repaired before the row is saved, shown as the replacement character. Private or internal repositories are not delivered: with a token, issues and releases are read only after the repository is confirmed public (one extra request per repository job, status `notPublic` otherwise). Issues without a readable title, an open or closed state or a creation date, repositories without an owner or creation date, objects with numbers far beyond any real value (for example a billion stars) or dates outside GitHub's years, draft or unpublished releases, releases without a tag, and any item without its own github.com link or from another repository than the one asked for are skipped and free. A renamed repository or account is followed only through GitHub's own redirect.
- GitHub's own error text is not copied into rows or status messages; they name the HTTP status only. A web page where API data belongs counts as a refusal. Redirects are followed only within the GitHub API host (api.github.com). If you ask for the README and it cannot be read (other than a repository that has none), that repository job delivers nothing and is free.
- "Only new" remembers up to 30,000 delivered ids per job and forgets the oldest beyond that. For issues it asks only for those updated since the last complete read (minus two days of margin). For releases it reads the whole list up to `maxPagesPerJob` on every run, because GitHub's `created_at` is the date of the release's commit and a new release can sit behind older dates: a repository with more than 100 releases costs more than one request per run, and a list longer than the page limit ends as `truncated`, so a new release beyond it can be missed.
- A crash or a resurrection never writes a row twice and never charges a row twice. A kill between writing rows and saving the charge intent is charged on restart. After a kill once the intent is saved, that one batch may or may not have been charged: it is not charged again, because Apify's count can lag and a second charge must never happen, so it can stay unpaid. The maximum charge counts what this run's own records sent to billing as well as Apify's count, so a restart with a lagging count never charges above it.
- With `onlyNewSinceLastRun`, the ids of delivered results are saved before they are charged. A run that is aborted and not resurrected never charges them again: the next run with the same state reports only results that were not delivered before. If that saved record is damaged, the job starts a new baseline (nothing reported or charged for it in that run).

### Input reference

See the input form for every field and its limit. Main fields: `searchPhrases`, `language`, `topic`, `minStars`, `createdWithinDays`, `pushedWithinDays`, `trendingDays`, `repositories`, `accounts`, `includeIssues`, `includeReleases`, `includeReadme`, `maxResultsPerJob`, `maxPagesPerJob`, `onlyNewSinceLastRun`, `stateKey`, `githubToken`. With every list empty the run ends at once without a result charge.

### FAQ

**Do I need a GitHub token?** Usually not for a small run, but a run can be rate limited. Without one, Apify's shared addresses allowed about 40 to 56 repository, issue, release or account requests per address per hour when measured on 18.11.2026. A token with no permissions raises GitHub's limits. The token route itself was not tested with a real token.

**Is "trending" GitHub's trending page?** No. It means the most starred repositories created in the last N days, as the search API ranks them.

**What happens when GitHub's rate limit is reached?** The job ends as `rateLimited`, the remaining jobs of that kind are `notTried`, nothing is retried and none of them costs anything. Run them again after the limit resets.

### Limits and what is not covered

#### Do not use it when

- You want user profiles, followers or e-mail addresses of developers. This Actor reads no profile fields and no commit data, and removes e-mail-like text.
- You need more than 1,000 results for one search. GitHub's search reaches at most 1,000 results; split the search with filters (stars, dates, language) instead.
- You need GitHub's own trending page. "Trending" here means the most starred repositories created in the last N days, as the search API ranks them.
- You need private repositories, code search or pull request diffs. Only public repository, issue and release data is read.
- You need more than a small run without a GitHub token. Without a token Apify's shared addresses allow only about 40 to 56 repository, issue, release or account requests per address per hour (measured, below); add a free GitHub token for anything beyond that.

#### GitHub's limits and the token

Without a token GitHub allows 60 requests an hour per IP address and 10 searches a minute (a search page and any other page are one request each, 100 items per page). **We recommend a token for anything beyond a small run.** A run on a shared address that others have already used can be rate limited at once; the first job is then reported as `rateLimited`, the remaining jobs of that kind as `notTried`, all free, and a run in which no job could be read ends as failed. With a token that has no permissions (a fine-grained or classic personal access token for public data) the limits are 5,000 requests an hour and 30 searches a minute. The token goes in the secret input field, is sent only to api.github.com as an authorization header and is never stored, logged or written to the output. Never give a token that can write.

#### What was measured

Checked on 18.11.2026 against the live API from a Mac and on Apify's platform, without a token:

- **Trending example** (`trendingDays 7`, 20 rows, 18.11.2026): 3 of 3 runs succeeded in 13 to 15 seconds with 20 rows each; the prefilled input (the same with `language` Python) succeeded on the Apify platform on 28.11.2026 with 21 rows in 15.4 seconds, and locally on 29.11.2026 with 21 rows in about 13 seconds; 10 of 10 small inputs (repository with releases, account, search, issues, trending, README, topic search, releases only, two repositories) succeeded in 3 to 18 seconds, charged rows equal delivered rows.
- **Limit of a run without a token** on Apify's shared addresses: about 40 to 56 repository, issue, release or account requests per address per hour (one run of 62 repositories delivered 56 rows, then the rest were free `rateLimited` rows with GitHub's reset time; the next run on the same address failed with only free rateLimited rows). Searches have their own limit of 10 a minute and kept working when the other quota was used up.
- **With your own free GitHub token** the limits are GitHub's authenticated ones (5,000 requests an hour, 30 searches a minute). The token route itself was not tested with a real token.
- Field-by-field comparison with an independent fetch of 232 rows showed no difference except live counters (stars, downloads).
- Not measured: a real secondary-rate-limit or 401 answer from GitHub (the stop is tested on fixtures only), searches that reach the 1,000-result ceiling, only-new on the platform, state with 30,000 ids.

No proxy is used or offered: GitHub's limit is a quota per address, and this Actor does not try to get around it; use the token instead.

### Pricing

USD 0.80 per 1,000 rows delivered (USD 0.0008 per repository, issue or release row), plus Apify's start event of USD 0.00005 per run. Job status rows and not-found, blocked, rate-limited or failed jobs are free.

#### Pricing details

Pay per event. USD 0.0008 per delivered repository, issue or release row (USD 0.80 per 1,000), plus Apify's own start event of USD 0.00005 per run start. Apify charges the start event again when a run is resurrected after an abort (the rows already delivered are never charged twice). A repository found by two phrases is delivered and charged once per run; its details row (a repository in the Repositories list) is always delivered. Job rows, not-found, blocked, rate-limited and failed jobs are free. Example: the input above delivered 20 rows, which costs 20 x 0.0008 + 0.00005 = USD 0.01605. A run with `onlyNewSinceLastRun` on that finds nothing new costs only the start event. Each job delivers at most `maxResultsPerJob` rows (default 100), so one job costs at most USD 0.08 at the default and USD 0.80 at the maximum of 1,000; a maximum charge per run caps it lower and is never exceeded.

# Actor input Schema

## `searchPhrases` (type: `array`):

Up to 20 repository searches, each up to 256 characters, one search per entry. Plain words search name, description, topics and README; GitHub's own search qualifiers also work (for example stars:>1000 or org:vercel). Each phrase is read with the filters below. Leave all lists empty and the run ends at once without a result charge (Apify's own start fee still applies).

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

Optional programming language as GitHub names it, for example Python, Rust, C++ or Jupyter Notebook. Applies to searches and the trending-style job. If you set only a language or a topic (no phrase, no other list), one search with these filters runs.

## `topic` (type: `string`):

Optional GitHub topic, for example machine-learning or cli (lower case letters, digits and -).

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

Searches and the trending-style job return only repositories with at least this many stars. Default 0 (no minimum).

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

Searches only: repositories created in the last N days. 0 (default): no limit. For "most starred of the last N days" use Trending days below.

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

Searches only: repositories with a push in the last N days (a sign that the project is alive). 0 (default): no limit.

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

Applies to searches, the trending-style job and account lists. Default off.

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

Applies to searches and the trending-style job. Default off.

## `sortBy` (type: `string`):

Order of search results. Default: most stars.

## `trendingDays` (type: `integer`):

Adds one job that returns the most starred repositories created in the last N days (with the language, topic, minimum stars and fork filters above). This is the stars-in-a-window list of new projects, not GitHub's own trending page. 0 (default): off, from 1 to 365.

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

Up to 100 repositories as owner/name or github.com links, but one run takes at most 200 jobs and each repository is up to 3 jobs (details, issues, releases), so 100 repositories fit only with fewer data kinds. Each one gives a details row (stars, forks, issues, licence, topics, last push, optional README), plus its issues and releases when switched on below. A repository GitHub does not know gets a free not-found row, a blocked one a free blocked row.

## `accounts` (type: `array`):

Up to 50 GitHub users or organisations (name or github.com link). Each gives the list of its public repositories, most recently pushed first. Only repository data is read, no profile fields.

## `repositoryDetails` (type: `boolean`):

On (default): every listed repository gives one details row. Off: only the issues and releases you switch on are read.

## `includeIssues` (type: `boolean`):

Adds the issues of every listed repository, newest first (pull requests only if switched on below).

## `includePullRequests` (type: `boolean`):

GitHub lists pull requests together with issues. Default off: pull requests are left out.

## `issueState` (type: `string`):

Which issues are read. Default: open.

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

Adds the releases of every listed repository, newest first, with tag, date, notes excerpt and download counts.

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

Adds the README text to each repository details row (one more request per repository; e-mail-like text is removed). Default off.

## `readmeMaxChars` (type: `integer`):

The README text is cut to this length. Default 5,000, up to 100,000.

## `maxResultsPerJob` (type: `integer`):

At most this many rows per search, trending job, account, issues list or releases list in one run (the job row says how many were left). Default 100, from 1 to 1,000 (GitHub reaches at most 1,000 search results).

## `maxPagesPerJob` (type: `integer`):

Pages of 100 read per job and run. With onlyNewSinceLastRun a job may need to read past entries it has already reported to find new ones; the limit stops that (the job is then marked truncated). Without a token GitHub allows 60 requests an hour and 10 searches a minute, so keep it low. Default 3, from 1 to 10.

## `onlyNewSinceLastRun` (type: `boolean`):

On: each search, trending job, account list, issues list and releases list delivers only items it has not delivered before (the first run delivers everything it read and saves what it delivered). Repository details rows are always delivered. Runs with the same state key, job and filters compare with each other. Default off: every run delivers everything and saves nothing.

## `stateKey` (type: `string`):

Names this monitoring job for onlyNewSinceLastRun. Use another key for another job. Only one run at a time per state key: two runs at the same time with the same key both deliver (and charge) the same new items and can damage the saved state, which then starts a new baseline. 1 to 64 letters, digits, - or \_. Default: default.

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

Optional. A personal access token with no permissions at all (read-only public data) raises GitHub's limits from 60 to 5,000 requests an hour and from 10 to 30 searches a minute. It is sent only to api.github.com, as an authorization header, and is never stored, logged or written to the output. Create it in your own GitHub settings; do not give a token that can write. Format: a token starts with github_pat\_ (fine-grained) or ghp\_ (classic).

## Actor input object example

```json
{
  "searchPhrases": [
    "vector database",
    "stars:>1000 language:rust"
  ],
  "language": "Rust",
  "topic": "machine-learning",
  "minStars": 50,
  "createdWithinDays": 30,
  "pushedWithinDays": 30,
  "excludeForks": false,
  "excludeArchived": false,
  "sortBy": "stars",
  "trendingDays": 7,
  "repositories": [
    "vercel/next.js",
    "facebook/react"
  ],
  "accounts": [
    "vercel"
  ],
  "repositoryDetails": true,
  "includeIssues": false,
  "includePullRequests": false,
  "issueState": "open",
  "includeReleases": false,
  "includeReadme": false,
  "readmeMaxChars": 5000,
  "maxResultsPerJob": 20,
  "maxPagesPerJob": 3,
  "onlyNewSinceLastRun": false,
  "stateKey": "daily-python"
}
```

# Actor output Schema

## `results` (type: `string`):

One row per delivered repository, issue or release, followed by one free row per job (search, repository, issues list, releases list or account) with its status and counts.

## `summary` (type: `string`):

How the run ended (complete, stoppedEarly or incomplete), which jobs were read, not found, blocked or failed and why, the events charged and GitHub's rate-limit state.

# 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 = {
    "language": "Python",
    "trendingDays": 7,
    "maxResultsPerJob": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("bardach_technologies/github-repository-data-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 = {
    "language": "Python",
    "trendingDays": 7,
    "maxResultsPerJob": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("bardach_technologies/github-repository-data-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 '{
  "language": "Python",
  "trendingDays": 7,
  "maxResultsPerJob": 20
}' |
apify call bardach_technologies/github-repository-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bardach_technologies/github-repository-data-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/BwLucmx5vijC5eOBl/builds/O6XvdFPXkNBTgPDOa/openapi.json
