$0.004
per call · USD Coin on Base
Analyze sentiment of text. Returns positive/negative/neutral score.
Endpoint
POST https://x402.asterpay.io/v1/ai/sentiment1
Calls / 30d
1
Unique payers / 30d
Sep 7
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://x402.asterpay.io/v1/ai/sentiment", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"text": "The text to analyze for sentiment..."
}),
});
const data = await res.json();curl -X POST \
"https://x402.asterpay.io/v1/ai/sentiment" \
-H "Content-Type: application/json" \
-d '{"text":"The text to analyze for sentiment..."}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"confidence": 0.92,
"emotions": {
"joy": 0.7,
"surprise": 0.2,
"trust": 0.6
},
"score": 0.85,
"sentiment": "positive"
}Payment details
0xd5f8481d8f25d3966d2010dbf9b47ffbdf745a9eUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Social & Community and the homepage with a featured placement.
More from Asterpay & similar services
Asterpay · Price Bitcoin
x402.asterpay.io
Get real-time cryptocurrency price data for any token
Asterpay · Agent Readiness
x402.asterpay.io
Agent-readiness scan of any public website: scores 0-100 on MCP server, /.well-known/agent.json, llms.txt, OpenAPI validity, JSON-LD catalog and x402/MPP payability. Same published methodology as the asterpay.io checker. Paid via x402.
Asterpay · Deep Analysis Batch
x402.asterpay.io
Deep KYA Trust Score analysis for any AI agent or wallet. Returns 7-component trust score (0-100), risk tier, sanctions status, ERC-8004 identity, InsumerAPI attestations, and payment eligibility. The most comprehensive agent trust check available.