NEW AI Studio is now available Try it now
Gaming & Esports

OP.GG Scraper

Extract League of Legends player stats, champion data, match history, and tier rankings from OP.GG. Powered by spider-browser .

Get Started Documentation
op.gg target
99.5% success rate
~4ms latency
Quick Start

Extract data in minutes

opgg-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.op.gg/summoners/na/Doublelift-1lol");
await page.content(8000);

const data = await page.evaluate(`(() => {
  const name = document.querySelector(".profile-name h1")?.textContent?.trim();
  const rank = document.querySelector(".tier")?.textContent?.trim();
  const lp = document.querySelector(".lp")?.textContent?.trim();
  const winRate = document.querySelector(".win-lose")?.textContent?.trim();
  const champions = [];
  document.querySelectorAll(".champion-box").forEach(el => {
    const champ = el.querySelector(".champion-name")?.textContent?.trim();
    const wr = el.querySelector(".win-ratio")?.textContent?.trim();
    const kda = el.querySelector(".kda")?.textContent?.trim();
    if (champ) champions.push({ champ, wr, kda });
  });
  return JSON.stringify({ name, rank, lp, winRate, champions: champions.slice(0, 5) });
})()`);

console.log(JSON.parse(data));
await spider.close();
✓ ready to run | spider-browser | TypeScript
Fetch API

Structured data endpoint

Extract structured JSON from op.gg with a single POST request. AI-configured selectors, cached for fast repeat calls.

POST /fetch/op.gg/
Summoner nameRankWin rateTop championsRecent matchesLP
curl
curl -X POST https://api.spider.cloud/fetch/op.gg/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
Python
import requests

resp = requests.post(
    "https://api.spider.cloud/fetch/op.gg/",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={"return_format": "json"},
)
print(resp.json())
Node.js
const resp = await fetch("https://api.spider.cloud/fetch/op.gg/", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ return_format: "json" }),
});
const data = await resp.json();
console.log(data);
Extraction

Data you can extract

Summoner nameRankWin rateTop championsRecent matchesLPLevelKDA
Data

Game metadata

Extract prices, reviews, system requirements, and ratings from op.gg.

Rendering

Store page handling

Handle dynamic storefronts, interactive catalogs, and lazy-loaded content.

Scale

Catalog coverage

Process entire game libraries and mod repositories at scale.

Related

More Gaming & Esports scrapers

Start scraping op.gg

Get your API key and start extracting data in minutes.