cloro WebsiteAPI Get an API key
API Reference › Grok › Extract Grok

Extract Grok

Capture a structured snapshot of a Grok answer, complete with the live web sources it cited and the rich per-source metadata that Grok exposes.

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

Overview

This endpoint returns Grok's reply to a prompt as a parsed object rather than a raw stream. Because Grok's standard interface always consults the web, every request is grounded in real-time results, and the payload carries an unusually detailed source list. Alongside each citation you get preview snippets, publisher and author details, favicons, and image URLs, which makes the response well suited to monitoring how a brand or topic surfaces in Grok answers.

You can scope a request to a specific market with the country parameter and control which optional representations (HTML, Markdown, raw events) are attached through the include object.

Request parameters

This endpoint accepts the shared request parameters used across the AI Mode endpoints. The Grok-specific option is listed below.

FieldTypeDescription
promptstringThe question or instruction to send to Grok.
countrystringTwo-letter country code used to localize the search context (for example, US).
include.markdownbooleanWhen true, adds a Markdown rendering of the answer. Defaults to false.
include.htmlbooleanWhen true, adds an HTML rendering of the answer. Defaults to false.
include.rawResponsebooleanWhen true, returns the underlying streamed response events emitted by Grok. Defaults to false.

Response schema

The envelope includes the common response fields plus the Grok result object below.

FieldTypeDescription
result.textstringThe plain-text body of Grok's answer.
result.htmlstringHTML rendering of the answer, present only when include.html is true.
result.markdownstringMarkdown rendering of the answer, present only when include.markdown is true.
result.sourcesarrayThe web sources Grok drew on, each enriched with preview text, publisher, author, image, and favicon fields.
result.searchQueriesstring[]The search queries Grok issued while researching the prompt.
result.modelstringIdentifier of the model that produced the answer (for example, grok-4-auto).
result.rawResponsearrayThe streamed response events from Grok, present only when include.rawResponse is true.

Source object fields

FieldTypeDescription
positionnumberOrdinal rank of the source within the citation list.
urlstringCanonical link to the cited page.
labelstringShort display label for the source.
descriptionstringBrief summary of the linked page.
previewstringExcerpt of the source content shown as a preview.
searchEngineTextstringTitle text as it appeared in search results.
siteNamestringName of the publishing site.
metadataTitlestringTitle drawn from the page's metadata.
creatorstringAuthor or byline associated with the page.
imagestringURL of a representative image for the source.
faviconstringURL of the site's favicon.

Response example

{
  "success": true,
  "result": {
    "text": "Drawing on live web results, here are strong laptop picks for programming...",
    "html": "https://storage.cloro.cloud/results/c45a5081-808d-4ed3-9c86-e4baf16c8ab8/page-1.html",
    "sources": [
      {
        "position": 1,
        "url": "https://techcrunch.com/programming-laptops",
        "label": "TechCrunch",
        "description": "Best laptops for coding and development",
        "preview": "For a programming laptop, weigh RAM, CPU, and thermals before anything else...",
        "searchEngineText": "Top Development Laptops 2025",
        "siteName": "TechCrunch",
        "metadataTitle": "Ultimate Guide to Programming Laptops",
        "creator": "Tech Team",
        "image": "https://techcrunch.com/preview.jpg",
        "favicon": "https://techcrunch.com/favicon.ico"
      }
    ],
    "searchQueries": [
      "best laptops for programming 2026",
      "top developer laptops 2026"
    ],
    "model": "grok-4-auto",
    "markdown": "Drawing on live web results, here are strong laptop picks for programming..."
  }
}

Notes

Grok performs a web search on every request, so responses always reflect current information and carry source citations; there is no option to disable grounding. If you need the underlying event stream for debugging or replay, set include.rawResponse to true. For access questions, reach out to [email protected].