Get exactly what users see in ChatGPT — including sources, citations, query fan-out, and follow-up queries — returned as clean, structured JSON.
curl "https://api.scrapellm.com/scrapers/chatgpt" \ -H "X-API-Key: your_api_key" \ -G \ --data-urlencode "prompt=What brands do marketers recommend?" \ --data-urlencode "country=US" // Response { "scraper": "chatgpt", "status": "done", "result": "Marketers commonly recommend...", "links": [ { "url": "...", "text": "..." } ], "credits_used": 3 }
Built for developers and data teams who need reliable, structured output at any volume.
Captures exactly what a user sees in the ChatGPT interface, not a stripped-down API response.
Full list of web sources ChatGPT references, with URLs and anchor text.
Extracts the internal search queries ChatGPT issues behind the scenes.
Response returned in both markdown and plain text so you can use it anywhere.
Request from any country to get region-specific ChatGPT responses.
Submit requests asynchronously and poll or use webhooks to retrieve results.
One GET request. Structured JSON back. Works in any language.
import requests response = requests.get( "https://api.scrapellm.com/scrapers/chatgpt", headers={"X-API-Key": "your_api_key"}, params={ "prompt": "What brands do marketers recommend?", "country": "US", } ) print(response.json())
const params = new URLSearchParams({ prompt: 'What brands do marketers recommend?', country: 'US', }); const response = await fetch( `https://api.scrapellm.com/scrapers/chatgpt?${params}`, { headers: { 'X-API-Key': 'your_api_key' } } ); const data = await response.json(); console.log(data);
curl "https://api.scrapellm.com/scrapers/chatgpt" \ -H "X-API-Key: your_api_key" \ -G \ --data-urlencode "prompt=What brands do marketers recommend?" \ --data-urlencode "country=US"
| Field | Type | Description |
|---|---|---|
| result | string | Plain text response from ChatGPT |
| result_markdown | string | Markdown-formatted response |
| links | array | List of cited sources with URL and anchor text |
| search_queries | array | Internal queries ChatGPT used (query fan-out) |
| llm_model | string | Model used (e.g. gpt-4o) |
| credits_used | integer | Credits consumed by this request |
| elapsed_ms | float | Request duration in milliseconds |
Teams across marketing, SEO, research, and product use ScrapeLLM to get structured ChatGPT data at the scale that matters.
Access all major AI and search providers through a single, consistent API.
500 free credits. No credit card. Structured JSON in minutes.