OP.GG Scraper
Extract League of Legends player stats, champion data, match history, and tier rankings from OP.GG. Powered by spider-browser .
Extract data in minutes
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(); Structured data endpoint
Extract structured JSON from op.gg with a single POST request. AI-configured selectors, cached for fast repeat calls.
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"}' 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()) 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); Data you can extract
Game metadata
Extract prices, reviews, system requirements, and ratings from op.gg.
Store page handling
Handle dynamic storefronts, interactive catalogs, and lazy-loaded content.
Catalog coverage
Process entire game libraries and mod repositories at scale.
More Gaming & Esports scrapers
Extract game listings, pricing, reviews, tags, and player counts from the Steam store and community pages.
Extract game listings, pricing, free game promotions, and metadata from the Epic Games Store.
Extract DRM-free game listings, pricing, compatibility info, and user ratings from the GOG store.
Start scraping op.gg
Get your API key and start extracting data in minutes.