# SiteCheck Sentiment Analysis

> SiteCheck Sentiment Analysis is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Classifies one or more text strings as POSITIVE or NEGATIVE with a confidence score using DistilBERT SST-2

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/sentiment?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-sentiment-analysis-1b361f50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AfvHydFvuOb5kxyc7s6JZ

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 sitecheck-sentiment-analysis-1b361f50
```

Example prompt: Can you check whether this customer review is positive or negative: 'The onboarding was smooth and the support team responded in under an hour — really impressed'?

## When to prefer this

Choose this endpoint when you need fast, low-cost binary sentiment classification (POSITIVE/NEGATIVE) with confidence scores for single texts or small batches up to 20. It is ideal for quick triage of customer reviews, survey responses, or social media posts where nuanced multi-class emotion detection is not required. The DistilBERT SST-2 model is well-calibrated for English-language sentiment and returns near-real-time results at $0.001 per call.

## Known failure modes

- Missing 'text' or 'texts' query parameter returns an error
- 'texts' must be valid JSON array — malformed JSON causes a parse error
- Text exceeding 2,000 characters may be truncated or rejected
- Batch exceeding 20 texts may be rejected
- Ambiguous or very short texts may produce low-confidence classifications
- Payment not included or insufficient funds returns 402 Payment Required

## How this service works

Sentiment of one text, or up to 20 (texts, a JSON array), each up to 2,000 characters: POSITIVE or NEGATIVE with the model's confidence, from DistilBERT SST-2. Best for short English text. It measures the wording, not whether the statement is true.

## Output

Returns a JSON object with a count, the model name (@cf/huggingface/distilbert-sst-2-int8), a description of labels, an array of results each containing the original text, a label (POSITIVE or NEGATIVE), and a confidence score (0–1), plus a timestamp of when the check was performed.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "text": {
       "type": "string",
       "description": "One text, up to 2,000 characters"
      },
      "texts": {
       "type": "string",
       "description": "JSON array of up to 20 texts"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "model": "@cf/huggingface/distilbert-sst-2-int8",
  "labels": "POSITIVE or NEGATIVE, with the model's confidence",
  "results": [
   {
    "text": "I love it: setup took five minutes and it works perfectly.",
    "label": "POSITIVE",
    "score": 0.9999
   }
  ],
  "checkedAt": "2026-10-14T05:12:23.179Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-sentiment-analysis-1b361f50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
