cloro WebsiteAPI Get an API key
API Reference › AI Mode › Extract ChatGPT

Extract ChatGPT

Send a prompt to ChatGPT and receive back the assistant's answer along with the structured elements that surround it — cited sources, shopping cards, inline products, recognized entities, map results, citation pills, and sponsored placements.

POST https://api.cloro.cloud/v1/monitor/chatgpt

Overview

This endpoint runs a single prompt against ChatGPT in a chosen region and returns a normalized view of everything the model surfaced. Beyond the plain answer text, cloro parses out the auxiliary blocks ChatGPT renders — the reference list, product showcases, entity mentions, local map entries, and any ads — so you can track how a brand or topic is represented across AI answers. Optional flags let you opt into heavier payloads such as raw streaming events, rendered HTML, or the internal search queries the model issued.

Request parameters

FieldTypeDescription
promptstring (required)The question or instruction to send to ChatGPT. Must be between 1 and 10000 characters.
countrystring (required)Two-letter region code (for example US) used to localize the response.
includeobjectToggles for extra response payloads. Each key defaults to false.
include.htmlbooleanWhen true, returns a hosted URL to the rendered HTML of the answer.
include.markdownbooleanWhen true, includes the answer as Markdown text.
include.rawResponsebooleanWhen true, includes the raw streaming event objects emitted by the model.
include.searchQueriesbooleanWhen true, includes the web search queries ChatGPT ran to answer the prompt.
include.adsbooleanWhen true, includes any sponsored placements shown alongside the answer.
include.shoppingbooleanWhen true, includes shopping cards and inline product blocks.

Response fields

FieldTypeDescription
successbooleanIndicates whether the request completed successfully.
resultobjectContainer for the parsed ChatGPT response.
result.textstringThe assistant's answer as plain text.
result.sourcesarrayReference list backing the answer. Each item carries position, url, label, description, footnote, and an optional datePublished.
result.htmlstringHosted URL to the rendered HTML page. Present only when requested.
result.markdownstringMarkdown rendition of the answer. Present only when requested.
result.rawResponsearrayRaw streaming event objects. Present only when requested.
result.searchQueriesarraySearch queries the model issued. Present only when requested.
result.modelstringIdentifier of the model that produced the answer.
result.shoppingCardsarrayGrouped product showcases with tags, product details, offers, and ratings.
result.inlineProductsarrayIndividual products rendered inline within the answer.
result.entitiesarrayRecognized entities, each with a type and name.
result.maparrayLocal map entries with names, addresses, coordinates, and ratings.
result.citationPillsarrayCompact citation chips linking to referenced content.
result.adsarraySponsored placements grouped by brand.

Response example

{
  "success": true,
  "result": {
    "text": "Acme Corp is a diversified manufacturer best known as a running gag in classic animated shorts, though several real companies also use the name.",
    "sources": [
      {
        "position": 1,
        "url": "https://example.com/acme-overview?utm_source=chatgpt.com",
        "label": "Acme Corp: Company Overview",
        "description": "A summary of Acme Corp's history, products, and market presence.",
        "footnote": false,
        "datePublished": "March 4, 2025"
      },
      {
        "position": 2,
        "url": "https://example.com/acme-history?utm_source=chatgpt.com",
        "label": "The History of Acme",
        "description": "How the Acme name became a cultural reference point.",
        "footnote": true
      }
    ],
    "model": "gpt-5",
    "entities": [
      { "type": "organization", "name": "Acme Corporation" }
    ],
    "citationPills": [
      {
        "url": "https://example.com/acme-overview",
        "label": "Acme Corp: Company Overview",
        "description": "A summary of Acme Corp's history and products.",
        "domain": "example.com",
        "datePublished": "2025-03-04",
        "citationPillId": 0,
        "type": "searchResult",
        "position": 1
      }
    ]
  }
}

Notes