# Sentiment Analysis API (Web/News/Blogs)

> Sentiment Analysis API (Web/News/Blogs) is a paid API for AI agents from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Aggregates web, news, and blog citations for any query and returns polarity counts, emotional connotations, and a sentiment score in [-1,1]

## Facts

- Endpoint: POST https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/sentiment/search
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sentiment-analysis-api-web-news-blogs-42cf2367
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qS_GFcTDzf6lYnFB5lsan

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 sentiment-analysis-api-web-news-blogs-42cf2367 -d '<json body>'
```

Example prompt: What's the current sentiment around Bitcoin across news and blogs — give me the polarity breakdown and the overall sentiment score?

## When to prefer this

Choose this endpoint when you need multi-source aggregated sentiment (news + blogs + web) with both polarity counts AND emotional connotations in a single call. Ideal for crypto/market sentiment, brand monitoring, and opinion-mining agents that need a composite [-1,1] score rather than raw article text. Prefer over raw news search when you need quantified sentiment rather than article content.

## Known failure modes

- Empty or overly broad query returns noisy or null sentiment data
- Query with no web coverage returns null score fields
- Invalid pageTypes enum value causes request rejection
- Query exceeds 300 character limit returns validation error
- Upstream data source unavailable may return null upstream cost and degraded results

## Output

Returns a sentiment score between -1 and 1, polarity counts (positive, negative, neutral citations), and emotional connotation scores (anger, happiness, love, sadness, fun, share) aggregated from web, news, blogs, message boards, and/or ecommerce sources matching the query.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "maxLength": 300,
       "minLength": 1
      },
      "pageTypes": {
       "type": "array",
       "items": {
        "enum": [
         "ecommerce",
         "news",
         "blogs",
         "message-boards",
         "organic"
        ],
        "type": "string"
       }
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "machine",
      "route",
      "sentiment"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "route": {
       "type": "string"
      },
      "machine": {
       "type": "string"
      },
      "economics": {
       "type": "object",
       "properties": {
        "sellPriceUsd": {
         "type": "number"
        },
        "upstreamCostUsdActual": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      },
      "sentiment": {
       "type": "object",
       "properties": {
        "score": {
         "type": [
          "number",
          "null"
         ]
        },
        "emotions": {
         "type": "object",
         "properties": {
          "fun": {
           "type": [
            "number",
            "null"
           ]
          },
          "love": {
           "type": [
            "number",
            "null"
           ]
          },
          "anger": {
           "type": [
            "number",
            "null"
           ]
          },
          "share": {
           "type": [
            "number",
            "null"
           ]
          },
          "sadness": {
           "type": [
            "number",
            "null"
           ]
          },
          "happiness": {
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sentiment-analysis-api-web-news-blogs-42cf2367/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com](https://www.zero.xyz/host/agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/llms.txt)
