Skip to content
Back to skills

Search Tweets Via Xai Api

ASecurity

Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social media posts about a topic.

  • 37 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill search-tweets-via-xai-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Search Tweets Via Xai Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Search Tweets Via Xai Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-search-tweets-via-xai-api/badge)](https://www.skillsdirectory.com/skills/rondoflow-search-tweets-via-xai-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: search-tweets-via-xai-api
description: "Search X (Twitter) posts using the xAI API. Use when the user wants to find tweets, search X/Twitter, look up what people are saying on X, or find social media posts about a topic."
category: "Communication"
author: community
version: "1.0.0"
icon: message-circle
---

# X Search

Search X (Twitter) posts using the xAI Grok API with real-time access to X content.

## Setup

1. Get your API key: https://console.x.ai
2. Set environment variable:
   ```bash
   export XAI_API_KEY="xai-your-key-here"
   ```
3. Or set `skills."x-search".apiKey` / `skills."x-search".env.XAI_API_KEY` in `~/.openclaw/openclaw.json`

## Usage

```bash
python3 {baseDir}/scripts/search.py "what is trending in AI right now"
```

Useful flags:

```bash
# Filter by handles (max 10)
python3 {baseDir}/scripts/search.py --handles jaaneek,OpenClaw "latest posts"

# Exclude handles (max 10)
python3 {baseDir}/scripts/search.py --exclude spambot,crypto_shill "trending AI"

# Date range (YYYY-MM-DD)
python3 {baseDir}/scripts/search.py --from 2026-03-01 --to 2026-03-20 "xAI grok updates"

# Enable image/video understanding in posts
python3 {baseDir}/scripts/search.py --images --video "product demos"
```

## Notes

- Uses the xAI Responses API with `x_search` tool (Grok performs the search and summarizes results)
- Cannot use `--handles` and `--exclude` at the same time
- Results include citations with links to original X posts
- Present results in a readable format with post content, authors, and citations

Files in this skill

  • SKILL.md1.5 KB
  • manifest.json403 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.