New AI Search endpoints with unified response structure! See our February changelog for details.
{
"prompt": "What are the latest trends in AI?",
"fields": {
"citations": ["url", "title", "description", "icon", "domain"],
"sources": ["url", "title", "snippet", "rank", "datePublished"],
"paragraphs": {
"text": true,
"citations": ["url", "title", "description", "icon", "domain"]
}
},
"cache": {
"enabled": true,
"ttl": 7200
}
}
{
"status": true,
"data": {
"text": "The latest trends in AI include advancements in large language models, multimodal AI systems, and AI agents...",
"markdown": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"model": "grok-2",
"sources": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"snippet": "A comprehensive overview of the latest AI trends and developments in 2026.",
"rank": 1,
"datePublished": "2026-02-01T00:00:00.000Z"
}
// ... rest
],
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview of the latest AI trends and developments.",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com",
"cited": true
}
// ... rest
],
"paragraphs": [
{
"text": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview...",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com"
}
]
}
// ... rest
]
},
"cached": false,
"cacheExpiresIn": null
}
{
"prompt": "What are the latest trends in AI?",
"fields": {
"citations": ["url", "title", "description", "icon", "domain"],
"sources": ["url", "title", "snippet", "rank", "datePublished"],
"paragraphs": {
"text": true,
"citations": ["url", "title", "description", "icon", "domain"]
}
},
"cache": {
"enabled": true,
"ttl": 7200
}
}
{
"status": true,
"data": {
"text": "The latest trends in AI include advancements in large language models, multimodal AI systems, and AI agents...",
"markdown": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"model": "grok-2",
"sources": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"snippet": "A comprehensive overview of the latest AI trends and developments in 2026.",
"rank": 1,
"datePublished": "2026-02-01T00:00:00.000Z"
}
// ... rest
],
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview of the latest AI trends and developments.",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com",
"cited": true
}
// ... rest
],
"paragraphs": [
{
"text": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview...",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com"
}
]
}
// ... rest
]
},
"cached": false,
"cacheExpiresIn": null
}
AiSearchEntityGrok is an AI assistant developed by xAI, designed to provide real-time information and insights. This endpoint allows you to query Grok and receive structured responses with citations and sources.
Show child attributes
["url", "title", "description", "icon", "domain"]).["url", "title", "snippet", "rank", "datePublished"]).cache object.Show child attributes
true.120 seconds. Setting a longer TTL can improve performance for repeated requests with the same input, but may result in slightly outdated responses if the underlying data changes frequently.| Minimum TTL | Maximum TTL | Default TTL |
|---|---|---|
| 120 seconds | 86400 seconds | 7200 seconds |
Hide child attributes
Hide child attributes
Hide child attributes
{
"prompt": "What are the latest trends in AI?",
"fields": {
"citations": ["url", "title", "description", "icon", "domain"],
"sources": ["url", "title", "snippet", "rank", "datePublished"],
"paragraphs": {
"text": true,
"citations": ["url", "title", "description", "icon", "domain"]
}
},
"cache": {
"enabled": true,
"ttl": 7200
}
}
{
"status": true,
"data": {
"text": "The latest trends in AI include advancements in large language models, multimodal AI systems, and AI agents...",
"markdown": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"model": "grok-2",
"sources": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"snippet": "A comprehensive overview of the latest AI trends and developments in 2026.",
"rank": 1,
"datePublished": "2026-02-01T00:00:00.000Z"
}
// ... rest
],
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview of the latest AI trends and developments.",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com",
"cited": true
}
// ... rest
],
"paragraphs": [
{
"text": "The latest trends in AI include advancements in **large language models**, **multimodal AI systems**, and **AI agents**...",
"citations": [
{
"url": "https://example.com/ai-trends",
"title": "AI Trends 2026",
"description": "A comprehensive overview...",
"icon": "https://www.google.com/s2/favicons?domain=example.com&sz=32",
"domain": "example.com"
}
]
}
// ... rest
]
},
"cached": false,
"cacheExpiresIn": null
}
Was this page helpful?