{"uid":"cap_ghXg26I6aNAHudiHMOhqB","slug":"mindshare-api-x-twitter-topic-sentiment-analysis-c698f58f","name":"Mindshare API – X/Twitter Topic Sentiment Analysis","description":"Mindshare API / social mindshare / X conversation share / Twitter sentiment summary. Searches recent public X posts for a topic and returns tweet-level sentiment plus aggregate positive/neutral/negative distribution and average score. Searches recent X posts with sentiment scoring. Read-only; no posting, replying, liking, following, or account mutation.","url":"https://x402.agentutility.ai/mindshare","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["query"],"properties":{"query":{"type":"string","description":"Topic, brand, ticker, protocol, or phrase to search on X."},"language":{"type":"string","description":"Optional two-letter language filter, e.g. 'en'."},"max_results":{"type":"number","description":"Recent public posts to fetch. Clamped to 10-50. Default 10."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"query":{"type":"string"},"source":{"type":"string"},"distribution":{"type":"object","properties":{"neutral":{"type":"integer"},"negative":{"type":"integer"},"positive":{"type":"integer"}}},"result_count":{"type":"integer"},"average_score":{"type":"number"},"overall_sentiment":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"query":"x402 payments","source":"X API v2 recent search + local sentiment lexicon","distribution":{"neutral":11,"negative":2,"positive":7},"result_count":20,"average_score":0.18,"overall_sentiment":"positive"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.008","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1ndXBv1NGEIH5wiAaTH15","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches recent public X (Twitter) posts for a given topic and returns per-tweet sentiment scores plus an aggregate positive/neutral/negative distribution and average sentiment score.","exampleAgentPrompt":"Can you search recent X posts about 'Bitcoin ETF' and tell me what the overall sentiment looks like — how many are positive, neutral, or negative, and what the average sentiment score is?","exampleUseCases":[{"title":"Brand health check on X","prompt":"Search recent X posts mentioning 'OpenAI' and give me the sentiment breakdown — what percentage are positive, neutral, or negative, and what's the average score? I want to know how people are feeling about them right now."},{"title":"Crypto token social mindshare","prompt":"What's the current X sentiment around 'Solana'? Pull recent tweets and tell me the positive/neutral/negative split and the average sentiment score so I can gauge community mood before making a move."},{"title":"Product launch reaction monitoring","prompt":"Can you check how people on X are reacting to the 'iPhone 16' launch? I want to see tweet-level sentiment and the overall aggregate — positive vs negative distribution and average score."}],"resultDescription":"Returns a list of recent public X posts matching the topic with individual sentiment scores per tweet, plus an aggregate summary showing the percentage distribution across positive, neutral, and negative categories and an overall average sentiment score.","failureModes":["Topic returns no recent public tweets — empty result set","X API rate limits or access restrictions cause partial or failed retrieval","Ambiguous or overly broad query terms return noisy, low-relevance tweets","Payment failure (insufficient USDC balance) prevents the call from completing","Network timeout if X search backend is slow to respond"],"whenToPreferThis":"Choose this endpoint when you need real-time social sentiment analysis specifically from X/Twitter — not just raw tweet text but structured per-tweet sentiment scores plus an aggregate distribution. It is ideal for brand monitoring, crypto/asset social mindshare tracking, event reaction analysis, or any use case where you need a quantitative positive/neutral/negative breakdown of current public X conversation around a topic. Prefer it over generic web search when you specifically need Twitter/X data with sentiment scoring already computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:19.283Z","isFirstParty":false}