Dedicated ScrapersChatGPT Scraper API
ChatGPT logoDedicated ChatGPT API

ChatGPT Scraper API — Ask ChatGPT, Get JSON with Citations

Send a prompt to the real chatgpt.com — not the OpenAI API — and get the answer back as structured JSON, including every web source it cited and where in the answer that source is used. Anonymous: no OpenAI account, no OpenAI API key.

3Endpoints
20-25s ungrounded, 30-70s with web searchLive answer latency
OffsetsCitations anchored in text
From $3.00Per 1K ask requests

No credit card required · PAYG credits never expire

Ask ChatGPT
# Ask the real chatgpt.com and read the sources
import scrapebadger

client = scrapebadger.ScrapeBadger("sb_live_...")

answer = client.chatgpt.ask(
    prompt="Best web scraping APIs in 2026?",
    web_search="force"
)
200 OK24.1s · 20 credits
{
  "answer": "Several APIs stand out in 2026...",
  "web_search_triggered": true,
  "citation_count": 7,
  "citations": [{
    "url": "https://example.com/scraping-apis",
    "title": "Web Scraping APIs Compared",
    "domain": "example.com",
    "start_index": 128, "end_index": 214,
    "matched_text": "APIs that handle anti-bot..."
  }],
  "source_domains": ["example.com", "..."],
  "model": "gpt-5-5",
  "latency_ms": 24118
}
API Reference

ChatGPT API — 3 Dedicated Endpoints

Structured JSON responses with normalized data models. No HTML parsing. No proxy management. No OpenAI account.

GET/POST
/v1/chatgpt/ask
Send a prompt to chatgpt.com and get the answer, citations with text offsets, the full search trail, and whether ChatGPT actually browsed
20 cr / req
GET/POST
/v1/chatgpt/brand-visibility
The answer plus AEO/GEO metrics — mentions, first position, share of voice vs. competitors, citation rank, and the excerpt around the first mention
25 cr / req
GET
/v1/chatgpt/models
The model slugs chatgpt.com currently exposes, with titles, descriptions, max tokens, and tags
1 cr / req
Why ScrapeBadger

More Than an Answer String

Most ChatGPT scrapers hand back text and, at best, a list of URLs. ScrapeBadger returns the evidence behind the answer.

The real chatgpt.com, not the OpenAI API

Answers come from the consumer product with web browsing, so you see what a real user sees — including the sources ChatGPT surfaced. No OpenAI account, no OpenAI API key, no per-token bill.

Citations anchored to the answer text

Every citation carries start_index, end_index, and matched_text — the exact substring of the answer that source supports. No other vendor anchors citations into the text; everyone else hands you a bare URL list.

The full search trail, not just what was cited

search_results returns everything ChatGPT retrieved with a cited flag on each entry, next to citations which returns only what it actually referenced. You can see what it read and rejected.

Did it really browse?

web_search_triggered tells you whether ChatGPT actually ran a web search for this prompt or answered from the model alone. Force it on or off with web_search=force|off when you need determinism.

Brand visibility built in

One call returns mention count, first position, share of voice against named competitors, whether your domain was cited, and its citation rank. AEO/GEO platforms sell this as a $99–989/mo subscription.

Pay per success only

Credits are only deducted for successful responses. Blocked, rate-limited, and upstream errors are never billed. PAYG credits never expire.

Comparison

How It Compares to Other ChatGPT Scrapers

Same job, different depth. Prices are per 1,000 requests as published by each vendor.

VendorPrice / 1KCitationsFull search trailBrand analysis
Bright Data$1.50YesNoNo
Apify chatgpt-search$3.00YesNoNo
DataForSEO LLM Scraper$1.20–4.00YesYesSeparate product
Scrapingdog~30 credits/reqNoNoNo
ScrapingBeeCreditsNoNoNo
ScrapeBadger$3.00Yes + text offsetsYesBundled
Why the extra fields matter: Citation offsets let you show a user exactly which sentence a source backs. The full search trail shows what ChatGPT read but chose not to cite. And brand visibility — sold elsewhere as a $99–989/mo AEO/GEO subscription — comes back from the same API on the same credits.
Pricing

Pay Per Request. Credits Never Expire.

You only pay for successful responses — blocked, rate-limited, and upstream errors are always free. PAYG credits never expire; volume subscription tiers reduce per-credit cost further.

Free trial
1,000 credits free
= 50 ask requests
Credits expire
Never
Buy once, use anytime
Failed requests
Always free
Pay for success only
Live cost estimator
Credits per request20
Total credits needed20,000
Loading plans…
Code Example

Simple Integration. Any Language.

Get started in minutes with Node.js, Python, or plain HTTP requests.

The scrapebadger Node.js library wraps the ChatGPT API with typed methods. Install with npm install scrapebadger, then start asking ChatGPT in a few lines of code.

Node.js — Ask + Brand Visibility
import ScrapeBadger from 'scrapebadger'

const client = new ScrapeBadger({
  apiKey: 'sb_live_...'
})

// Ask the real chatgpt.com (takes 20-25s ungrounded, 30-70s with web search)
const res = await client.chatgpt.ask({
  prompt: 'Best web scraping APIs in 2026?',
  webSearch: 'force',
})

console.log(res.answer)
console.log(res.webSearchTriggered, res.citationCount)

// Which sentence does each source back?
for (const c of res.citations) {
  console.log(c.domain, c.startIndex, c.endIndex)
}

// How visible is your brand in that answer?
const vis = await client.chatgpt.brandVisibility({
  prompt: 'Best web scraping APIs in 2026?',
  brand: 'ScrapeBadger',
  domain: 'scrapebadger.com',
  competitors: ['Bright Data', 'ScrapingBee'],
})

console.log(vis.mentioned, vis.shareOfVoicePct, vis.citationRank)
FAQ

Frequently Asked Questions

Common questions about scraping ChatGPT with the API — Node.js, Python, or REST.

What does the ChatGPT Scraper API return?

The /ask endpoint returns the prompt, the answer as plain text and markdown, citations (url, title, snippet, domain, attribution, published_at, plus start_index/end_index/matched_text pointing into the answer), search_results with the full retrieved set and a cited flag on each, source_domains, search_queries, web_search_triggered, the model slug, conversation and message IDs, country, answer_length, citation_count, latency_ms, and created_at.

Is this the OpenAI API or the real ChatGPT?

The real chatgpt.com. Requests go to the consumer product anonymously — no OpenAI account and no OpenAI API key is involved on either side. That is why answers include the web sources ChatGPT cited, which the OpenAI API does not give you.

How long does a request take?

ChatGPT composes the answer live, so /ask and /brand-visibility measure 20-25s ungrounded, 30-70s with web search end to end. /models returns immediately. Size your client timeouts to at least 60 seconds. For comparison, DataForSEO publishes a 90-second SLA on its live tier.

How do I measure my brand in ChatGPT answers?

Call /brand-visibility with a prompt, your brand name, and optionally your domain, aliases, and competitors. You get back mentioned, mention_count, first_position, position_score (1.0 = named at the very start), share_of_voice_pct against the competitors you named, cited plus cited_urls and citation_rank for your domain, a per-competitor breakdown, and an excerpt of the answer around the first mention — alongside the answer and its citations.

How do I call the ChatGPT Scraper API from Node.js?

Install with `npm install scrapebadger`, initialise the client with your API key, then call client.chatgpt.ask({ prompt: "..." }) or client.chatgpt.brandVisibility({ prompt: "...", brand: "...", competitors: ["..."] }). Both accept an optional country (ISO-3166 alpha-2, default US) and web_search (auto | force | off). Plain HTTP works too — every endpoint accepts GET or POST with the X-API-Key header.

Plans & subscriptions

Bigger volume? Save up to 64%

Per-request credit costs are listed above. For higher monthly volume, subscription tiers reduce the per-credit rate substantially. All ChatGPT endpoints — ask, brand visibility, and models — included on every plan.

Get started

Start Scraping ChatGPT Today

1,000 free credits. No credit card. Get your API key in under a minute.

PAYG credits never expire · Pay only for successful requests · No OpenAI account needed