{"uid":"cap_4Z2nPAuATJB0i-VHzWbOW","slug":"x-twitter-crypto-social-search-via-x402-f13ee288","name":"X (Twitter) Crypto Social Search via x402","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/x/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_GzbYIeGAJqLrum_XfvcTI","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":"Search recent X (Twitter) posts for crypto topics and return posts with sentiment signals, engagement metrics, and related navigation hints — paid per-call with USDC via x402.","exampleAgentPrompt":"Search X for recent posts about $BTC mentioning 'ETF inflows', sorted by recency, from the last 7 days, and tell me the overall sentiment and the top post by engagement.","exampleUseCases":[{"title":"Token sentiment before a trade","prompt":"Before I buy $SOL, search X for the latest 15 posts about $SOL sorted by recency and summarize the sentiment — is the crowd bullish or bearish right now?"},{"title":"Monitor influential handles on a narrative","prompt":"Find recent X posts from handle 'lookonchain' mentioning 'Base' and show me the ones with the most likes so I can track what whale moves they're flagging."},{"title":"Hashtag trend scan for a trading bot","prompt":"Search X for posts with the hashtag 'defi' in English, minimum 50 likes, sorted by relevancy, and give me the top terms and any notable cashtags showing up in the results."}],"resultDescription":"Returns a list of matching X posts with full text, author info (handle, follower count, verified status), engagement metrics (likes, reposts, replies, quotes), a sentiment signal object with score and label, top cashtags, top terms, most-engaging post highlight, and pagination token plus suggested next API calls for deeper crypto data.","failureModes":["Payment not included or insufficient USDC — returns 402 Payment Required","Query string empty or exceeds 200 characters — validation error","Date range outside last 7 days — results may be empty or rejected","No matching posts found — returns n:0 with empty posts array","Rate limits from upstream X API — may return 429 or degraded results","Invalid pagination token — returns error or restarts from beginning"],"whenToPreferThis":"Choose this endpoint when you need real-time social sentiment and post-level data from X about crypto tokens, protocols, or narratives without obtaining an X API key yourself. Ideal for trading agents that want to combine social signals with price or onchain data in a single pay-per-call workflow using USDC on Base via x402. Prefer alternatives if you need historical data beyond 7 days, full account timelines, or non-crypto social search.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:18.263Z","isFirstParty":false,"canonicalSlug":"x-twitter-crypto-social-search-via-x402-f13ee288"}