grok-search

Search the web and X/Twitter via the xAI Responses API.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/dexhunter/Logi-Lobsterism --skill grok-search-dexhunter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grok-search
Source: https://github.com/dexhunter/Logi-Lobsterism/tree/main/skills/grok-search
Command: npx skills add https://github.com/dexhunter/Logi-Lobsterism --skill grok-search-dexhunter

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a powerful and versatile 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 as an alternative to traditional search engines, returning results in a machine-readable JSON format.
  • X/Twitter Search: Specifically search for tweets, threads, and users on X, with advanced filtering options like date ranges and specific handles.
  • Structured Output: Get results in a clean JSON format, ideal for programmatic use, along with verifiable citations.
  • Use Case: Find all tweets mentioning "AI ethics" from the last week, posted by accounts like @OpenAI or @GoogleAI, and get a list of the URLs for those tweets.

Quick Start

Use the grok-search skill to find tweets about 'AI advancements' from the last 7 days.

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 tweets using Grok AI?

To search X or Twitter using Grok AI, you can use a skill that queries the xAI Responses API. It retrieves tweets, threads, and user data with advanced filtering like date ranges and specific handles, returning structured JSON results.

What is the best way to get structured JSON output with citations from a web search?

Getting structured JSON output with citations from a web search is possible by utilizing Grok's server-side web search tools via the xAI Responses API. This approach returns machine-readable results ideal for programmatic use and verifiable data retrieval.

Do I need an XAI_API_KEY to use Grok for web and Twitter searches?

Yes, you need an XAI_API_KEY environment variable for authentication to use Grok for web and Twitter searches. The execution utilizes Node.js scripts to interact with the xAI Responses API, requiring this key to access server-side tools.

Can I filter tweets by specific handles and date ranges using the xAI API?

Yes, you can filter tweets by specific handles and date ranges using the xAI API. The Grok search functionality supports advanced filtering options, allowing you to find mentions from specific accounts within defined timeframes.

Does Grok web search return results suitable for programmatic data processing?

Yes, Grok web search returns results suitable for programmatic data processing by providing a clean JSON format. This structured output, complete with verifiable citations, is specifically designed for reliable machine-readable data retrieval.

Are there limitations to using Grok as an alternative to traditional web search engines?

Using Grok as an alternative to traditional web search engines requires a valid XAI_API_KEY and a Node.js environment for execution. It is designed for structured JSON retrieval with citations rather than casual browsing, which may limit unformatted exploratory queries.