Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • cloro runs real browser sessions against each AI engine, so calls take longer than a normal API; use the async endpoints for volume.
  • Credits per call: ChatGPT 5, Gemini 4, Perplexity 4, AI Mode 4, Bing AI Mode 4, Google Search 3, Google News 3, product panel 1; sync /v1/monitor/* calls add +2 on top, async calls do not. Read X-Credits-Charged on a sync answer for the exact charge.
  • Answers are wrapped as {success, result}; result holds the text, sources and provider-specific blocks.
  • Country is required on most endpoints and there is no default. List supported codes with cloro.meta.countries.

Endpoints

Ask ChatGPT

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 5 credits base, +2 once for any of rawResponse, searchQueries, ads or shopping, +1 per extra prompt, plus the +2 sync surcharge.

Ask Gemini

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 4 credits, +2 for state targeting, plus the +2 sync surcharge.

Ask Perplexity

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 4 credits, +2 for state targeting, plus the +2 sync surcharge.

Ask Google AI Mode

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 4 credits plus the +2 sync surcharge.

Ask Bing AI Mode

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 4 credits, +2 for state targeting, plus the +2 sync surcharge.
  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 3 credits base, +2 once for AI Overview, +2 per extra page, plus the +2 sync surcharge. Send country or gl, or a url that has gl; there is no default country.
  • Do not pass tbm; use the Google News endpoint.

Google News results

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 3 credits, +2 per extra page, plus the +2 sync surcharge.

Google shopping product panel

  • A read over POST: cloro runs a real browser session against the AI engine and returns the answer; nothing on your account changes except credits.
  • Costs 1 credit, only on success.

Create an async task

  • Starts a billed job: it only produces data and changes nothing else in your account.
  • Poll cloro.async.get_task with the returned id.
  • No +2 sync surcharge on async requests, so each is 2 credits cheaper than the sync call.

Get an async task

  • The finished task reports creditsCharged.

Get credit balance

  • The balance is cached and can lag by up to 60 seconds.

List supported countries