64trust / 100

Calc Hfa Icos Her2

by magent in Security & trust

x402 APIFailing, checked 5 min ago

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.

POST
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

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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

ParameterTypeRequiredDescription
itemsarray of objectYes

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 --decode
JavaScript: 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

WhenResultHTTPTimePrice
5 min agoTimed out---
6 h agoTimed out---
11 h agoTimed out---
15 h agoTimed out---
20 h agoPassed402295 ms$0.007
Show 10 older checks
25 h agoPassed402356 ms$0.007
30 h agoPassed402299 ms$0.007
35 h agoPassed402145 ms$0.007
39 h agoPassed402390 ms$0.007
44 h agoPassed402157 ms$0.007
2 days agoPassed402252 ms$0.007
2 days agoPassed402288 ms$0.007
2 days agoPassed402432 ms$0.007
3 days agoPassed402177 ms$0.007
3 days agoPassed402284 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007