# GitHub Search Scraper (`alpha-scraper/github-search-scraper`) Actor

\[ 1k / 1$ ] GitHub search scraper: search repositories, users, issues and pull requests, topics or commits through the official keyless API. Sort, filter by language and add README, profile, languages and release details without a token.

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

## Pricing

Pay per event + usage

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Search Scraper

GitHub Search Scraper is an Apify Actor that collects developer ecosystem data from GitHub and returns it as clean, structured records.
GitHub search scraper: search repositories, users, issues and pull requests, topics or commits through the official keyless API.
Instead of copying GitHub pages by hand, you enter your keywords, choose a few options, and receive one JSON record for every developer-ecosystem record that the source site returns.

**Who is it for?** developer-relations and ecosystem analysts; open-source maintainers and researchers; engineering managers scouting tools.
**What problem does it solve?** Collecting GitHub information by hand is slow and hard to repeat. GitHub Search Scraper returns the same documented GitHub fields every time, ready for spreadsheets, databases and dashboards.
**What data do you get?** 175 documented GitHub fields per record, exported as JSON, CSV, Excel, XML, HTML or RSS.
**What is the easiest way to start?** Open the Actor on Apify, keep the pre-filled input, lower `maxItems`, and press Start.

> **📌 GitHub Search Scraper at a glance**
>
> - **Platform:** GitHub
> - **Category:** developer ecosystem
> - **Input fields:** 12 · **Output fields:** 175
> - **Listed price:** $1.00 per 1,000 results

### ✨ GitHub Search Scraper Key Features

GitHub Search Scraper turns online developer-ecosystem records into structured data with a short list of inputs and a documented output.
Here is what GitHub Search Scraper offers:

- **Keyword input:** GitHub Search Scraper accepts one or many entries in `queries` and processes each entry on its own.
- **Result limit:** `maxItems` caps the GitHub records per run, so test runs of the Actor stay small and costs predictable.
- **Structured output:** 175 documented GitHub fields in a consistent JSON structure.
- **Export anywhere:** download the GitHub data as JSON, CSV, Excel, XML, HTML or RSS, or read the dataset through the Apify API.
- **Run summary:** a `RUN_SUMMARY` record and the status message report counts and the first problem of every run of GitHub Search Scraper.
- **Search Type** (`searchType`): What to search for. Code search is not offered because GitHub requires a login for it.
- **Programming Language** (`language`): Adds 'language:<value>' to the query, for example 'Python', 'TypeScript' or 'C++'.
- **Sort Results By** (`sortBy`): 'Best match' is GitHub's default ranking.

> **💡 Why use GitHub Search Scraper?**
>
> - You work with documented source fields instead of raw pages.
> - You can repeat the same GitHub job on a schedule and compare results over time.
> - You can start small with the Actor, check the output, and scale up when you are happy.

### 🔍 What Data Can GitHub Search Scraper Extract?

Each record describes one developer-ecosystem record found on GitHub.
The schema documents 175 fields: 63 core fields that appear in almost every record, 11 common fields and 101 conditional fields that appear only when GitHub provides the value or the matching option is on.

- `type`: Result type
- `id`: GitHub ID
- `fullName`: Full name
- `name`: Name
- `url`: URL
- `description`: Description
- `stars`: Stars
- `forks`: Forks

The Output section below lists more source fields with their types and shows a real sample record collected by GitHub Search Scraper.

### ⚙️ How GitHub Search Scraper Works

The workflow of GitHub Search Scraper is intentionally simple, and GitHub Search Scraper needs no code:

1. You provide a JSON input or fill the Console form; missing options use their documented defaults.
2. For every entry in `queries`, the Actor requests results from GitHub, page after page, until it has `maxItems` records or GitHub has no more matches.
3. With `fetchDetails` on, GitHub Search Scraper also opens each record's detail page and adds the extra fields.
4. Each record is cleaned and mapped to the documented fields; values that GitHub does not provide are left out instead of guessed.
5. Records are saved to the default dataset in small batches, and a `RUN_SUMMARY` record closes the run of GitHub Search Scraper.

### 🚀 How to Use GitHub Search Scraper

You can run the Actor in a few minutes. Follow these steps in the Apify Console:

1. Open the page of GitHub Search Scraper on Apify and select the **Input** tab.
2. Enter your search keywords in **Search Queries** (`queries`).
3. Set **Max Items Per Query** (`maxItems`) to a small number such as 20 for the first run.
4. Press **Start**, then open the **Output** tab to browse the GitHub dataset and use **Export** to download it.
5. Save the input as a **Task** and add a **Schedule** to repeat GitHub Search Scraper runs.

A quick start input for GitHub Search Scraper:

```json
{
  "queries": ["web scraping"],
  "maxItems": 20
}
```

With this input, the Actor searches GitHub for the keywords shown and returns at most `maxItems` records.

### 🛒 How to Scrape GitHub developer-ecosystem records with GitHub Search Scraper

To scrape GitHub developer-ecosystem records, add your keywords to `queries`, set `maxItems`, and start GitHub Search Scraper. Each keyword is processed separately, so ten keywords produce ten separate searches that share one dataset.

#### 📁 Can You Export GitHub Data to CSV, Excel or JSON?

Yes. Every run of GitHub Search Scraper stores its GitHub records in a dataset that you can download as JSON, CSV, Excel, XML, HTML or RSS from the Console or through the API.

#### ⏰ Can You Schedule GitHub Search Scraper to Monitor GitHub?

Yes. Save your input as a Task, attach a Schedule, and compare the GitHub dataset of every run.

### 📥 GitHub Search Scraper Input

This table lists every input field of the Actor, taken from the Actor's input schema. The form is pre-filled with a working example.

#### 🧾 GitHub Search Scraper Input Fields

|Field|Type|Default|Purpose|
|---|---|---|---|
|`queries`|array|\["web scraping"]|GitHub search qualifiers (language:, stars:, topic:, user:, org:, is:open, created:>2024-01-01 ...)…|
|`maxItems`|integer|15|Maximum number of results to extract per query.|
|`searchType`|string|"repositories"|What to search for. Code search is not offered because GitHub requires a login for it.|
|`language`|string|-|Adds 'language:<value>' to the query, for example 'Python', 'TypeScript' or 'C++'.|
|`sortBy`|string|"best-match"|'Best match' is GitHub's default ranking.|
|`order`|string|"desc"|Direction of the sort.|
|`perPage`|integer|-|Page size of each GitHub API request (1-100).|
|`fetchDetails`|boolean|true|Repositories: README text and structure (headings, links, images), commit, release and tag counts…|
|`detailLimit`|integer|0|Only the first N returned records get the detail requests; the rest keep their search data and…|
|`apiDetails`|boolean|true|Also use GitHub's anonymous REST API for the repository languages breakdown, the latest release and…|
|`ownerDetails`|boolean|true|Read the public profile page github.com/<login> (cached per login): for repositories it is added as…|
|`readmeMaxChars`|integer|20000|Repositories only: a README longer than this many characters is cut and 'readmeTruncated' is set.|

#### 📝 GitHub Search Scraper Input Examples

These are valid inputs for GitHub Search Scraper. Copy one into the JSON editor of the input form, or send it through the API.

#### 🧪 Example 1: Minimal input

The smallest useful input: your GitHub keywords and a result limit. Every other option keeps its default.

```json
{
  "queries": ["web scraping"],
  "maxItems": 20
}
```

#### 🧪 Example 2: Typical input with the documented defaults

Every option that has a documented default, shown with that default value so you can see the full shape of the input.

```json
{
  "queries": ["web scraping"],
  "maxItems": 20,
  "searchType": "repositories",
  "sortBy": "best-match",
  "order": "desc",
  "fetchDetails": true,
  "detailLimit": 0,
  "apiDetails": true,
  "ownerDetails": true,
  "readmeMaxChars": 20000
}
```

#### 🧪 Example 3: Search Type set to "users"

Changes `searchType` and keeps the other defaults.

```json
{
  "queries": ["web scraping"],
  "maxItems": 20,
  "searchType": "users",
  "sortBy": "best-match",
  "order": "desc",
  "fetchDetails": true,
  "detailLimit": 0,
  "apiDetails": true,
  "ownerDetails": true,
  "readmeMaxChars": 20000
}
```

#### 🧪 Example 4: Search Type set to "issues"

Changes `searchType` and keeps the other defaults.

```json
{
  "queries": ["web scraping"],
  "maxItems": 20,
  "searchType": "issues",
  "sortBy": "best-match",
  "order": "desc",
  "fetchDetails": true,
  "detailLimit": 0,
  "apiDetails": true,
  "ownerDetails": true,
  "readmeMaxChars": 20000
}
```

### 📤 GitHub Search Scraper Output

GitHub Search Scraper stores one record per developer-ecosystem record in the default dataset of the run. The table shows the most common of the 175 documented source fields.

#### 📋 GitHub Search Scraper Output Fields

|Field|Type|Description|
|---|---|---|
|`type`|string|Kind of result, set by the search type you chose: `repository`, `user`…|
|`id`|integer|Numeric GitHub ID of the repository, user, issue or pull request.|
|`fullName`|string|Repository name in the form owner/name.|
|`name`|string|Repository name without the owner, topic name, or, on user results, the display…|
|`url`|string|Link to the result on GitHub: the repository, user profile, issue or pull…|
|`description`|string|Description of the repository or topic, with whitespace tidied.|
|`stars`|integer|Number of stars the repository has.|
|`forks`|integer|Number of forks of the repository.|
|`watchers`|integer|Watcher count from the GitHub search data, which GitHub keeps equal to the star…|
|`subscribersCount`|integer|Number of people watching the repository, read from the repository page.|
|`openIssues`|integer|Number of open issues and pull requests of the repository, as GitHub counts…|
|`commitCount`|integer|Number of commits shown on the repository page.|

#### 🧬 GitHub Search Scraper Sample Output

This record comes from a real run of GitHub Search Scraper. Long texts and lists are shortened, only common fields are shown, and contact details, personal names, usernames and profile links are hidden.

```json
{
  "type": "repository",
  "id": 529502,
  "fullName": "[name hidden]",
  "name": "scrapy",
  "url": "https://github.com/[name hidden]",
  "description": "Scrapy, a fast high-level web crawling & scraping framework for Python.",
  "stars": 65408,
  "forks": 12143,
  "watchers": 65408,
  "openIssues": 172,
  "sizeKb": 34065,
  "defaultBranch": "master",
  "commitCount": 11769,
  "subscribersCount": 1744
}
```

**Sample record 2**

```json
{
  "type": "repository",
  "id": 40621231,
  "fullName": "[name hidden]",
  "name": "awesome-web-scraping",
  "url": "https://github.com/[name hidden]",
  "description": "List of libraries, tools and APIs for web scraping and data processing.",
  "stars": 8230,
  "forks": 976,
  "watchers": 8230,
  "openIssues": 6,
  "sizeKb": 567,
  "defaultBranch": "master",
  "commitCount": 670,
  "subscribersCount": 221
}
```

#### 🔬 GitHub Search Scraper Field Details

Each field below is described with its type, how often it appears in the sample and example values.

- **`type`** (string, present in 40 of 40 sample records): Kind of result, set by the search type you chose: `repository`, `user`, `issue`, `pullRequest`, `topic` or `commit`. Examples: `"repository"`.
- **`id`** (integer, present in 40 of 40 sample records): Numeric GitHub ID of the repository, user, issue or pull request. Examples: `529502`, `1209343409`.
- **`fullName`** (string, present in 40 of 40 sample records): Repository name in the form owner/name. Examples: `"[name hidden]"`.
- **`visibility`** (string, present in 40 of 40 sample records): Repository visibility as GitHub reports it, normally `public`. Examples: `"public"`.

### 🎯 GitHub Search Scraper Use Cases

People use the Actor when they need repeatable, structured developer ecosystem data from GitHub. Typical applications:

- Find repositories, packages, models, images or posts by keyword
- Compare popularity signals such as stars, downloads or votes
- Track new releases and trending items in an ecosystem
- Build catalogues of tools for internal evaluation
- Collect metadata for dashboards and reports
- Export GitHub results for analysis in notebooks

Every one of these tasks starts from the same GitHub records that GitHub Search Scraper stores in the dataset.

### 💰 GitHub Search Scraper Pricing

The Actor description lists the price of GitHub Search Scraper as **$1.00 per 1,000 results**.
The table shows what that rate means for typical run sizes.

|Results|Cost at the listed rate|
|---|---|
|100|$0.10|
|1,000|$1.00|
|10,000|$10.00|
|100,000|$100.00|

- Check the **Pricing** tab on the Actor page for the current terms; your Apify plan and platform usage may also apply.
- Test with a small `maxItems` value before a large run.

### 💻 Run GitHub Search Scraper with the Apify API

You can start GitHub Search Scraper from code and read the collected records from the dataset.

#### 🐍 Run the Actor from Python

Replace `ACTOR_ID` with the Actor ID shown on the Actor page and keep your token in an environment variable.

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("ACTOR_ID").call(run_input={'queries': ['web scraping'], 'maxItems': 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### 🔗 Integrations and Automation

GitHub Search Scraper works with schedules, webhooks, the Apify API and many integrations.

#### 🔌 Connect GitHub Search Scraper to Google Sheets

- Open the Integrations tab of the Actor or Task in the Apify Console and add the Google Sheets integration.
- Authorise your Google account and pick the spreadsheet and the worksheet.
- Choose whether each run appends rows or replaces the sheet content.
- Start a run; when it succeeds the rows appear in your spreadsheet automatically.
- Once a run succeeds, the GitHub data is ready to use in Google Sheets.

### 🧭 Example Workflows with GitHub Search Scraper

These workflows show how teams combine the Actor with schedules, storage and analysis tools.

#### 🧭 Weekly monitoring dashboard

1. Create a Task with your GitHub keywords and a fixed `maxItems`.
2. Add a weekly schedule and a webhook on success.
3. Let the webhook append the GitHub dataset to Google Sheets or a database.
4. Chart the 175-field records in Looker Studio, Power BI or Tableau.
5. Review the RUN_SUMMARY record whenever a number looks unusual.

### 🛠️ Tips and Best Practices

Follow these tips to get clean data from GitHub Search Scraper faster:

- Start every new search with a small `maxItems` value so you can check the output and the cost before a big run.
- Change one input option at a time and compare the datasets; this makes it clear which option produced which effect.
- Save good inputs as Apify Tasks and give them descriptive names such as the keyword and the market.
- Use a schedule for monitoring jobs, and keep each run small so that matching results arrive quickly.
- Treat every field except the identifiers as optional in your downstream code.
- Keep the raw JSON of important runs; it is the most complete representation of each record.
- Review `searchType` (Search Type) before large runs: What to search for. Code search is not offered because GitHub requires a login for it.
- Review `language` (Programming Language) before large runs: Adds 'language:<value>' to the query, for example 'Python', 'TypeScript' or 'C++'.

### 🗂️ Apify Platform Topics for GitHub Search Scraper

These notes cover Apify features that you meet while running GitHub Search Scraper.

#### 📌 Running GitHub Search Scraper from the Console

- Open the Actor page and review the Input tab; every field is documented there.
- Press Start to launch a run; the status changes from Ready to Running to Succeeded.
- Watch the log tab for progress, warnings and the final summary line.
- Open the Output tab to browse the GitHub dataset in table or JSON view.
- Use Export to download the GitHub results in your preferred format.

### ⚖️ Legal and Responsible Use

The Actor is meant for publicly available information, and you are responsible for how you use the GitHub data. This is general information, not legal advice.

- Read and follow the terms of service and the published crawler rules of the source site before you run large jobs.
- Collect only the developer-ecosystem records and fields you need from GitHub, and use them for a legitimate purpose.
- Treat names, handles and contact details as personal data where privacy laws such as GDPR or CCPA apply.
- Respect copyright and database rights when you republish GitHub content, and honour removal requests.

### ❓ Frequently Asked Questions about GitHub Search Scraper

Answers to common questions about GitHub Search Scraper and about collecting GitHub data.

#### ❓ How do I run GitHub Search Scraper?

Open the Actor page on Apify, fill in the input form, and press Start.
The same run can be started from the Apify API, the Apify CLI, a schedule, or an integration, using the identical JSON input shown in the Input section.
The Actor saves every record to the run's default dataset, where you can preview and download it.

#### ❓ Do I need an Apify account to use GitHub Search Scraper?

Yes. GitHub Search Scraper runs on the Apify platform, so you need an Apify account to start it from the Console or the API.
A free account is enough to try the Actor on a small input; check your plan for the monthly credits it includes.

#### ❓ Can I run GitHub Search Scraper through the API?

Yes. Every Apify Actor can be started with the Apify API or one of the official clients for JavaScript and Python.
The API section of this page shows a copy-paste example that sends the same JSON input as the Console form.

#### ❓ How do I schedule the Actor to run every day or every week?

Save your input as an Apify Task, then add a Schedule with a cron expression to that Task.
Each scheduled run creates a new dataset, so you can compare today's search results with yesterday's.

#### ❓ Which formats can I export the results in?

Apify datasets can be downloaded as JSON, JSONL, CSV, Excel, XML, HTML table and RSS.
Nested lists and objects are kept intact in JSON; for CSV or Excel choose the GitHub fields you need or flatten nested fields in the export options.

#### ❓ How many results can I collect in one run?

The `maxItems` input field controls the limit. Its default is 15, with a minimum of 1 and a maximum of 1000.
The run also stops earlier when GitHub has no more matching results for your input, so you may receive fewer records than requested.

### 🤝 Support

Need help with GitHub Search Scraper or want a new field? Use the **Issues** tab on the Actor page and include the run link and your input.

- contact me by email : alphascraper69@gmail.com

# Actor input Schema

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

One or more GitHub search queries, for example 'web scraping' or 'language:python stars:>1000 topic:scraping'. GitHub search qualifiers (language:, stars:, topic:, user:, org:, is:open, created:>2024-01-01 ...) work inside the query. Every query is searched on its own and gets its own 'Max Items Per Query'.

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

Maximum number of results to extract per query. The Actor keeps loading result pages until this number is reached or GitHub stops serving more. GitHub only exposes the first 1,000 hits of any search, so 1000 is the ceiling. Anonymous search is limited to 10 requests per minute; the Actor waits for the window to reset instead of failing.

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

What to search for. Code search is not offered because GitHub requires a login for it. Details (README, profile, topic page) are only available for repositories, users and topics; issue and commit results already carry every field of the search response.

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

Adds 'language:<value>' to the query, for example 'Python', 'TypeScript' or 'C++'. Works for repositories and issues/pull requests only; ignored for the other search types and when your query already contains 'language:'. For names with spaces (for example Jupyter Notebook) write language:"Jupyter Notebook" into the query itself. Leave empty for any language.

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

'Best match' is GitHub's default ranking. The other values only fit one search type: repositories (stars, forks, updated, help-wanted issues), users (followers, repository count, joined), issues and pull requests (comments, reactions, interactions, created, updated), commits (author date, committer date). Topics are always ranked by best match. A value that does not belong to the chosen search type is not sent (GitHub would silently ignore it): the run logs a warning and the results stay in best-match order.

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

Direction of the sort. Ignored while 'Sort Results By' is 'Best match' (GitHub only applies the direction together with a sort field).

## `perPage` (type: `integer`):

Page size of each GitHub API request (1-100). Leave empty to use 30, or 100 when 'Max Items Per Query' is above 100. Larger pages need fewer requests, which matters because anonymous search is limited to 10 requests per minute.

## `fetchDetails` (type: `boolean`):

Enrich repositories, users and topics (issue and commit results have no extra detail route). Repositories: README text and structure (headings, links, images), commit, release and tag counts, watchers, license, sponsor/citation flags, latest commit sha, top-level files and community files from the repository page. Users and organizations: pinned repositories, achievements, organisations, counts, top languages and topics from the public profile page. Topics: the number of public repositories and related topics. About one request per record, paced at 1 s. Turn off for a faster run with search data only.

## `detailLimit` (type: `integer`):

Only the first N returned records get the detail requests; the rest keep their search data and 'detailStatus' says 'skipped: detailLimit=N'. Use 0 to enrich every returned record. Used only while 'Fetch Details' is on.

## `apiDetails` (type: `boolean`):

Also use GitHub's anonymous REST API for the repository languages breakdown, the latest release and fork parent/source, and for exact user profile fields (name, company, blog, location, bio, counts, created date; e-mail is never copied). Anonymous access allows only 60 requests per hour: a reserve is always kept, the Actor never waits for it and, once it is used up, records keep their page-derived fields ('apiDetailsStatus' says so). Used only while 'Fetch Details' is on.

## `ownerDetails` (type: `boolean`):

Read the public profile page github.com/<login> (cached per login): for repositories it is added as 'ownerProfile' (display name, bio, company, followers, pinned repositories, achievements, organisations, top languages); for user results it supplies the profile-page fields. Turn off to skip these page requests for both. Stops by itself after 2 consecutive refusals. Used only while 'Fetch Details' is on.

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

Repositories only: a README longer than this many characters is cut and 'readmeTruncated' is set. 0 keeps the whole README. Used only while 'Fetch Details' is on.

## Actor input object example

```json
{
  "queries": [
    "web scraping"
  ],
  "maxItems": 15,
  "searchType": "repositories",
  "sortBy": "best-match",
  "order": "desc",
  "fetchDetails": true,
  "detailLimit": 0,
  "apiDetails": true,
  "ownerDetails": true,
  "readmeMaxChars": 20000
}
```

# Actor output Schema

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

Structured records extracted by GitHub Search Scraper and stored in the run's default dataset.

# 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"
    ],
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("alpha-scraper/github-search-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 = {
    "queries": ["web scraping"],
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("alpha-scraper/github-search-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 '{
  "queries": [
    "web scraping"
  ],
  "maxItems": 15
}' |
apify call alpha-scraper/github-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alpha-scraper/github-search-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/RLpz5Ux43WTvkhARo/builds/dIpEO86wQh2BBpqjH/openapi.json
