Prerequisites
- A Bright Data account (includes $2 free credit)
- cURL, Python 3, or Node.js 18+ installed
Get your API token
Go to the user settings page in your Bright Data account and copy your API token.If you don’t have an account yet, sign up at brightdata.com. New users get $2 free credit for testing.
Send a request
We’ll use the ChatGPT Search endpoint with a synchronous request. Replace You should see a
YOUR_API_TOKEN with your actual token:200 status code. This takes 15-45 seconds.Review the response
The Bright Data ChatGPT Scraper API returns a JSON array with structured search data:Each result object includes the answer text, citations with source URLs, and metadata. See the full response schema.
Common questions
Can I send multiple prompts in one request?
Can I send multiple prompts in one request?
Yes. Add more objects to the input array. Synchronous requests support up to 20 inputs. For larger batches, use the async
/trigger endpoint.Getting a 401 or 403 error?
Getting a 401 or 403 error?
Verify your API token is correct and hasn’t expired. Generate a new token from Account settings. See the authentication guide for details.
Request is timing out?
Request is timing out?
Synchronous requests have a 1-minute timeout. If the request exceeds this limit, it automatically switches to async and returns a
snapshot_id. Use the async workflow for large batches.Empty or partial response data?
Empty or partial response data?
Verify that the
url field is set to https://chatgpt.com/ and the prompt field is not empty. Prompts must be 4,096 characters or fewer.Next steps
Send your first request
Explore input options with full code examples.
Async batch requests
Search ChatGPT with hundreds of prompts in a single batch job.
Set up webhooks
Receive results automatically when scraping completes.