# ESC 2021 SCORE2 Cardiovascular Risk Calculator

> ESC 2021 SCORE2 Cardiovascular Risk Calculator 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 2021 SCORE2 10-year risk (%) of fatal and non-fatal cardiovascular events for adults aged 40–69 using sex, smoking status, systolic BP, non-HDL cholesterol, and European geographic risk region.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/score2
- 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/esc-2021-score2-cardiovascular-risk-calculator-5681ba3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hf-Y5Hv3kRH3MAJRqsM9F

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 esc-2021-score2-cardiovascular-risk-calculator-5681ba3d
```

Example prompt: Using the ESC 2021 SCORE2 model, calculate the 10-year cardiovascular risk for a 57-year-old male who currently smokes, has a systolic BP of 145 mmHg, non-HDL cholesterol of 4.2 mmol/L, and lives in a high-risk European region.

## When to prefer this

Use this endpoint when you need the specific ESC 2021 SCORE2 model for adults aged 40–69 in a European clinical context, based on non-HDL cholesterol and the official geographic risk region calibration. Prefer this over PCE (US-focused, different coefficients), SCORE2-OP (age 70+), SCORE2-Diabetes (requires diabetes inputs), or Reynolds Risk Score (requires hsCRP/family history). Ideal when inputs are systolic BP and non-HDL cholesterol as recorded in European clinical practice.

## Known failure modes

- Age outside 40–69 range returns an error (SCORE2 is not SCORE2-OP for 70+)
- Invalid or missing european_risk_region enum value causes a validation error
- Non-HDL cholesterol outside 1–12 mmol/L range may be rejected
- Systolic BP outside 50–250 mmHg range may be rejected
- Missing required query parameters (age, sex, smoker, sbp_mm_hg, non_hdl_mmol_l, european_risk_region) returns a 400 error
- Payment failure via x402 results in a 402 response before computation

## How this service works

ESC 2021 SCORE2 10-year fatal plus non-fatal CVD percent for age 40-69 from sex, current smoking, systolic BP, non-HDL cholesterol, and European geographic risk region (low, moderate, high, very_high). Published sex-specific coefficients and region scale1/scale2. Not SCORE2-OP, not SCORE2-Diabetes, not 2013 PCE, not Reynolds, not a diagnosis or statin order. magent does not assay lipids.

## Output

Returns the ESC 2021 SCORE2 10-year risk percentage for combined fatal and non-fatal cardiovascular events (heart attack and stroke), computed using published sex-specific coefficients and geographic region calibration scale factors. The result is a numeric risk estimate appropriate for clinical risk stratification of adults aged 40–69.

## 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",
      "sex",
      "smoker",
      "sbp_mm_hg",
      "non_hdl_mmol_l",
      "european_risk_region"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 40-69). SCORE2 2021 is for ages 40-69. Not SCORE2-OP (age 70 or older)."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used by the sex-specific SCORE2 2021 coefficients (female or male)."
      },
      "smoker": {
       "type": "boolean",
       "description": "Current cigarette smoking as assigned by the caller (true or false). magent does not take a smoking history."
      },
      "sbp_mm_hg": {
       "type": "number",
       "description": "Systolic blood pressure in mm Hg (50-250). Enters as (SBP-120)/20. magent does not measure blood pressure."
      },
      "non_hdl_mmol_l": {
       "type": "number",
       "description": "Non-HDL cholesterol in mmol/L (1-12). SCORE2 charts display non-HDL. The published equation uses TC and HDL at the paper HDL centering 1.3 mmol/L (TC = non-HDL + 1.3). The printed 50-year-old example is TC 5.5 and HDL 1.3 (non-HDL 4.2). magent does not assay lipids."
      },
      "european_risk_region": {
       "enum": [
        "low",
        "moderate",
        "high",
        "very_high"
       ],
       "type": "string",
       "description": "Geographic SCORE2 2021 calibration region (low, moderate, high, or very_high) as printed in that paper. Not race. Not ethnicity."
      }
     }
    }
   },
   "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/esc-2021-score2-cardiovascular-risk-calculator-5681ba3d/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)
