# League of Legends Stats, Builds & Counters - OP.GG (`pshivam/opgg-league-of-legends-scraper`) Actor

League of Legends champion data from OP.GG: tier list with win, pick and ban rates, best builds and runes, counters and matchups, patch trends. Ranked, ARAM, Arena and URF, every region and rank. No proxy, no login. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/opgg-league-of-legends-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** Games
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 records

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

## League of Legends Stats, Builds & Counters - OP.GG

**Get League of Legends champion data as clean rows**: the **tier list** with win, pick and ban rates for every champion and lane, the **best builds** (items, boots, runes, skill orders, summoner spells), **counters and matchups** with win rates against every opponent, and **win rate by patch**. The data comes from OP.GG. Ranked Solo/Duo, ARAM, Arena and URF, for every region and rank. No proxy, no login. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-12. Every release passes 150+ automated tests, and Apify test-runs it every day.

### What can you use it for?

- **Discord bots, websites and apps.** Fill a tier list, a counter page or a build page with fresh data after every patch.
- **Patch tracking.** Schedule the Actor with **Only new or changed records** and get every champion that moved to another tier, plus the new patch's numbers.
- **Coaching and analysis.** Compare win rate, pick rate and ban rate by lane, rank and region. Find the champions that win most in Master+ and not in Gold.
- **Content and streaming.** Pull the best runes, skill order and core items of any champion for a guide or an overlay.
- **Betting and esports models.** Join patch-by-patch pick and ban rates to your own data.

### What data do you get?

Every row has a `recordType` and only the fields of that type are filled.

| `recordType` | Rows | What it is |
|---|---|---|
| `tier_list` | about 270 for ranked, about 170 for ARAM, Arena or URF | One row per champion and lane: tier, rank, win, pick and ban rate, games, KDA |
| `build` | up to 80 per champion and lane | The most played options of each kind: starter items, boots, core items, late items, summoner spells, runes, skill orders |
| `matchup` | about 50 per champion and lane | Win rate of the champion against each opposing champion in the same lane |
| `trend` | 10 per champion and lane | Win, pick and ban rate and their ranks on each of the last ten patches |

| Field | What it is |
|---|---|
| `recordType`, `sourceUrl`, `scrapedAt` | The record type, the OP.GG data address it came from and when it was collected |
| `patch`, `mode`, `region`, `rankBracket` | The patch, the game mode (`ranked`, `aram`, `arena`, `urf`), the region and the rank the numbers are for (for example `emerald_plus`) |
| `championId`, `championName`, `position` | The champion and the lane (`TOP`, `JUNGLE`, `MID`, `ADC`, `SUPPORT`). ARAM, Arena and URF have no lane |
| `tier`, `rank`, `previousRank` | Tier list: OP.GG's tier from 1 (best) to 5, the rank in the lane and the rank on the previous patch |
| `games`, `wins`, `winRate`, `pickRate`, `banRate`, `roleRate`, `kda` | Games, wins, win rate, pick rate, ban rate, the share of the champion's games in that lane, and KDA |
| `averagePlacement`, `firstPlaceRate` | Arena: the average placement and the share of games finished first |
| `inFreeRotation` | Tier list: whether the champion is in the free weekly rotation |
| `buildType`, `buildRank`, `buildText`, `buildIds` | Builds: the kind, 1 for the most played, the build in words and Riot's IDs |
| `primaryPage`, `secondaryPage`, `primaryRunes`, `secondaryRunes`, `statShards` | Runes: the two rune trees, the runes of each and the three shards |
| `skillOrder` | Skill orders: the skills in the order they are levelled |
| `opponentId`, `opponentName` | Matchups: the opposing champion |
| `winRateRank`, `pickRateRank`, `banRateRank` | Trends: OP.GG's ranks on that patch |

#### Example results

```json
{"recordType": "tier_list", "patch": "16.22", "mode": "ranked", "region": "NA", "rankBracket": "emerald_plus", "championId": 86, "championName": "Garen", "position": "TOP",
 "tier": 1, "rank": 3, "previousRank": 3, "games": 10619, "winRate": 50.62, "pickRate": 7.44, "banRate": 5.52, "roleRate": 90.94, "kda": 1.79}
```

```json
{"recordType": "build", "championName": "Aatrox", "position": "TOP", "buildType": "core_items", "buildRank": 1, "buildText": "Eclipse > Sundered Sky > Death's Dance",
 "buildIds": [6692, 6610, 6333], "games": 502, "wins": 290, "winRate": 57.77, "pickRate": 12.75}
```

```json
{"recordType": "matchup", "championName": "Aatrox", "position": "TOP", "opponentName": "Darius", "games": 274, "wins": 121, "winRate": 44.16}
```

### How to use it

1. Choose **What to get**: the tier list, builds, matchups or trends (one or several).
2. Choose the **Game mode**, **Regions** and **Ranks**, and narrow it with **Champions** and **Lanes**.
3. Press Start. The tier list takes a few seconds. Builds, matchups and trends for every champion take about a minute per region and rank.

#### Input options

| Input | What it does |
|---|---|
| `dataTypes` | `tierList`, `builds`, `matchups`, `trends`. Empty means the tier list |
| `mode` | `ranked`, `aram`, `arena` or `urf`. Builds, matchups and trends exist for ranked games only |
| `regions` | `NA`, `EUW`, `EUNE`, `KR`, `BR`, `LAN`, `LAS`, `OCE`, `TR`, `RU`, `JP`, `SG`, `PH`, `TH`, `TW`, `VN`, `ME` or `global`. One search per region. Empty means NA |
| `tiers` | The rank: `all`, `iron` to `challenger`, or `gold_plus`, `platinum_plus`, `emerald_plus`, `diamond_plus`, `master_plus`. Empty means `emerald_plus` |
| `champions` | Names (`Ahri`, `Kai'Sa`, `Wukong`) or champion IDs |
| `positions` | `top`, `jungle`, `mid`, `adc` or `support` (`bot` and `sup` work too) |
| `patch` | A patch such as `16.21`. OP.GG keeps about the last ten. Empty means the current patch |
| `minGames` | Skip champions, lanes and matchups with fewer games |
| `buildsPerType` | How many of the most played options to return for each kind of build. 3 by default |
| `onlyNew` | Skip records that earlier runs of the same search already returned |
| `maxItems` | Stop after this many records |
| `maxConcurrency` | Champion pages fetched at the same time. 4 by default |
| `secondsBetweenRequests` | Pause between requests to OP.GG. 0.2 seconds by default |

### How much does it cost?

You pay per record returned, nothing else. The ranked tier list of one region and rank is about 270 records, about $0.40 at the Free plan price. Builds with 3 options per kind, matchups and trends for every champion and lane add about 70 records per lane. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 records |
|---|---|
| Free | $1.50 |
| Bronze | $1.35 |
| Silver | $1.20 |
| Gold | $1.05 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/opgg-league-of-legends-scraper").call(run_input={
    "dataTypes": ["tierList"],
    "regions": ["EUW"],
    "tiers": ["master_plus"],
    "positions": ["mid"],
})
for row in sorted(client.dataset(run["defaultDatasetId"]).iterate_items(), key=lambda r: r["rank"]):
    print(row["rank"], row["championName"], row["winRate"], row["pickRate"], row["banRate"])
```

**Track every patch.** Schedule the Actor in the Apify Console (Schedules), for example every day, and turn on **Only new or changed records**. A champion that moves to another tier, or a new patch, makes new records, and only new records are returned and charged. Connect the result to Discord, Slack, Google Sheets, Make, Zapier or n8n with Apify's integrations.

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/opgg-league-of-legends-scraper` and this input:

```json
{"dataTypes": ["tierList", "builds"], "champions": ["Ahri"], "regions": ["NA", "KR"], "onlyNew": true}
```

### This scraper vs. the alternatives

| | This Actor | OP.GG's website | Riot's developer API |
|---|---|---|---|
| Output | Rows for Excel, CSV, JSON, API | Pages | JSON per match |
| Tier list, builds, runes, counters and trends | One run, all four | One page per champion and lane | You compute them from millions of matches |
| Every region and rank in one job | Yes | One at a time | Rate limits and a key to apply for |
| Only new or changed records | Yes | No | No |
| Price | $1.50 per 1,000 records | Free to read | Free, with your own work |

### Good to know

- **Numbers are OP.GG's.** Win rates and tiers are what OP.GG computes from the games it analyses for the region, rank and patch you choose. Small samples are noisy: use `minGames`, for example 100.
- **Matchups are lane matchups.** The win rate is the champion's win rate against that opponent in the same lane.
- **Pick rate of a build.** For builds, `pickRate` is the share of the champion's games in that lane that used the build.
- **Arena wins.** For Arena, `wins` and `winRate` are counted the way OP.GG counts them. `averagePlacement` and `firstPlaceRate` are exact.
- **URF is a limited-time mode.** OP.GG shows the last patch it was played on, and `patch` says which one.
- **Rune IDs and names.** Items, spells and runes come with their names and Riot's IDs, so a new item never breaks a run.
- **Independent tool.** Not affiliated with or endorsed by OP.GG or Riot Games. League of Legends is a trademark of Riot Games.

### FAQ

#### How do I get the League of Legends tier list as data?

Leave What to get on the tier list and press Start. Every champion and lane comes back with tier, rank, win rate, pick rate, ban rate, games and KDA for NA, Emerald and above.

#### How do I get the best build and runes of a champion?

Set `dataTypes` to `builds` and `champions` to the champion, for example `["Ahri"]`. Each row is one option, for example the most played core items or the most played rune page, with its games and win rate.

#### How do I get the counters of a champion?

Set `dataTypes` to `matchups`. Sort the rows by `winRate`, with `minGames` at 100 or more, to see who the champion beats and who beats it.

#### How do I track win rate changes by patch?

Use `trends` for the last ten patches in one run. Or schedule the tier list with `onlyNew` and get the champions whose tier changed.

#### Can I get ARAM, Arena or URF?

Yes. Set `mode` to `aram`, `arena` or `urf`. You get the tier list of that mode, with no lanes.

#### Do I need a proxy or an account?

No. The Actor reads OP.GG's public champion data and needs no proxy, no login and no account.

#### Is it legal to use this data?

The Actor reads publicly available statistics. You are responsible for how you use the results, and OP.GG's terms apply to your use of its content.

# Actor input Schema

## `dataTypes` (type: `array`):

Tier list: tier, rank, win, pick and ban rate of every champion in every lane. Builds: the most played items, boots, runes, skill orders and summoner spells. Matchups: win rate against every opponent. Trends: win, pick and ban rate by patch. Leave empty for the tier list.

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

Ranked Solo/Duo has everything. ARAM, Arena and URF have the tier list only. URF is a limited-time mode: OP.GG shows the last patch it was played.

## `regions` (type: `array`):

One search per region. NA, EUW, EUNE, KR, BR, LAN, LAS, OCE, TR, RU, JP, SG, PH, TH, TW, VN, ME or global (all regions together). Leave empty for NA.

## `tiers` (type: `array`):

One search per rank bracket: all, iron to challenger, or gold+, platinum+, emerald+, diamond+, master+ (that rank and above). Leave empty for emerald+.

## `champions` (type: `array`):

Only these champions: the name (Ahri, Kai'Sa, Wukong) or the champion ID. Leave empty for all.

## `positions` (type: `array`):

Only these lanes: top, jungle, mid, adc or support. Leave empty for all.

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

A patch such as 16.21 for older data. OP.GG keeps about the last ten patches; the answer lists the ones it has. Leave empty for the current patch.

## `minGames` (type: `integer`):

Skip champions and lanes with fewer games, and matchups with fewer games. 100 removes most noise.

## `buildsPerType` (type: `integer`):

How many of the most played options to return for each kind of build: starter items, boots, core items, late items, summoner spells, runes and skill orders.

## `onlyNew` (type: `boolean`):

Skip records that earlier runs of this same search already returned, so you pay only for changes: a champion that moved to another tier, a new patch, a new build. The first run works as usual and remembers what it returned, in your key-value store 'opgg-league-of-legends-scraper-only-new'.

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

Stop after this many records. You are charged per record.

## `maxConcurrency` (type: `integer`):

Champion pages fetched at the same time (builds, matchups and trends).

## `secondsBetweenRequests` (type: `number`):

Pause between requests to OP.GG. After a 'too many requests' answer the Actor doubles the pause for the rest of the run.

## Actor input object example

```json
{
  "dataTypes": [
    "tierList"
  ],
  "mode": "ranked",
  "regions": [
    "NA"
  ],
  "tiers": [
    "emerald_plus"
  ],
  "champions": [],
  "positions": [],
  "minGames": 0,
  "buildsPerType": 3,
  "onlyNew": false,
  "maxItems": 300,
  "maxConcurrency": 4,
  "secondsBetweenRequests": 0.2
}
```

# Actor output Schema

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

Tier, rank, win, pick and ban rate of every champion and lane.

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

The most played items, runes, skill orders and summoner spells.

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

Win rate against every opponent.

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

Win, pick and ban rate by patch.

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

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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 = {
    "dataTypes": [
        "tierList"
    ],
    "regions": [
        "NA"
    ],
    "tiers": [
        "emerald_plus"
    ],
    "champions": [],
    "positions": [],
    "maxItems": 300
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/opgg-league-of-legends-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 = {
    "dataTypes": ["tierList"],
    "regions": ["NA"],
    "tiers": ["emerald_plus"],
    "champions": [],
    "positions": [],
    "maxItems": 300,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/opgg-league-of-legends-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 '{
  "dataTypes": [
    "tierList"
  ],
  "regions": [
    "NA"
  ],
  "tiers": [
    "emerald_plus"
  ],
  "champions": [],
  "positions": [],
  "maxItems": 300
}' |
apify call pshivam/opgg-league-of-legends-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pshivam/opgg-league-of-legends-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/cY03qS1GDPmZC9KLC/builds/cXX1z4ArX7UpTs2oP/openapi.json
