{"uid":"cap_jrfvHfNk8Fz2gHYFwwDjZ","slug":"x-twitter-tweet-search-for-crypto-agents-1f08b8a0","name":"X (Twitter) Tweet Search for Crypto Agents","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/tweets/search?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"q":{"type":"string","examples":["bitcoin","$ETH","x402","from:base"],"maxLength":200,"minLength":1,"description":"X search query (operators ok); or use the twit.sh-style filters below"},"to":{"type":"string","description":"Replying to handle"},"from":{"type":"string","description":"From handle"},"lang":{"type":"string","maxLength":5,"description":"Language filter e.g. en, ko"},"sort":{"enum":["recency","relevancy"],"type":"string","description":"Default relevancy"},"limit":{"type":"integer","maximum":20,"minimum":1,"description":"Posts (default 10)"},"since":{"type":"string","description":"YYYY-MM-DD (last 7 days)"},"until":{"type":"string","description":"YYYY-MM-DD"},"words":{"type":"string","description":"All of these words"},"phrase":{"type":"string","description":"Exact phrase"},"anyWords":{"type":"string","description":"Any of these words (space/comma separated)"},"hashtags":{"type":"string","description":"Hashtags (comma separated, # optional)"},"minLikes":{"type":"integer","minimum":0},"username":{"type":"string","description":"Timeline shortcut: posts from this handle"},"noneWords":{"type":"string","description":"None of these words"},"mentioning":{"type":"string","description":"Mentions handle"},"minReplies":{"type":"integer","minimum":0},"minReposts":{"type":"integer","minimum":0},"next_token":{"type":"string","description":"Pagination token from previous response"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"n":1,"q":"bitcoin","next":["/crypto/prices?symbols=BTC","/crypto/prediction-markets?q=bitcoin","/crypto/market-pulse"],"posts":[{"id":"1851234567890123456","url":"https://x.com/example/status/1851234567890123456","lang":"en","text":"$BTC ETF inflows strong again, ATH watch","author":{"name":"Example","handle":"example","verified":true,"followers":250000},"metrics":{"likes":1200,"quotes":12,"replies":85,"reposts":210},"created_at":"2026-10-30T01:20:00Z"}],"signal":{"cashtags":["$BTC"],"sentiment":"bullish","top_claim":{"url":"https://x.com/example/status/1851234567890123456","text":"$BTC ETF inflows strong again, ATH watch","handle":"example"},"top_terms":["etf","inflows","ath"],"engagement":{"likes":1200,"replies":85,"reposts":210},"notable_handles":[{"handle":"example","followers":250000}],"sentiment_score":0.4},"source":"x-api-v2-recent-search","updated_at":"2026-10-30T01:50:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l4KU4lJfN3n5SHToE1THN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches live X (Twitter) posts by keyword, cashtag, handle, or advanced filters and returns tweets with engagement metrics and a crypto sentiment signal summary","exampleAgentPrompt":"Search X for the most recent 10 tweets mentioning $BTC sorted by recency, in English only, and tell me the overall sentiment and top terms people are using.","exampleUseCases":[{"title":"Live token sentiment before a trade","prompt":"Before I buy $SOL, search X for the latest 15 tweets about $SOL sorted by recency and give me the sentiment score plus what the top handles with lots of followers are saying."},{"title":"Monitor a crypto influencer's posts","prompt":"Pull the last 10 tweets from the handle PlanB on X and summarize what he's been saying about Bitcoin this week."},{"title":"Crypto news signal for a trading bot","prompt":"Search X for tweets about 'Ethereum ETF' from the last 2 days with at least 100 likes, sorted by relevancy, and give me the top claims and engagement numbers."}],"resultDescription":"Returns a JSON object with an array of up to 20 tweet objects (id, URL, text, author name/handle/verified status/follower count, language, created_at, and engagement metrics including likes, reposts, quotes, replies), a signal block summarizing extracted cashtags, sentiment label, sentiment score, top terms, top claim tweet, and notable handles, plus a next_token for pagination, a suggested next-endpoint array, and a source/updated_at timestamp.","failureModes":["Missing required query parameter returns 400 error","Query outside X's 7-day recent search window returns empty results","Invalid date format for since/until returns 400","Rate limiting or X API quota exhaustion returns 429 or 503","Payment not received via x402 protocol returns 402 Payment Required","Unknown or suspended handle in from= filter returns empty result set","next_token expired or invalid returns 400"],"whenToPreferThis":"Use this endpoint when an AI agent needs live social sentiment or recent tweets about a crypto asset, handle, or keyword at low cost ($0.003 vs $0.006 alternatives). Prefer this over generic Twitter search APIs when you need built-in crypto signal extraction (cashtags, sentiment score, notable handles) returned alongside raw tweets. Best for trading agents, onchain bots, or research workflows that need X data but cannot access the X platform directly. Use the twit.sh-style filter parameters when you need precise multi-field filtering beyond a single query string.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:27.221Z","isFirstParty":false,"canonicalSlug":"x-twitter-tweet-search-for-crypto-agents-1f08b8a0"}