FBref Scraper
Extract detailed football (soccer) statistics, player performance data, and league tables from FBref.
curl -X POST https://api.spider.cloud/scrape \
-H "Content-Type: application/json" \
-d '{"url": "https://fbref.com", "return_format": "markdown"}'Returns fbref.com as markdown, live. Get a key →
We have not stored a capture of fbref.com, so there is nothing real to show here yet. Run the call above and you get the live page back as markdown.
The same call, in code.
The keyless call above returns markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on fbref.com.
import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://fbref.com/en/comps/9/stats/Premier-League-Stats");
// No selectors, no schema. Spider reads the page and names the fields.
const data = await page.scrape();
console.log(data);
await spider.close(); import { SpiderBrowser } from "spider-browser";
const spider = new SpiderBrowser({
apiKey: process.env.SPIDER_API_KEY!,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://fbref.com/en/comps/9/stats/Premier-League-Stats");
await page.content();
const data = await page.evaluate(`(() => {
const players = [];
document.querySelectorAll("#stats_standard tbody tr:not(.thead)").forEach(el => {
const name = el.querySelector("td[data-stat='player'] a")?.textContent?.trim();
const team = el.querySelector("td[data-stat='team'] a")?.textContent?.trim();
const goals = el.querySelector("td[data-stat='goals']")?.textContent?.trim();
const assists = el.querySelector("td[data-stat='assists']")?.textContent?.trim();
const xg = el.querySelector("td[data-stat='xg']")?.textContent?.trim();
const minutes = el.querySelector("td[data-stat='minutes']")?.textContent?.trim();
if (name) players.push({ name, team, goals, assists, xg, minutes });
});
return JSON.stringify({ total: players.length, players: players.slice(0, 15) });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
What fbref.com costs to scrape.
Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so most pages land at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
More Sports & Fitness scrapers.
ESPN Scraper
Extract live scores, game schedules, standings, and sports news from ESPN across all major leagues.
NBA.com Scraper
Extract NBA game scores, player stats, team standings, and league news from the official NBA site.
NFL.com Scraper
Extract NFL game scores, team schedules, player stats, and league news from the official NFL site.
Start scraping fbref.com.
You already have the call. A key raises the rate limit and turns on browser rendering, proxies, and concurrency. Balance never expires, and top-ups go through secure checkout.