grok-search

Search the web or X/Twitter via the xAI Responses API with JSON citations.

37|12|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/exiao/skills --skill grok-search-exiao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grok-search
Source: https://github.com/exiao/skills/tree/main/grok-search
Command: npx skills add https://github.com/exiao/skills --skill grok-search-exiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a powerful and flexible way to search the web and X (formerly Twitter) using xAI's Grok, offering structured JSON output with citations for reliable data retrieval.

Core Features & Use Cases

  • Web Search: Utilize Grok's web search capabilities for general research.
  • X/Twitter Search: Find tweets, threads, and user information directly from X.
  • Structured Output: Receive results in a clean JSON format, ideal for programmatic use.
  • Citations: Get verifiable links to the sources of information.
  • Use Case: Quickly find recent tweets about a specific product launch or gather all mentions of your brand on X within the last week.

Quick Start

Use the grok-search skill to find tweets about the latest AI advancements.

Frequently Asked Questions about grok-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search X or Twitter for specific tweets using an API?

You can search X or Twitter by utilizing the xAI Grok server-side tools via the xAI Responses API, which supports retrieving tweets, threads, and user data. This requires setting the XAI_API_KEY environment variable to authenticate the x_search operation.

Can I get structured JSON output with citations from a web search?

Yes, structured JSON output with citations is supported for both web_search and x_search operations. The xAI Grok API returns verifiable source links alongside the retrieved web information or X data in a clean format ideal for programmatic use.

Do I need an XAI_API_KEY to use Grok for web search?

Yes, an XAI_API_KEY environment variable is required to authenticate requests to the xAI Responses API. This key enables server-side access to Grok's web_search and x_search capabilities for retrieving general web information or X data.

What is the best way to find recent brand mentions on X within the last week?

The best way to find recent brand mentions is using the x_search operation through the xAI Responses API, which queries X directly for tweets, threads, and user information. It returns structured JSON output with citations for reliable data retrieval.

Can I use Grok web search as an alternative to Brave search?

Yes, Grok web search serves as an alternative to Brave search by utilizing the xAI Responses API for general web research. It provides structured JSON output with citations, making it suitable for programmatic data retrieval and research workflows.