$ man twitter-sentiment
/twitter-sentiment
PRICE / CALL
$0.03
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmintCATEGORY
uncategorized
STATUS
● live
NAME
twitter-sentiment — twitter/x sentiment api / social sentiment / tweet sentiment / x recent search sentiment
SYNOPSIS
POST https://x402.agentutility.ai/twitter-sentiment
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Twitter/X sentiment API / social sentiment / tweet sentiment / X recent search sentiment. Searches recent public X posts for a query, excludes retweets by default, optionally filters by language, and returns tweet-level sentiment plus aggregate distribution and average score. Uses X API v2 recent search with local deterministic sentiment scoring. Requires X_BEARER_TOKEN; read-only, no posting/replying/liking.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| query | string | X recent-search query, e.g. 'x402 payments' or '(coinbase OR bankr) x402'. | required |
| max_results | number | Number of recent posts to fetch. X API minimum is 10; this endpoint clamps to 10-50. Default 10. | optional |
| language | string | Optional two-letter language filter, e.g. 'en'. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| query | string | — |
| result_count | string | — |
| overall_sentiment | string | — |
| average_score | string | — |
| distribution | string | — |
| source | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/twitter-sentiment \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the twitter-sentiment tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- wordminttwittersentimenttwitter-sentiment
- env
- X_BEARER_TOKEN
- methods
- POST
- cluster
- wordmint
- price
- $0.03 USDC per call
ADJACENT — other endpoints in wordmint
| endpoint | description | price |
|---|---|---|
| social-sentiment | Social sentiment API for X/Twitter recent posts. | $0.03 |
| tweet-sentiment | Tweet sentiment analyzer / Twitter recent-search sentiment. | $0.03 |
| x-sentiment | X sentiment search / Twitter sentiment monitor. | $0.03 |
| alt-text-generator | Alt text generator / accessibility image description API. | $0.02 |
| classify | Zero-shot text classifier. | $0.02 |
| classify-text | Text classifier / zero-shot classifier / category sorter. | $0.02 |
| describe-image | AI image descriptor / vision LLM. | $0.02 |
| detect-pii | PII detector / data leak scanner. | $0.02 |
SEE ALSO