# GitHub Pull Requests Scraper — Public PR Activity \[$1.20/1K] (`zinin/github-pull-requests-scraper`) Actor

Export current public pull request state, dates and comment counts for named GitHub repositories through the official API. $1.20 per 1,000 PR rows, no start fee.

- **URL**: https://apify.com/zinin/github-pull-requests-scraper.md
- **Developed by:** [Tim Zinin](https://apify.com/zinin) (community)
- **Categories:** Developer tools
- **Features:** Limited permissions
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.84 / 1,000 public pull requests

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 Pull Requests Scraper — public PR activity

**$1.20 per 1,000 delivered pull request rows, no start fee.** The prefilled run checks public pull requests in `nodejs/node` through GitHub's official REST API. Empty selections and API errors produce free status rows.

The Actor serves a bounded PR activity watchlist for named repositories. It is distinct from release tracking: a release has a tag and publication time, while a PR has a number, open/closed/merged state and update time. Public Store comparison on 12 November 2026: `fetch_cat/github-issues-pull-requests-scraper` listed $0.029/1K plus a $0.005 start fee and 23 users in 30 days; `gio21/github-issues-pull-requests-scraper` listed $2.00/1K with no listed start event and one user in 30 days. The midpoint of those two paid result prices is about $1.01/1K. This Actor's $1.20/1K is slightly above that midpoint with no start fee. These are published prices and usage counts, not a live quality comparison or proof of paying users.

### What you get

One row per public pull request: repository, PR number, open or closed state, draft and merged flags, creation/update/close/merge times, issue and review comment counts when available, a direct PR link, and retrieval time. Author profiles, emails, user-written titles and bodies, branch names and comment text are excluded. The Actor does not fetch private repositories or arbitrary web pages.

Use it to watch PR throughput, newly merged work, and outstanding public requests in up to five named repositories. Without a buyer-supplied token, GitHub's public API limits the shared IP to **60 requests per hour**. This Actor makes at most **five GitHub requests per run**, one first-page PR-list request per repository, and does not retry a rate-limit response. The optional secret input accepts **your own GitHub token** for your rate-limit bucket; the publisher's GitHub key is never supplied. See [GitHub's PR endpoint](https://docs.github.com/en/rest/pulls/pulls#list-pull-requests), [rate limits](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api), and [API terms](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).

This is **not for** private PRs, full PR text, review history, code diffs, individual comments, or complete historical backfills. `updatedSince` filters within the newest 30 PRs per repository returned by the first page; it does not paginate older history. Closed and merged requests are both `state: closed`, distinguished by `merged: true`. This Actor is an independent tool and is not affiliated with GitHub.

### Input

The one-click prefill uses:

```json
{
  "repositories": ["nodejs/node"],
  "state": "all",
  "updatedSince": "",
  "includeDrafts": false,
  "perRepository": 20,
  "maxItems": 20
}
```

- `repositories`: 1–5 public `owner/repository` names. Duplicates are removed.
- `state`: `open`, `closed`, or `all`.
- `updatedSince`: optional UTC date `YYYY-MM-DD`, inclusive.
- `includeDrafts`: include draft PRs; false by default.
- `perRepository`: 1–30 most recently updated PRs checked in one request.
- `maxItems`: 1–100 maximum paid PR rows across repositories.
- `githubToken`: optional token from **your** GitHub account. Apify encrypts the secret input; the Actor sends it only as an Authorization header to `api.github.com`. Never put it in a repository name or shared task. Leave it empty for keyless public access.

### Output

```json
{
  "found": true,
  "repository": "nodejs/node",
  "number": 12345,
  "state": "closed",
  "draft": false,
  "merged": true,
  "createdAt": "2026-11-10T10:00:00Z",
  "updatedAt": "2026-11-11T10:00:00Z",
  "closedAt": "2026-11-11T10:00:00Z",
  "mergedAt": "2026-11-11T10:00:00Z",
  "issueCommentCount": 2,
  "reviewCommentCount": 3,
  "pullRequestUrl": "https://github.com/nodejs/node/pull/12345",
  "source": "GitHub REST API",
  "retrievedAt": "2026-11-12T00:00:00Z"
}
```

This example shows the row shape; the numbers and dates are illustrative. On an empty selection, unknown repository, or API error, the dataset receives a free `found:false` row with `repository`, `error`, `sourceUrl`, and `retrievedAt`. Charges occur only for valid PR rows. The Actor stops before the next paid row when the buyer's charge limit is exhausted.

### Price and limits

The paid event is `result-found` at $0.0012 per PR on the Free plan. There is no start charge and no paid default-dataset event. Subscription tiers: Bronze $1.08/1K, Silver $0.96/1K, Gold, Platinum and Diamond $0.84/1K. At 100 rows, the Free-plan result charge is $0.12. **50,000 rows would be $60 in result charges only**, but this Actor limits one run to 100 rows and GitHub's unauthenticated shared-IP limit applies; 50,000 rows is a price comparison, not a one-run capacity claim. Apify platform usage is separate if the buyer's plan charges it.

### For AI agents and workflow tools

The Actor uses limited permissions and declares input, dataset and output schemas. An MCP client can connect to `https://mcp.apify.com` and select `zinin/github-pull-requests-scraper`; use a small `maxItems` for an interactive agent. The hosted MCP server exposes Actor search and run tools. Apify authentication and payment are configured in the client's Apify connection.

```json
{
  "mcpServers": {
    "apify": { "url": "https://mcp.apify.com?tools=zinin/github-pull-requests-scraper" }
  }
}
```

In n8n, Make or Zapier, run the Actor, wait for completion, then fetch default-dataset items. Use `repository` plus `number` as the stable deduplication key and `updatedAt` for change detection; route `found:false` rows to an error or retry branch. See [Apify's MCP guide](https://docs.apify.com/mcp) and [integration guides](https://docs.apify.com/integrations).

### You might also like

- [GitHub Releases Scraper](https://apify.com/zinin/github-releases-scraper) — track published release tags.
- [App Release Regression Intelligence](https://apify.com/zinin/app-release-regression-intelligence) — compare app release signals.
- [Hacker News Stories and Comments Scraper](https://apify.com/zinin/hacker-news-stories-comments-scraper) — follow public tech discussion.
- [Company Hiring Radar](https://apify.com/zinin/company-hiring-radar) — watch hiring changes.

### What's new — 12 November 2026

First version: official GitHub PR-list API, bounded one-page results, personal fields excluded, output schema, and result-only billing.

# Actor input Schema

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

One to five public owner/repository names. Without your own GitHub token, this Actor makes at most five API requests per run and shares GitHub's 60 requests/hour/IP limit.

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

Open, closed, or all pull requests. A merged request is closed with merged=true.

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

Keep pull requests updated on or after this UTC date (YYYY-MM-DD), within the newest first page only.

## `includeDrafts` (type: `boolean`):

Include draft pull requests in results.

## `perRepository` (type: `integer`):

Read up to 30 most recently updated pull requests per repository in one API request. Older history is outside this Actor's scope.

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

Maximum valid pull request rows delivered and charged across all repositories.

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

Optional token from your GitHub account for a higher GitHub API rate limit. Stored as encrypted Actor input; never added to URLs, logs or Dataset rows. Leave empty for public keyless access.

## Actor input object example

```json
{
  "repositories": [
    "nodejs/node"
  ],
  "state": "all",
  "updatedSince": "",
  "includeDrafts": false,
  "perRepository": 20,
  "maxItems": 20
}
```

# Actor output Schema

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

API URL of the run's default dataset items.

# 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 = {
    "repositories": [
        "nodejs/node"
    ],
    "state": "all",
    "updatedSince": "",
    "includeDrafts": false,
    "perRepository": 20,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinin/github-pull-requests-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 = {
    "repositories": ["nodejs/node"],
    "state": "all",
    "updatedSince": "",
    "includeDrafts": False,
    "perRepository": 20,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("zinin/github-pull-requests-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 '{
  "repositories": [
    "nodejs/node"
  ],
  "state": "all",
  "updatedSince": "",
  "includeDrafts": false,
  "perRepository": 20,
  "maxItems": 20
}' |
apify call zinin/github-pull-requests-scraper --silent --output-dataset

```

## MCP server setup

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