HowLongToBeat Scraper
Spider read howlongtobeat.com in 167 ms without a browser and returned 170 lines of clean markdown, including sections like "Portal 2", "Halo: Campaign Evolved" and "Beast of Reincarnation".
## Portal 2## Halo: Campaign Evolved# Latest on## Beast of Reincarnation## Corsair Cove## Mistfall Hunter### [Check Out The Full List›](https://howlongtobeat.com/xbox)# How Game Cards WorkCheck the category that best matches your play style, this is our best estimate for how long it will take you to complete the game. You can also click on the games individually to really break down the stats.You complete the main objectives, just enough to see the credits roll.* **Main Story and Additional Quests/Medals/Unlockables**You take your time, discover and complete additional tasks not required.You strive for every achievement, every medal and conquer all that the game has to offer.All play styles considered during estimation.# Sample CardUse the accuracy guide so you know what times to trust.## Accuracy Guide## Create an Account to Manage Your Games### Manage various lists and make those purchases worth it.#### Backlog & ReplayManage the games you haven't quite beat yet or replay your favorites.#### Custom ListsMake your own list. Create a wishlist, keep track of the games you own or anything else you can think of.#### CompletedMark the games you've completed and help build HowLongToBeat's accuracy.#### RetiredJust can't seem to get through a game? No problem. Come back to it when you're ready.## In-Depth### Overviews of your completions, reviews & more.Filter, export & manage your playthrough data with an easy to use interface. The same call, in code.
The capture above came back as markdown. These examples add a key, so you get browser rendering, proxies, and concurrency on howlongtobeat.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://howlongtobeat.com/game/68151");
// 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!,
stealth: 2,
});
await spider.connect();
const page = spider.page!;
await page.goto("https://howlongtobeat.com/game/68151");
await page.content(8000);
const data = await page.evaluate(`(() => {
const title = document.querySelector("h1")?.textContent?.trim();
const timePattern = /main|complete|\d+.*hour/i;
const times = [];
document.querySelectorAll("h4, h5, li").forEach(el => {
const text = el.textContent?.trim();
if (text && timePattern.test(text)) {
const label = el.querySelector("h4, h5")?.textContent?.trim() || text.split(/\d/)[0].trim();
const match = text.match(/[\d½]+\s*hours?/i);
if (match) times.push({ label, value: match[0] });
}
});
const summary = document.querySelector("p")?.textContent?.trim();
return JSON.stringify({ title, times, summary });
})()`);
console.log(JSON.parse(data));
await spider.close(); Ready for volume? Get an API key →
Fields you can pull.
Spider names these from the page. The capture above came back as markdown; the same
call with return_format: "json" returns them as keys.
What howlongtobeat.com costs to scrape.
The capture above cost $0.000079 to fetch. Pricing is $1 per GB of pre-transformation bandwidth plus $0.001 per CPU minute, so a page like this one lands at a fraction of a cent. Failed requests are billed at $0.
- Free balance on signup
- No card required to test
- Balance never expires
Run it keyless, no account
More Gaming & Esports scrapers.
Steam Scraper
Extract game listings, pricing, reviews, tags, and player counts from the Steam store and community pages.
Epic Games Store Scraper
Extract game listings, pricing, free game promotions, and metadata from the Epic Games Store.
GOG Scraper
Extract DRM-free game listings, pricing, compatibility info, and user ratings from the GOG store.
Start scraping howlongtobeat.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.