askill
twitter-search-skill

twitter-search-skillSafety 95Repository

Search for recent tweets on Twitter/X using keywords, hashtags, mentions, and advanced query operators.

18 stars
1.2k downloads
Updated 3/12/2026

Package Files

Loading files...
SKILL.md

Twitter Search Tool

Search for recent tweets on Twitter/X.

How It Works

This skill provides instructions for the Twitter Search tool node. Connect the Twitter Search node to an AI Agent's input-tools handle to enable tweet searching.

twitter_search Tool

Search for tweets matching a query.

Schema Fields

FieldTypeRequiredDescription
querystringYesSearch query (supports operators)
max_resultsintegerNoNumber of results (10-100, default: 10)

Query Operators

The X API supports advanced search operators:

OperatorExampleDescription
keywordpythonTweets containing the word
phrase"machine learning"Exact phrase match
hashtag#AITweets with hashtag
mention@usernameTweets mentioning user
fromfrom:elonmuskTweets by specific user
toto:usernameReplies to user
-keyword-spamExclude keyword
ORpython OR javascriptEither term
langlang:enLanguage filter
has:linksAI has:linksTweets with URLs
has:mediasunset has:mediaTweets with media
is:retweetbitcoin is:retweetOnly retweets
-is:retweetnews -is:retweetExclude retweets

Examples

Simple keyword search:

{
  "query": "artificial intelligence",
  "max_results": 20
}

Search with hashtag:

{
  "query": "#MachineLearning",
  "max_results": 50
}

Search tweets from a user:

{
  "query": "from:OpenAI",
  "max_results": 10
}

Complex query:

{
  "query": "AI (startup OR company) -is:retweet lang:en",
  "max_results": 100
}

Search with media:

{
  "query": "sunset has:media",
  "max_results": 25
}

Response Format

{
  "success": true,
  "result": {
    "tweets": [
      {
        "id": "1234567890123456789",
        "text": "Exciting developments in AI...",
        "author_id": "987654321",
        "created_at": "2025-02-19T10:30:00Z"
      }
    ],
    "count": 20,
    "query": "#AI"
  },
  "execution_time": 0.82
}

Error Response

{
  "success": false,
  "error": "Search query is required",
  "execution_time": 0.01
}

Guidelines

  1. Query length: Keep queries concise for better results
  2. Max results: Limited to 100 per request (API constraint)
  3. Recent tweets only: X API v2 free tier searches recent tweets (last 7 days)
  4. Rate limits: Be mindful of API rate limits when searching repeatedly
  5. Combine operators: Use multiple operators for precise filtering

Common Use Cases

  • Monitor brand mentions
  • Track trending topics
  • Find tweets about specific subjects
  • Research competitor activity
  • Gather content for curation
  • Find influencers discussing topics

Setup Requirements

  1. Connect the Twitter Search node to an AI Agent's input-tools handle
  2. Ensure Twitter is connected (authenticated via OAuth in Credentials Modal)
  3. Your X Developer account must have appropriate API access level

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

87/100Analyzed 2/23/2026

Well-structured skill documentation for Twitter/X search tool with comprehensive coverage of query operators, examples, and setup instructions. Features clear tables, code examples, and practical use cases. Bonus for having icon, tags, and dedicated skills folder structure. Slight internal_only signal due to MachinaOS platform context but the core functionality is general-purpose.

95
90
75
85
90

Metadata

Licenseunknown
Version-
Updated3/12/2026
Publishertrohitg

Tags

apillm