360 Secure SkillHub
360 安全技能中心

X Search

通过 scripts/search.sh 调用 npx 的 x402 付费 CLI,在 X/Twitter 上执行 AI 搜索,可获取实时趋势、突发新闻、话题标签、病毒式内容与公众情绪;每次请求需支付 0.05 USDC,钱包私钥由环境变量或本地配置文件提供。

分类:搜索
jaaneek
jaaneek
热度 80.91
最近更新 2026-09-17 05:35:54

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jaaneek/x-search
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
x-search
description
AI-powered X/Twitter search for real-time trends, breaking news, sentiment analysis, and social media insights. Use when users want to search Twitter/X for topics, hashtags, viral content, or public opinion. Costs $0.05 USDC per request via x402 protocol on Base network.

X Search

Search X/Twitter using an AI-powered agent for real-time insights and social media intelligence.

Configuration

The private key must be available via one of these methods:

Option 1: Environment variable

export X402_PRIVATE_KEY="0x..."

Option 2: Config file (Recommended)

The script checks for x402-config.json in these locations (in order):

  1. Current directory: ./x402-config.json
  2. Home directory: ~/.x402-config.json ← Recommended
  3. Working directory: $PWD/x402-config.json

Create the config file:

{
  "private_key": "0x1234567890abcdef..."
}

Example (home directory - works for any user):

echo '{"private_key": "0x..."}' > ~/.x402-config.json

Usage

Run the search script with a query:

scripts/search.sh "<search query>"

The script:

  • Executes the npx CLI tool with payment handling
  • Costs $0.05 USDC per request (Base network)
  • Returns AI-processed search results

Examples

User: "What are people saying about AI agents on Twitter?"

scripts/search.sh "AI agents discussions and opinions"

User: "Find trending topics about cryptocurrency"

scripts/search.sh "cryptocurrency trends today"

User: "Show me viral content about climate change"

scripts/search.sh "viral climate change posts"

Capabilities

  • Real-time trends and breaking news
  • Social media sentiment analysis
  • Viral content tracking
  • Public opinion research
  • Hashtag and topic analysis

Error Handling

  • "Payment failed: Not enough USDC" → Inform user to top up Base wallet with USDC
  • "X402 private key missing" → Guide user to configure private key (see Configuration above)
  • Timeout errors → The API has a 5-minute timeout; complex queries may take time