# GitHub Issues Scraper - Search Issues and Pull Requests (`turboextract/github-issues-search`) Actor

GitHub issues and pull requests by keyword, repository, label, language, state and date: title, body, state, labels, author, comments, reactions, repository and links. Finds good first issues, bounties, bug reports and feature requests. Uses the official GitHub API.

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

## Pricing

$3.00 / 1,000 issue delivereds

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/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 Issues Scraper: Search Issues and Pull Requests

**Export GitHub issues and pull requests by keyword, repository, label, language, state and date.** Each row has the title, body, labels, author, comment and reaction counts, repository and links. Find good first issues, bounties, bug reports and feature requests across all of GitHub. Uses the official GitHub API.

In one test, a search for "web scraping" found 14,240 open issues, and the actor returned the 30 newest in seconds.

***

### Who this is for

- **Developer tool companies** finding people with the problem their product solves
- **Open-source maintainers** tracking issues across many repos
- **Developers** looking for good first issues or paid bounties
- **Product teams** mining feature requests and bug reports for competitors
- **Recruiters** finding active contributors in a language

***

### What you get

```json
{
  "type": "issue",
  "number": 28,
  "title": "Resolve real recipe approvals and prove candidate coverage",
  "url": "https://github.com/owner/repo/issues/28",
  "repository": "owner/repo",
  "state": "open",
  "labels": [],
  "author": "username",
  "authorAssociation": "OWNER",
  "comments": 0,
  "reactions": 0,
  "body": "...",
  "createdAt": "2026-11-20T18:45:52Z",
  "query": "web scraping"
}
```

***

### How it works

```mermaid
flowchart LR
    A[Keywords] --> D[Official GitHub search API]
    B[Repos, labels, languages] --> D
    C[Type, state, date] --> D
    D --> E[Newest first, up to 1,000 per search]
    E --> F[Issue and PR rows]
```

***

### Quick start

1. Click **Try for free**.
2. Add **Search queries**, or **Repositories**, **Labels** or **Languages** on their own.
3. Pick **Issues**, **Pull requests** or both, and **Open** or **Closed**.
4. Optional: **Created within (days)** and a **GitHub token** for faster searches.
5. Click **Start**, then export to CSV, JSON or Google Sheets.

#### API

```bash
curl -X POST "https://api.apify.com/v2/acts/Turboextract~github-issues-search/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"labels": ["good first issue"], "languages": ["python"], "postedWithinDays": 7}'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("Turboextract/github-issues-search").call(run_input={
    "searchQueries": ["rate limit"],
    "repositories": ["apify/crawlee"],
    "state": "all",
})
for i in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(i["repository"], i["number"], i["title"])
```

***

### Input

| Field | Default | What it does |
|---|---|---|
| `searchQueries` | – | Keywords or GitHub search syntax |
| `repositories` | – | `owner/repo` or GitHub URLs |
| `labels` | – | Any of these labels |
| `languages` | – | Repo languages |
| `type` | issue | Issues, pull requests or both |
| `state` | open | Open, closed or all |
| `postedWithinDays` | 0 (all) | Created in the last N days |
| `includeBody` | true | Issue text, up to 5,000 characters |
| `githubToken` | – | Optional, 3x faster searches |
| `maxResultsPerQuery` | 100 | Up to 1,000 |
| `maxResults` | 500 | Total cap per run |

***

### Pricing

**$0.003 per issue or pull request delivered.** 1,000 issues cost $3.

| Option | 1,000 issues |
|---|---|
| **GitHub Issues Scraper** | **$3**, search across all of GitHub |
| Other GitHub issue actors on Apify | $5 to $40 |
| Developer intent data tools | $500+ a month |

***

### Use cases

- **Lead generation**: issues mentioning a problem your tool fixes, like "rate limit" or "captcha"
- **Competitor research**: open feature requests in a competitor's repo
- **Contributor outreach**: good first issues in your language
- **Bounty hunting**: issues labeled bounty or help wanted
- **Release tracking**: closed issues and merged PRs in your dependencies

***

### Tips

- Without a token, GitHub allows about 10 searches a minute, so the actor paces itself. A free token with no scopes makes it 3x faster.
- GitHub returns up to 1,000 results per search. Split big searches by date or label.
- Any GitHub search syntax works in queries, like `"memory leak" in:title`.
- Dedupe on `url` across scheduled runs.

***

### Pairs well with

- [GitHub Trending Repos](https://apify.com/Turboextract/github-trending-repos): the fastest-growing repos today
- [Hacker News Scraper](https://apify.com/Turboextract/hacker-news-search): developer discussion about the same tools
- [YC Jobs Scraper](https://apify.com/Turboextract/yc-startup-jobs): startups hiring engineers

***

### FAQ

**Do I need a GitHub token?** No. It is optional and only makes searches faster.

**Does it read private repos?** No. Only public issues and pull requests.

**Does it get comments on each issue?** It returns the comment count. The issue body is included by default.

**How far back does it go?** All of GitHub's history, up to 1,000 results per search.

**Is it legal?** It uses GitHub's official public API.

***

### Support

- Docs and examples: https://github.com/andersonjames38phd-cpu/github-issues-search
- Community Discord: https://discord.gg/8SrXSCpvgj

Built and maintained by [Turboextract](https://apify.com/Turboextract) on the Apify platform.

# Actor input Schema

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

Keywords, or any GitHub search syntax like "rate limit" in:title.

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

Only these repos, like apify/crawlee or a GitHub URL.

## `labels` (type: `array`):

Only issues with one of these labels, like good first issue or bug.

## `languages` (type: `array`):

Only repos in these languages, like python or typescript.

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

Issues, pull requests or both.

## `state` (type: `string`):

Open, closed or both.

## `postedWithinDays` (type: `integer`):

Only issues created in the last N days. 0 means no limit.

## `includeBody` (type: `boolean`):

Adds the issue text, cut at 5,000 characters.

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

A personal access token raises the GitHub search limit from 10 to 30 pages a minute. No scopes needed.

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

GitHub returns up to 1,000 per search.

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

Stop after this many issues in total. You only pay for what is delivered.

## Actor input object example

```json
{
  "searchQueries": [
    "web scraping"
  ],
  "type": "issue",
  "state": "open",
  "postedWithinDays": 0,
  "includeBody": true,
  "maxResultsPerQuery": 100,
  "maxResults": 500
}
```

# Actor output Schema

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

One row per issue or pull request with labels, author, comments and repository.

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

// Run the Actor and wait for it to finish
const run = await client.actor("turboextract/github-issues-search").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 = { "searchQueries": ["web scraping"] }

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

```

## MCP server setup

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

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/6ghwyihC2VXZUGSNj/builds/DPG5OPSAoPxSlIqGV/openapi.json
