Apify Store
AS
Apify Store
/api-ninja/x-twitter-advanced-search

X (Twitter) Advanced Search Scraper 𝕏

Advanced X (Twitter) post search with 50+ filters: content, users, geo, time, engagement, media. Dual modes: simple queries or structured filters. Enterprise-grade reliability for precise data extract

liveasyncunknown~30s typical
social mediaautomationintegrationstwitteradvancedsearch
$0.019
per result + $0.005 call
plus $0.001 platform fee per run
Actor charges $0.015 per result; Cracked adds 25% plus a $0.005 call fee
Bring your own Apify Store key: provider portion drops to $0.
$Set up https://cracked-ai-pearl.vercel.app/SKILL.md, then use Cracked to run apify /api-ninja/x-twitter-advanced-search for me.

Input

FieldTypeDescription
querystringEnter your search terms here for quick and easy X (Twitter) searches. Supports X (Twitter)'s powerful search operators for precise results. You can use this simple search OR configure advanced filters below - at least one must be provided.
search_typestring (Latest | Top | Media | People | Lists)Choose your search strategy: 'Latest' for real-time results, 'Top' for popular tweets, 'Media' for tweets with images/videos, or 'People' for user accounts. default "Latest"
numberOfTweetsintegerSpecify how many tweets you want to collect (minimum 20, no maximum limit). Our intelligent system automatically handles multiple requests to ensure you get exactly the number you need. default 100
scrapeAllbooleanWhen enabled, scrapes all available tweets from your input query, ignoring the 'Number of Tweets' limit. This may significantly increase scraping time and resource usage. default false
engagementLevelstring (none | low | medium | high | viral)Smart presets for common engagement scenarios. Choose a preset for instant setup or customize with specific values below for precise control. default "none"
engagementMinRetweetsintegerMinimum number of retweets (shares). Leave empty for no minimum.
engagementMaxRetweetsintegerMaximum number of retweets (shares). Leave empty for no maximum.
engagementMinLikesintegerMinimum number of likes (hearts). Leave empty for no minimum.
engagementMaxLikesintegerMaximum number of likes (hearts). Leave empty for no maximum.
engagementMinRepliesintegerMinimum number of replies (comments). Leave empty for no minimum.
engagementMaxRepliesintegerMaximum number of replies (comments). Leave empty for no maximum.
engagementHasEngagementbooleanOnly include tweets that have at least some engagement (likes, retweets, or replies)
mediaTypesarrayFilter tweets by content type. Choose from images, videos, or any media attachments.
mediaHasLinksbooleanMust contain links
mediaHasMentionsbooleanMust contain mentions
mediaHasHashtagsbooleanMust contain hashtags
mediaNewsOnlybooleanOnly tweets with news links
mediaSafeContentOnlybooleanExclude potentially sensitive content
usersBlueVerifiedOnlybooleanOnly tweets from blue verified users
usersVerifiedOnlybooleanOnly tweets from verified users
usersFromUsersarrayTweets from specific users (without @)
usersToUsersarrayReplies to specific users (without @)
usersMentionUsersarrayTweets mentioning specific users (without @)
usersExcludeFromUsersarrayExclude tweets from specific users (without @)
usersListMembersarrayTweets from members of specific lists (list ID or username/listname)
contentLanguagestring (en | es | fr | de | it | pt)Filter tweets by language. Uses automatic language detection for accurate results.
contentEmoticonsstring (positive | negative)Filter tweets based on emotional tone detected from emojis and emoticons.t
contentKeywordsarrayKeywords to search for in tweet content
contentExactPhrasesarrayExact phrases to search for (use quotes)
contentExcludeKeywordsarrayKeywords to exclude from results
contentHashtagsarrayHashtags to include (without #)
contentExcludeHashtagsarrayHashtags to exclude (without #)
contentCashtagsarrayStock symbols to include (without $)
contentQuestionMarksbooleanInclude tweets with question marks
tweetTypesarrayTypes of tweets to include
tweetTypesExcludearrayTypes of tweets to exclude
tweetConversationIdstringTweets that are part of a specific conversation/thread
tweetQuotedTweetIdstringTweets that quote a specific tweet
tweetQuotedUserIdstringTweets that quote a specific user (numeric user ID)
tweetPollTypesarrayTweets containing polls

Call it

curl
curl https://cracked-ai-pearl.vercel.app/v1/run \
  -H "Authorization: Bearer ck_live_..." -H "content-type: application/json" \
  -d '{"provider":"apify","endpoint":"/api-ninja/x-twitter-advanced-search","input":{"query":"Tweet or treat?..."},"wait":false}'
poll
curl "https://cracked-ai-pearl.vercel.app/v1/runs/<runId>?wait=30" -H "Authorization: Bearer ck_live_..."
cli
npx cracked-ai run -p apify -e /api-ninja/x-twitter-advanced-search -i '{"query":"Tweet or treat?..."}' -w 120
mcp
run_tool({ provider: "apify", endpoint: "/api-ninja/x-twitter-advanced-search", input: {"query":"Tweet or treat?..."}, wait: false })

Try it

Runs against your signed-in workspace balance. Sign in if you have not.