Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man twitter-sentiment

/twitter-sentiment

agentutility / wordmint / twitter-sentiment
PRICE / CALL
$0.03
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
wordmint
CATEGORY
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.

INPUTrequest schema
propertytypedescriptionreq?
querystringX recent-search query, e.g. 'x402 payments' or '(coinbase OR bankr) x402'.required
max_resultsnumberNumber of recent posts to fetch. X API minimum is 10; this endpoint clamps to 10-50. Default 10.optional
languagestringOptional two-letter language filter, e.g. 'en'.optional
OUTPUTresponse shape
fieldtypedescription
querystring
result_countstring
overall_sentimentstring
average_scorestring
distributionstring
sourcestring
EXAMPLEStwo 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
ADJACENTother endpoints in wordmint
endpointdescriptionprice
social-sentimentSocial sentiment API for X/Twitter recent posts.$0.03
tweet-sentimentTweet sentiment analyzer / Twitter recent-search sentiment.$0.03
x-sentimentX sentiment search / Twitter sentiment monitor.$0.03
alt-text-generatorAlt text generator / accessibility image description API.$0.02
classifyZero-shot text classifier.$0.02
classify-textText classifier / zero-shot classifier / category sorter.$0.02
describe-imageAI image descriptor / vision LLM.$0.02
detect-piiPII detector / data leak scanner.$0.02
SEE ALSO
agentutility · wordmint · x402 · mcp · llms.txt · registry.json · bazaar.x402.org