Quickstart
This guide will help you make your first successful API call to the ChatGPT Scraper API.Get your API key
Sign up at cloro.dev to get your API key. You’ll need this to authenticate your requests.
Install required packages
Depending on your programming language, install the necessary HTTP client:
Make your first request
Use the following code to send your first prompt to ChatGPT:Replace
YOUR_API_KEY with your actual API key from cloro.dev.Set an appropriate timeout (120-180 seconds) when making requests, as ChatGPT responses may take time to generate depending on complexity.
Understand the response
The API returns a structured JSON object with ChatGPT’s response and metadata:Key fields in the response:
status: Request status (e.g., “success”)result.model: The ChatGPT model used to generate the responseresult.text: The complete ChatGPT response as plain textresult.markdown: The response formatted in Markdown (wheninclude.markdownis true)result.shoppingCards: Array of product cards extracted from the response (if available)result.searchQueries: Query fan-out ChatGPT used internally (wheninclude.searchQueriesis true)result.rawResponse: Array of ChatGPT’s streamed response events (wheninclude.rawResponseis true)
Request parameters
Here are the main parameters you can use:| Parameter | Description | Default value |
|---|---|---|
prompt* | The prompt or question to send to ChatGPT (1-10,000 characters) | – |
country | Optional country/region code for localized monitoring (e.g., US, GB, DE) | – |
include.markdown | Include response in Markdown format when set to true | false |
include.rawResponse | Include raw streaming response events for debugging (+2 credits) | false |
include.searchQueries | Include query fan-out ChatGPT used to generate response (+2 credits) | false |
Next steps
Now that you’ve made your first successful API call, explore more features:- Learn about shopping cards for automatic product data extraction
- Review the complete API reference for detailed parameter documentation
- Explore use cases to see how others are using the ChatGPT Scraper API
- Understand the response structure for advanced data parsing