80trust / 100

Text Sentiment

by Tanod utilpeek in Weather & location

x402 APIPassing, checked 20 min ago

utilpeek (Tanod) sentiment: VADER compound score and label (English).

POST https://tanod.dev/v1/text/sentiment

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
283 ms typical, 818 ms slowest 5%
Last check
20 min ago
Next check
in 9 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/text/sentiment" \
  -H "content-type: application/json" \
  -d '{"text":"I love the screen, but the battery is terrible."}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Ftext%2Fsentiment
const res = await pay("https://tanod.dev/v1/text/sentiment", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"text":"I love the screen, but the battery is terrible."}),
});
console.log(await res.json());

Example input

{
  "text": "I love the screen, but the battery is terrible."
}

Example output

{
  "compound": -0.3716,
  "input_truncated": false,
  "label": "negative",
  "language": "en",
  "method": "VADER lexicon and rules (heuristic; English only). Document score = mean of sentence scores. Labels: compound >= 0.05 positive, <= -0.05 negative. Misses sarcasm, domain jargon and non-English text; not a trained model.",
  "negative": 0.302,
  "neutral": 0.509,
  "positive": 0.189,
  "sentences": 1,
  "source": {
    "library": "vaderSentiment 3.3.2",
    "license": "MIT",
    "url": "https://github.com/cjhutto/vaderSentiment"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
20 min agoPassed402272 ms$0.001
4 h agoPassed402830 ms$0.001
8 h agoPassed402369 ms$0.001
12 h agoPassed402818 ms$0.001
15 h agoPassed402283 ms$0.001
19 h agoPassed402267 ms$0.001
22 h agoPassed402267 ms$0.001
26 h agoPassed402565 ms$0.001
31 h agoPassed402271 ms$0.001