# Analytics services | Chersus

## Analytics 1

```
curl -X POST https://api.chersus.com/v1/run \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "type": "text",
      "value": "Shares fell sharply after the guidance cut, though analysts expect recovery."
    },
    "pipeline": [
      {
        "id": "sentiment",
        "service": "analytics.sentiment.index",
        "params": { "baseline": -0.31 }
      }
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/run", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    input: {
      type: "text",
      value: "Shares fell sharply after the guidance cut, though analysts expect recovery.",
    },
    pipeline: [
      {
        id: "sentiment",
        service: "analytics.sentiment.index",
        params: { baseline: -0.31 },
      },
    ],
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/run",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
        "input": {
            "type": "text",
            "value": "Shares fell sharply after the guidance cut, though analysts expect recovery.",
        },
        "pipeline": [
            {
                "id": "sentiment",
                "service": "analytics.sentiment.index",
                "params": {"baseline": -0.31},
            }
        ],
    },
)

data = res.json()
```
200 · 30ms · 76 chars
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X9",
  "status": "completed",
  "output": {
    "type": "text",
    "value": "Shares fell sharply after the guidance cut, though analysts expect recovery."
  },
  "results": {
    "sentiment": {
      "kind": "extract",
      "status": "ok",
      "data": { "sentiment": -0.42, "label": "negative", "shift_vs_baseline": -0.11 }
    }
  },
  "usage": {
    "billed": [
      { "unit": "characters", "quantity": 76, "steps": ["sentiment"] }
    ]
  },
  "audit": { "region": "eu-nl-1", "retention": "none", "total_ms": 30 }
}
```

`analytics.sentiment.index` is a financial-domain sentiment model, tuned for compliance text, earnings language, and telemetry logs rather than casual reviews. It returns a signed score, a coarse label, and, when you supply a baseline via `params.baseline`, the shift against it.

Track the shift, not the absolute score. A stable stream that drifts 0.15 negative in a day is the signal worth alerting on.
KINDextractMODELProsusAI/finbertLICENSEApache 2.0LANGUAGESEnglishREGION26 EU cities
## Start redacting in minutes.

Create an account, copy your key, make your first run before your coffee cools.
[Request access](/en/signup/)[Read the chaining guide](/en/docs/chaining/)