# CHA2DS2-VA Stroke Risk Score (ESC 2024)

> CHA2DS2-VA Stroke Risk Score (ESC 2024) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Calculates the ESC 2024 CHA2DS2-VA stroke risk score for atrial fibrillation patients from age and five clinical flags, returning a score with OAC recommendation guidance.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cha2ds2_va
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cha2ds2-va-stroke-risk-score-esc-2024-ad73ecd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WvJPqAmi83m5Xj4QRYx6x

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 cha2ds2-va-stroke-risk-score-esc-2024-ad73ecd3
```

Example prompt: Calculate the CHA2DS2-VA stroke risk score for a 72-year-old patient with hypertension and diabetes, no CHF, no prior stroke or TIA, and no vascular disease, and tell me whether oral anticoagulation is recommended per ESC 2024 guidelines.

## When to prefer this

Use this endpoint when you need the ESC 2024 version of the CHA2DS2-VA score (which excludes the sex/female category present in CHA2DS2-VASc) for atrial fibrillation stroke risk stratification. Prefer this over CHA2DS2-VASc calculators when following the updated ESC 2024 guideline that dropped sex as a risk modifier. Ideal for clinical decision support tools, EHR integrations, and automated patient triage workflows where a fast, deterministic, cited arithmetic result is needed.

## Known failure modes

- Missing required query parameters (age, chf, hypertension, diabetes, stroke_tia, vascular_disease) returns a 400 error
- Age outside 18–120 range may return a validation error
- Non-boolean values for flag parameters cause schema validation failure
- Payment not provided or x402 header missing causes 402 Payment Required
- Network timeout or server error returns 5xx

## How this service works

ESC 2024 CHA2DS2-VA stroke-risk score from age and discrete flags (CHF, hypertension, diabetes, prior stroke/TIA, vascular disease). No sex category (not CHA2DS2-VASc). Score 0 none, 1 consider OAC, ≥2 OAC recommended. Deterministic published arithmetic with citation; not an anticoagulation order.

## Output

Returns the integer CHA2DS2-VA score (0–9) computed from the provided age bracket and five clinical flags, along with an interpretation: score 0 means no anticoagulation needed, score 1 means consider oral anticoagulant (OAC), and score ≥2 means OAC is recommended per ESC 2024 guidelines. The calculation is deterministic published arithmetic and does not constitute a clinical order.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "age",
      "chf",
      "hypertension",
      "diabetes",
      "stroke_tia",
      "vascular_disease"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). ≥75 scores 2; 65-74 scores 1."
      },
      "chf": {
       "type": "boolean",
       "description": "Congestive heart failure or LV dysfunction. true or false."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes mellitus. true or false."
      },
      "stroke_tia": {
       "type": "boolean",
       "description": "Prior stroke, TIA, or arterial thromboembolism. true or false (2 points)."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Hypertension history. true or false."
      },
      "vascular_disease": {
       "type": "boolean",
       "description": "Prior MI, peripheral artery disease, or aortic plaque. true or false."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cha2ds2-va-stroke-risk-score-esc-2024-ad73ecd3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
