{"uid":"cap_fDRNOwZHt7em3Bk7ePI-y","slug":"surf-twitter-advanced-search-43fd73f8","name":"Surf Twitter Advanced Search","description":"Search tweets with advanced operators (recommended). Body param is `query` (not q), e.g. {\"query\":\"from:elonmusk AI min_faves:100\"}","url":"https://twitter.surf.cascade.fyi/api/v1/twitter/search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sort":{"enum":["latest","top"],"type":"string","description":"Sort order: \"top\" (most engaged matching tweets) or \"latest\" (newest first). Default: \"top\"."},"query":{"type":"string","maxLength":1000,"minLength":1,"description":"Search query with advanced operators"},"cursor":{"type":"string","maxLength":500,"description":"Pagination cursor"},"end_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$","description":"Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"},"start_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$","description":"Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"},"expand_urls":{"type":"boolean","default":false,"description":"When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_crawl(url) for targeted crawls instead."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WrfIiClB96NjdNP0C0AyV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search Twitter/X tweets using advanced query operators (from:, min_faves:, date filters, etc.) with pay-per-use micropayments","exampleAgentPrompt":"Search Twitter for the top tweets from @elonmusk about AI that have at least 100 likes, sorted by most engaged, from the past week.","exampleUseCases":[{"title":"Brand sentiment monitoring on Twitter","prompt":"Search Twitter for the most popular tweets mentioning 'OpenAI' from the last 7 days, sorted by top engagement, so I can see what people are saying about them."},{"title":"Tracking a specific user's viral posts","prompt":"Find tweets from @paulg about startups that have at least 500 likes — give me the top ones sorted by most engaged."},{"title":"Event-driven tweet research","prompt":"Search Twitter for tweets about the 2024 US election results posted between November 5th and November 7th 2024, sorted by latest, so I can see the real-time reaction."}],"resultDescription":"Returns a list of tweets matching the query, each including tweet text, author info, engagement metrics (likes, retweets, replies), timestamps, and URLs. Also returns a pagination cursor for fetching additional results pages.","failureModes":["Invalid or malformed query string returns an error","Rate limits or quota exceeded if too many calls in short succession","Micropayment failure (x402) if wallet has insufficient USDC balance","Empty result set if query is too restrictive or no matching tweets exist","Invalid date format causes query rejection","Cursor from a different query used for pagination returns unexpected results"],"whenToPreferThis":"Prefer this endpoint when you need to search Twitter/X with advanced operators (from:, min_faves:, min_retweets:, since:, until:, filter:links, etc.) and want pay-per-use pricing without a Twitter API subscription. It is especially useful for agents that need targeted, operator-rich tweet retrieval — such as filtering by specific users, engagement thresholds, or date ranges — rather than simple keyword search. Choose over alternatives when x402 micropayments fit your payment infrastructure and you want flexible, on-demand access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T18:38:01.300Z","isFirstParty":false,"canonicalSlug":"surf-twitter-advanced-search-43fd73f8"}