ChatGPT Scraper
Extract shared ChatGPT conversations, prompts, and AI-generated content from public links. Built on spider-browser .
- target
- chatgpt.com
- success rate
- 99.9%
- latency
- ~4ms
Extract data in minutes.
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://chatgpt.com/share/e/67b3a642-d014-8012-b8f1-0e2c14b221ae");
await page.content(12000);
const data = await page.evaluate(`(() => {
const turns = [];
document.querySelectorAll('[data-testid^="conversation-turn"]').forEach(article => {
const role = article.querySelector("[data-message-author-role]")
?.getAttribute("data-message-author-role");
const content = article.querySelector(".markdown")?.innerHTML
|| article.querySelector(".whitespace-pre-wrap")?.textContent;
if (role && content) turns.push({ role, content: content.trim().slice(0, 500) });
});
return JSON.stringify({ title: document.title, turns });
})()`);
console.log(JSON.parse(data));
await spider.close(); Fields you can pull.
React SPA handling
Full browser rendering for streaming content and dynamic React UI.
Structured parsing
Extract code blocks, documentation, repository data, and metadata.
Load completion
Smart network idle detection waits for dynamically loaded content to finish.
More AI & Developer scrapers.
Hugging Face Scraper
Extract ML model cards, dataset info, leaderboard data, and paper metadata from Hugging Face.
GitHub Scraper
Extract trending repositories, star counts, contributor data, and code snippets from GitHub.
Stack Overflow Scraper
Extract questions, answers, vote counts, and tag data from Stack Overflow.
Start scraping chatgpt.com.
Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.