Calc Hfa Icos Her2
by magent in Security & trust
Lyon 2020 HFA-ICOS baseline cardiovascular risk before HER2-targeted therapy (trastuzumab and related agents). Very high, high, medium, or low from published factors plus Medium 1/2 points; expert-opinion cardiotoxicity guide <2% / 2-9% / 10-19% / >=20%. Concurrent anthracycline is High; sequential anthracycline before HER2 is Medium 1. Deterministic published classification with citation; not a treatment order. magent does not measure LVEF or biomarkers.
https://api.magentlab.com/api/calc/hfa_icos_her2- Price
- $0.007
- per call in USDC
- Uptime
- 86.1%
- last 30 days
- Response time
- 284 ms
- 1.6 s slowest 5%
- Last check
- Failed
- 5 min ago, next in 53 min
Reliability
Latest check failed 5 min ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://api.magentlab.com/api/calc/hfa_icos_her2
Each call costs $0.007 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://api.magentlab.com/api/calc/hfa_icos_her2
content-type: application/json
{
"items": [
{
"age_years": 50,
"anthracycline_before_her2": false,
"arrhythmia": false,
"ckd": false,
"concurrent_anthracycline_and_her2": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_cabg": false,
"obesity": false,
"prior_left_chest_or_mediastinal_rt": false,
"prior_remote_anthracycline": false,
"prior_trastuzumab_cardiotoxicity": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
},
{
"age_years": 50,
"anthracycline_before_her2": false,
"arrhythmia": false,
"ckd": false,
"concurrent_anthracycline_and_her2": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_cabg": false,
"obesity": false,
"prior_left_chest_or_mediastinal_rt": false,
"prior_remote_anthracycline": false,
"prior_trastuzumab_cardiotoxicity": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying. Shortened for display.
Example response, 266 lines
{
"count": 2,
"items": [
{
"age_years": 50,
"anthracycline_before_her2": false,
"cardiotoxicity_guide": "<2%",
"citation": {
"authors": "Lyon AR, Dent S, Stanway S, et al.",
"doi": "10.1002/ejhf.1920",
"id": "lyon-2020",
"pmid": "32458582",
"source": "Eur J Heart Fail. 2020;22(11):1945-1960",
"title": "Baseline cardiovascular risk assessment in cancer patients scheduled to receive cardiotoxic cancer therapies: a position statement and new risk assessment tools from the Cardio-Oncology Study Group of the Heart Failure Association of the European Society of Cardiology in collaboration with the International Cardio-Oncology Society"
},
"components": [
{
"factor": "heart_failure_or_cardiomyopathy",
"points": 0,
"present": false
},
{
"factor": "prior_trastuzumab_cardiotoxicity",
"points": 0,
"present": false
},
{
"factor": "mi_or_cabg",
"points": 0,
"present": false
},
{
"factor": "stable_angina",
"points": 0,
"present": false
},
{
"factor": "severe_valvular_heart_disease",
"points": 0,
"present": false
},
{
"factor": "lvef_lt_50",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "age_ge_80",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "concurrent_anthracycline_and_her2",
"points": 0,
"present": false
},
{
"factor": "lvef_50_54",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "arrhythmia",
"points": 0,
"present": false
},
{
"factor": "elevated_troponin",
"points": 0,
"present": false
},
{
"factor": "elevated_bnp",
"points": 0,
"present": false
},
{
"factor": "age_65_79",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "prior_remote_anthracycline",
"points": 0,
"present": false
},
{
"factor": "prior_left_chest_or_mediastinal_rt",
"points": 0,
"present": false
},
{
"factor": "hypertension",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "ckd",
"points": 0,
"present": false
},
{
"factor": "anthracycline_before_her2",
"points": 0,
"present": false
},
{
"factor": "current_or_significant_smoker",
"points": 0,
"present": false
}
],
"concurrent_anthracycline_and_her2": false,
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"formula": "hfa_icos_her2",
"formula_expression": "HFA-ICOS HER2 (Lyon 2020): very_high if heart_failure_or_cardiomyopathy or prior_trastuzumab_cardiotoxicity; else high if mi_or_cabg or stable_angina or severe_valvular_heart_disease or lvef_percent<50 or age_years>=80 or concurrent_anthracycline_and_her2 or medium_points>=5; else medium if medium_points 2-4; else low; medium_points = Medium 2 (2) + Medium 1 (1); Medium 2 = lvef 50-54, arrhythmia, elevated_troponin, elevated_bnp, age 65-79, prior_remote_anthracycline, prior_left_chest_or_mediastinal_rt; Medium 1 = hypertension, diabetes, ckd, anthracycline_before_her2 (if not concurrent), current_or_significant_smoker, obesity; cardiotoxicity_guide low <2%, medium 2-9%, high 10-19%, very_high >=20%",
"high_present": false,
"lvef_percent": 60,
"max_score": 20,
"medium_points": 0,
"risk_level": "low",
"score": 0,
"very_high_present": false
},
{
"age_years": 50,
"anthracycline_before_her2": false,
"cardiotoxicity_guide": "<2%",
"citation": {
"authors": "Lyon AR, Dent S, Stanway S, et al.",
"doi": "10.1002/ejhf.1920",
"id": "lyon-2020",
"pmid": "32458582",
"source": "Eur J Heart Fail. 2020;22(11):1945-1960",
"title": "Baseline cardiovascular risk assessment in cancer patients scheduled to receive cardiotoxic cancer therapies: a position statement and new risk assessment tools from the Cardio-Oncology Study Group of the Heart Failure Association of the European Society of Cardiology in collaboration with the International Cardio-Oncology Society"
},
"components": [
{
"factor": "heart_failure_or_cardiomyopathy",
"points": 0,
"present": false
},
{
"factor": "prior_trastuzumab_cardiotoxicity",
"points": 0,
"present": false
},
{
"factor": "mi_or_cabg",
"points": 0,
"present": false
},
{
"factor": "stable_angina",
"points": 0,
"present": false
},
{
"factor": "severe_valvular_heart_disease",
"points": 0,
"present": false
},
{
"factor": "lvef_lt_50",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "age_ge_80",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "concurrent_anthracycline_and_her2",
"points": 0,
"present": false
},
{
"factor": "lvef_50_54",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "arrhythmia",
"points": 0,
"present": false
},
{
"factor": "elevated_troponin",
"points": 0,
"present": false
},
{
"factor": "elevated_bnp",
"points": 0,
"present": false
},
{
"factor": "age_65_79",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "prior_remote_anthracycline",
"points": 0,
"present": false
},
{
"factor": "prior_left_chest_or_mediastinal_rt",
"points": 0,
"present": false
},
{
"factor": "hypertension",
"points": 0,
"present": false
},
{
"factor": "diabetes",
"points": 0,
"present": false
},
{
"factor": "ckd",
"points": 0,
"present": false
},
{
"factor": "anthracycline_before_her2",
"points": 0,
"present": false
},
{
"factor": "current_or_significant_smoker",
"points": 0,
"present": false
}
],
"concurrent_anthracycline_and_her2": false,
"disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
"formula": "hfa_icos_her2",
"formula_expression": "HFA-ICOS HER2 (Lyon 2020): very_high if heart_failure_or_cardiomyopathy or prior_trastuzumab_cardiotoxicity; else high if mi_or_cabg or stable_angina or severe_valvular_heart_disease or lvef_percent<50 or age_years>=80 or concurrent_anthracycline_and_her2 or medium_points>=5; else medium if medium_points 2-4; else low; medium_points = Medium 2 (2) + Medium 1 (1); Medium 2 = lvef 50-54, arrhythmia, elevated_troponin, elevated_bnp, age 65-79, prior_remote_anthracycline, prior_left_chest_or_mediastinal_rt; Medium 1 = hypertension, diabetes, ckd, anthracycline_before_her2 (if not concurrent), current_or_significant_smoker, obesity; cardiotoxicity_guide low <2%, medium 2-9%, high 10-19%, very_high >=20%",
"high_present": false,
"lvef_percent": 60,
"max_score": 20,
"medium_points": 0,
"risk_level": "low",
"score": 0,
"very_high_present": false
}
],
"path": "/api/calc/hfa_icos_her2"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.007.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.magentlab.com/api/calc/hfa_icos_her2' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age_years":50,"anthracycline_before_her2":false,"arrhythmia":false,"ckd":false,"concurrent_anthracycline_and_her2":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_cabg":false,"obesity":false,"prior_left_chest_or_mediastinal_rt":false,"prior_remote_anthracycline":false,"prior_trastuzumab_cardiotoxicity":false,"severe_valvular_heart_disease":false,"stable_angina":false},{"age_years":50,"anthracycline_before_her2":false,"arrhythmia":false,"ckd":false,"concurrent_anthracycline_and_her2":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_cabg":false,"obesity":false,"prior_left_chest_or_mediastinal_rt":false,"prior_remote_anthracycline":false,"prior_trastuzumab_cardiotoxicity":false,"severe_valvular_heart_disease":false,"stable_angina":false}]}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.magentlab.com/api/calc/hfa_icos_her2' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age_years":50,"anthracycline_before_her2":false,"arrhythmia":false,"ckd":false,"concurrent_anthracycline_and_her2":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_cabg":false,"obesity":false,"prior_left_chest_or_mediastinal_rt":false,"prior_remote_anthracycline":false,"prior_trastuzumab_cardiotoxicity":false,"severe_valvular_heart_disease":false,"stable_angina":false},{"age_years":50,"anthracycline_before_her2":false,"arrhythmia":false,"ckd":false,"concurrent_anthracycline_and_her2":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_cabg":false,"obesity":false,"prior_left_chest_or_mediastinal_rt":false,"prior_remote_anthracycline":false,"prior_trastuzumab_cardiotoxicity":false,"severe_valvular_heart_disease":false,"stable_angina":false}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fhfa_icos_her2&method=POST
const res = await pay("https://api.magentlab.com/api/calc/hfa_icos_her2", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"age_years": 50,
"anthracycline_before_her2": false,
"arrhythmia": false,
"ckd": false,
"concurrent_anthracycline_and_her2": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_cabg": false,
"obesity": false,
"prior_left_chest_or_mediastinal_rt": false,
"prior_remote_anthracycline": false,
"prior_trastuzumab_cardiotoxicity": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
},
{
"age_years": 50,
"anthracycline_before_her2": false,
"arrhythmia": false,
"ckd": false,
"concurrent_anthracycline_and_her2": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_cabg": false,
"obesity": false,
"prior_left_chest_or_mediastinal_rt": false,
"prior_remote_anthracycline": false,
"prior_trastuzumab_cardiotoxicity": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
}
]
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://api.magentlab.com/api/calc/hfa_icos_her2",
json={
"items": [
{
"age_years": 50,
"anthracycline_before_her2": False,
"arrhythmia": False,
"ckd": False,
"concurrent_anthracycline_and_her2": False,
"current_or_significant_smoker": False,
"diabetes": False,
"elevated_bnp": False,
"elevated_troponin": False,
"heart_failure_or_cardiomyopathy": False,
"hypertension": False,
"lvef_percent": 60,
"mi_or_cabg": False,
"obesity": False,
"prior_left_chest_or_mediastinal_rt": False,
"prior_remote_anthracycline": False,
"prior_trastuzumab_cardiotoxicity": False,
"severe_valvular_heart_disease": False,
"stable_angina": False,
},
{
"age_years": 50,
"anthracycline_before_her2": False,
"arrhythmia": False,
"ckd": False,
"concurrent_anthracycline_and_her2": False,
"current_or_significant_smoker": False,
"diabetes": False,
"elevated_bnp": False,
"elevated_troponin": False,
"heart_failure_or_cardiomyopathy": False,
"hypertension": False,
"lvef_percent": 60,
"mi_or_cabg": False,
"obesity": False,
"prior_left_chest_or_mediastinal_rt": False,
"prior_remote_anthracycline": False,
"prior_trastuzumab_cardiotoxicity": False,
"severe_valvular_heart_disease": False,
"stable_angina": False,
},
],
},
)
print(res.status_code, res.text)Security scan
1 finding
- Charges more than its listed price in payment
Listed at $0.005, charges $0.007
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 5 min ago | Timed out | - | - | - |
| 6 h ago | Timed out | - | - | - |
| 11 h ago | Timed out | - | - | - |
| 15 h ago | Timed out | - | - | - |
| 20 h ago | Passed | 402 | 295 ms | $0.007 |
Show 10 older checks
| 25 h ago | Passed | 402 | 356 ms | $0.007 |
| 30 h ago | Passed | 402 | 299 ms | $0.007 |
| 35 h ago | Passed | 402 | 145 ms | $0.007 |
| 39 h ago | Passed | 402 | 390 ms | $0.007 |
| 44 h ago | Passed | 402 | 157 ms | $0.007 |
| 2 days ago | Passed | 402 | 252 ms | $0.007 |
| 2 days ago | Passed | 402 | 288 ms | $0.007 |
| 2 days ago | Passed | 402 | 432 ms | $0.007 |
| 3 days ago | Passed | 402 | 177 ms | $0.007 |
| 3 days ago | Passed | 402 | 284 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |