Skip to main content

Quickstart

This guide will help you make your first successful API call to the ChatGPT Scraper API.
1

Get your API key

Sign up at cloro.dev to get your API key. You’ll need this to authenticate your requests.
2

Install required packages

Depending on your programming language, install the necessary HTTP client:
3

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.
4

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 response
  • result.text: The complete ChatGPT response as plain text
  • result.markdown: The response formatted in Markdown (when include.markdown is true)
  • result.shoppingCards: Array of product cards extracted from the response (if available)
  • result.searchQueries: Query fan-out ChatGPT used internally (when include.searchQueries is true)
  • result.rawResponse: Array of ChatGPT’s streamed response events (when include.rawResponse is true)

Request parameters

Here are the main parameters you can use: * Mandatory parameters
Additional features have extra costs:
  • include.rawResponse: +2 credits per request
  • include.searchQueries: +2 credits per request
The base request with Web Search uses 5 credits.

Next steps

Now that you’ve made your first successful API call, explore more features: