{"uid":"cap_pUBfTxyU-DzIcyGSwHOyj","slug":"twitr-sh-x-twitter-search-a98c999f","name":"twitr.sh X/Twitter Search","description":"Search X/Twitter tweets with the full operator set — keyword, exact phrase, from-user, language, date range, media type, minimum likes/retweets, verified-only — or search user profiles by keyword. Billed per tweet returned against your resultsLimit cap. Built for tracking what people say about a topic, brand, or ticker in real time.","url":"https://twitr.sh/api/tools/x_search","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"q":{"type":"string","description":"Search query (X operator syntax supported for tweets)."},"type":{"enum":["search-tweets","search-users"],"type":"string","description":"Search tweets (default) or users."},"cursor":{"type":"string","description":"search-users: pagination cursor from a previous call's report.next_cursor."},"fromUser":{"type":"string"},"language":{"type":"string"},"minFaves":{"type":"integer"},"mediaType":{"enum":["images","videos","gifs","media"],"type":"string"},"sinceDate":{"type":"string","description":"YYYY-MM-DD"},"untilDate":{"type":"string","description":"YYYY-MM-DD"},"minReplies":{"type":"integer"},"exactPhrase":{"type":"string"},"minRetweets":{"type":"integer"},"excludeWords":{"type":"string"},"resultsLimit":{"type":"integer","maximum":10000,"minimum":1,"description":"search-tweets: MANDATORY max tweets returned, billed per tweet."},"verifiedOnly":{"type":"boolean"},"advancedQuery":{"type":"string","description":"Raw X search operator string appended to q."}}},"responseSchema":{"type":"json","example":{"items":[{"id":"1893710452812718080","text":"This is a great thread, thanks for sharing.","createdAt":"2026-02-24T10:05:00.000Z","likeCount":1180,"authorUsername":"elonmusk"}],"runId":"tw_example","payment":{"amount":"0.060000","currency":"USD","protocol":"x402"},"duration":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.024","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.024/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.024","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.024","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8D-B1ChxnuD63oGgIoOfc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.024","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search X/Twitter tweets or user profiles using advanced operators including keywords, exact phrases, from-user, language, date range, media type, and engagement filters.","exampleAgentPrompt":"Search X/Twitter for up to 50 tweets mentioning 'NVDA earnings' from verified accounts only, with at least 10 likes, posted between 2024-10-01 and 2024-10-31, and only include tweets with images.","exampleUseCases":[{"title":"Brand sentiment monitoring","prompt":"Pull up to 100 tweets mentioning 'Notion app' from the past week — January 1 to January 7, 2025 — and filter to only tweets with at least 5 retweets so I can see what's getting traction."},{"title":"Competitor Twitter research","prompt":"Search Twitter for up to 30 tweets from the user 'elonmusk' posted between 2024-11-01 and 2024-11-30, so I can review what he said publicly during that period."},{"title":"Stock ticker social pulse check","prompt":"Find up to 75 English-language tweets about 'Bitcoin halving' posted since 2024-04-01 that have at least 100 likes, so I can gauge market sentiment around the event."}],"resultDescription":"Returns a list of matching tweets (or user profiles for search-users) including tweet content, author info, engagement counts (likes, retweets, replies), timestamps, and media metadata, up to the resultsLimit cap. For user searches, returns a pagination cursor for fetching additional results.","failureModes":["Missing required resultsLimit for tweet searches returns an error","Invalid date format (not YYYY-MM-DD) causes query rejection","Unsupported mediaType enum value causes validation failure","Empty or malformed query string with no operators may return zero results","resultsLimit exceeding 10000 is rejected","Rate limiting or X API unavailability may cause timeouts or partial results"],"whenToPreferThis":"Choose this endpoint when you need flexible, operator-rich search across X/Twitter tweets or user profiles — especially when you need to combine multiple filters like date ranges, engagement thresholds, language, media type, and verified-only status in a single call. Prefer this over generic social listening tools when you need real-time X data with fine-grained control over what you retrieve and a per-tweet billing model that scales with usage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:30:53.619Z","isFirstParty":false}