Skip to content
Main Site News Console

Web Search and X Search

Grok’s differentiating capability is real-time retrieval: in addition to regular web search, it can also retrieve posts and discussions in the X(Twitter) ecosystem, giving it unique advantages for trending events and public-opinion-related questions.

How to Call

The usage for web-enabled models is the same as for regular chat (the exact model name is subject to availability):

Terminal window
curl https://api.4allapi.com/v1/chat/completions \
-H "Authorization: Bearer $AIPROXY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"messages": [{"role": "user", "content": "What are the trending AI discussions on X in the past 24 hours?"}]
}'

Use Cases

  • Public opinion monitoring: tracking discussion trends about a brand/event on social media;
  • Trending event tracking: cross-verifying multiple sources for breaking news;
  • Market sentiment: an overview of community sentiment around a topic.

Key Notes

  • Retrieval adds latency and token consumption; use the regular tier for non-real-time questions;
  • Social media information is noisy, so require the model to cite sources for key conclusions and verify them manually;
  • When you need Google-style search, use Gemini Web Search, the source ecosystems differ, so choose according to the topic.