Skip to main content gottem  — one API for every scraper.
AI & Developer
Verified

ChatGPT Scraper

Extract shared ChatGPT conversations, prompts, and AI-generated content from public links. Built on spider-browser .

Get started Docs
target
chatgpt.com
success rate
99.9%
latency
~4ms
Quick start

Extract data in minutes.

chatgpt-scraper.ts
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();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

Conversation titleUser promptsAI responsesCode blocksModel versionTimestamp
Rendering

React SPA handling

Full browser rendering for streaming content and dynamic React UI.

Content

Structured parsing

Extract code blocks, documentation, repository data, and metadata.

Waiting

Load completion

Smart network idle detection waits for dynamically loaded content to finish.

Related

More AI & Developer scrapers.

Start

Start scraping chatgpt.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.