Skip to main content
This section documents the enhanced source metadata returned by the Grok endpoint. Sources are part of the Grok response — no separate API call is needed.

Example request

{
  "prompt": "latest developments in quantum computing",
  "country": "US"
}
This produces a response containing the sources array with the enhanced metadata documented below.

Overview

Grok provides comprehensive metadata for each source beyond basic link information. Unlike other AI search providers, Grok enriches sources with preview text, creator details, site information, and image URLs for deeper analysis and better source attribution.

Source fields

FieldTypeDescription
positionnumberPosition order of the source in the response
urlstringDirect URL to the source content
labelstringSource name or publication
descriptionstringBrief description of what the source contains
previewstringText snippet preview from the source
searchEngineTextstringSearch engine display text for the source
siteNamestringWebsite name
metadataTitlestringSource page metadata title
creatorstringContent creator or author
imagestringURL to preview image from the source
faviconstringURL to website favicon

Response example

{
  "success": true,
  "result": {
    "text": "Quantum computing has seen rapid progress in 2026...",
    "sources": [
      {
        "position": 1,
        "url": "https://example.com/quantum-2026",
        "label": "Quantum Computing in 2026",
        "description": "An overview of recent breakthroughs in quantum hardware and algorithms.",
        "preview": "Researchers at MIT and IBM announced a 1,000-qubit processor that...",
        "searchEngineText": "Quantum Computing in 2026 - Recent Breakthroughs",
        "siteName": "Example Tech",
        "metadataTitle": "Quantum Computing in 2026 | Example Tech",
        "creator": "Jane Doe",
        "image": "https://example.com/quantum-cover.jpg",
        "favicon": "https://example.com/favicon.ico"
      }
    ]
  }
}