# Mindshare API – X/Twitter Topic Sentiment Analysis

> Mindshare API – X/Twitter Topic Sentiment Analysis is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

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.

## Facts

- Endpoint: POST https://x402.agentutility.ai/mindshare
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mindshare-api-x-twitter-topic-sentiment-analysis-c698f58f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ghXg26I6aNAHudiHMOhqB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mindshare-api-x-twitter-topic-sentiment-analysis-c698f58f -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mindshare-api-x-twitter-topic-sentiment-analysis-c698f58f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
