65trust / 100

Calc Arc Hbr

by magent in Security & trust

x402 APIFailing, checked 5 h ago

ARC-HBR (Urban 2019 Table 3). High bleeding risk at PCI iff ≥1 major or ≥2 minor. Binary; no weighted point score. Caller-assigned booleans; magent does not assay labs or read NIHSS. Mutex (400): severe vs moderate CKD, Hb <11 vs mild anemia, major vs minor bleed, moderate-severe stroke <6 mo vs any other ischemic stroke. Not a DAPT duration. Not a medical device.

POST
https://api.magentlab.com/api/calc/arc_hbr
Price
$0.007
per call in USDC
Uptime
88.6%
last 30 days
Response time
287 ms
474 ms slowest 5%
Last check
Failed
5 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 5 h ago: Timed out

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.magentlab.com/api/calc/arc_hbr

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/arc_hbr
content-type: application/json

{
  "items": [
    {
      "active_malignancy_12mo": false,
      "age_ge_75": true,
      "anticipated_long_term_oac": false,
      "any_ischemic_stroke_not_major": false,
      "bavm": false,
      "chronic_bleeding_diathesis": false,
      "cirrhosis_with_portal_hypertension": false,
      "hemoglobin_lt_11": false,
      "long_term_nsaid_or_steroid": false,
      "mild_anemia": false,
      "moderate_ckd": false,
      "moderate_severe_ischemic_stroke_6mo": false,
      "nondeferrable_major_surgery_dapt": false,
      "previous_spontaneous_ich": false,
      "recent_major_surgery_or_trauma_30d": false,
      "severe_or_esrd_ckd": false,
      "spontaneous_bleed_major": false,
      "spontaneous_bleed_minor": false,
      "thrombocytopenia_lt_100": false,
      "traumatic_ich_12mo": false
    },
    {
      "active_malignancy_12mo": false,
      "age_ge_75": true,
      "anticipated_long_term_oac": false,
      "any_ischemic_stroke_not_major": false,
      "bavm": false,
      "chronic_bleeding_diathesis": false,
      "cirrhosis_with_portal_hypertension": false,
      "hemoglobin_lt_11": false,
      "long_term_nsaid_or_steroid": false,
      "mild_anemia": false,
      "moderate_ckd": false,
      "moderate_severe_ischemic_stroke_6mo": false,
      "nondeferrable_major_surgery_dapt": false,
      "previous_spontaneous_ich": false,
      "recent_major_surgery_or_trauma_30d": false,
      "severe_or_esrd_ckd": false,
      "spontaneous_bleed_major": false,
      "spontaneous_bleed_minor": false,
      "thrombocytopenia_lt_100": false,
      "traumatic_ich_12mo": false
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

The provider's example. We can't check it without paying.

Example response, 202 lines
{
  "count": 2,
  "items": [
    {
      "citation": {
        "authors": "Urban P, Mehran R, Colleran R, Angiolillo DJ, Byrne RA, Capodanno D, Cuisset T, Cutlip D, Eerdmans P, Eikelboom J, Farb A, Gibson CM, Gregson J, Haude M, James SK, Kim HS, Kimura T, Konishi A, Laschinger J, Leon MB, Magee PFA, Price MJ, Salett E, Schulz C, Valgimigli M, Varenne O, Yeh RW, Krucoff MW",
        "doi": "10.1161/CIRCULATIONAHA.119.040167",
        "id": "urban-2019",
        "pmid": "31116032",
        "source": "Circulation. 2019;140(3):240-261",
        "title": "Defining High Bleeding Risk in Patients Undergoing Percutaneous Coronary Intervention: A Consensus Document From the Academic Research Consortium for High Bleeding Risk"
      },
      "criteria": [
        {
          "factor": "anticipated_long_term_oac",
          "met": false
        },
        {
          "factor": "severe_or_esrd_ckd",
          "met": false
        },
        {
          "factor": "hemoglobin_lt_11",
          "met": false
        },
        {
          "factor": "spontaneous_bleed_major",
          "met": false
        },
        {
          "factor": "thrombocytopenia_lt_100",
          "met": false
        },
        {
          "factor": "chronic_bleeding_diathesis",
          "met": false
        },
        {
          "factor": "cirrhosis_with_portal_hypertension",
          "met": false
        },
        {
          "factor": "active_malignancy_12mo",
          "met": false
        },
        {
          "factor": "previous_spontaneous_ich",
          "met": false
        },
        {
          "factor": "traumatic_ich_12mo",
          "met": false
        },
        {
          "factor": "bavm",
          "met": false
        },
        {
          "factor": "moderate_severe_ischemic_stroke_6mo",
          "met": false
        },
        {
          "factor": "nondeferrable_major_surgery_dapt",
          "met": false
        },
        {
          "factor": "recent_major_surgery_or_trauma_30d",
          "met": false
        },
        {
          "factor": "age_ge_75",
          "met": true
        },
        {
          "factor": "moderate_ckd",
          "met": false
        },
        {
          "factor": "mild_anemia",
          "met": false
        },
        {
          "factor": "spontaneous_bleed_minor",
          "met": false
        },
        {
          "factor": "long_term_nsaid_or_steroid",
          "met": false
        },
        {
          "factor": "any_ischemic_stroke_not_major",
          "met": 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": "arc_hbr",
      "formula_expression": "high_bleeding_risk iff major_count >= 1 or minor_count >= 2 (Urban 2019 Table 3). Binary HBR; not a weighted point score. Majors: anticipated_long_term_oac, severe_or_esrd_ckd, hemoglobin_lt_11, spontaneous_bleed_major, thrombocytopenia_lt_100, chronic_bleeding_diathesis, cirrhosis_with_portal_hypertension, active_malignancy_12mo, previous_spontaneous_ich, traumatic_ich_12mo, bavm, moderate_severe_ischemic_stroke_6mo, nondeferrable_major_surgery_dapt, recent_major_surgery_or_trauma_30d. Minors: age_ge_75, moderate_ckd, mild_anemia, spontaneous_bleed_minor, long_term_nsaid_or_steroid, any_ischemic_stroke_not_major",
      "high_bleeding_risk": false,
      "major_count": 0,
      "minor_count": 1
    },
    {
      "citation": {
        "authors": "Urban P, Mehran R, Colleran R, Angiolillo DJ, Byrne RA, Capodanno D, Cuisset T, Cutlip D, Eerdmans P, Eikelboom J, Farb A, Gibson CM, Gregson J, Haude M, James SK, Kim HS, Kimura T, Konishi A, Laschinger J, Leon MB, Magee PFA, Price MJ, Salett E, Schulz C, Valgimigli M, Varenne O, Yeh RW, Krucoff MW",
        "doi": "10.1161/CIRCULATIONAHA.119.040167",
        "id": "urban-2019",
        "pmid": "31116032",
        "source": "Circulation. 2019;140(3):240-261",
        "title": "Defining High Bleeding Risk in Patients Undergoing Percutaneous Coronary Intervention: A Consensus Document From the Academic Research Consortium for High Bleeding Risk"
      },
      "criteria": [
        {
          "factor": "anticipated_long_term_oac",
          "met": false
        },
        {
          "factor": "severe_or_esrd_ckd",
          "met": false
        },
        {
          "factor": "hemoglobin_lt_11",
          "met": false
        },
        {
          "factor": "spontaneous_bleed_major",
          "met": false
        },
        {
          "factor": "thrombocytopenia_lt_100",
          "met": false
        },
        {
          "factor": "chronic_bleeding_diathesis",
          "met": false
        },
        {
          "factor": "cirrhosis_with_portal_hypertension",
          "met": false
        },
        {
          "factor": "active_malignancy_12mo",
          "met": false
        },
        {
          "factor": "previous_spontaneous_ich",
          "met": false
        },
        {
          "factor": "traumatic_ich_12mo",
          "met": false
        },
        {
          "factor": "bavm",
          "met": false
        },
        {
          "factor": "moderate_severe_ischemic_stroke_6mo",
          "met": false
        },
        {
          "factor": "nondeferrable_major_surgery_dapt",
          "met": false
        },
        {
          "factor": "recent_major_surgery_or_trauma_30d",
          "met": false
        },
        {
          "factor": "age_ge_75",
          "met": true
        },
        {
          "factor": "moderate_ckd",
          "met": false
        },
        {
          "factor": "mild_anemia",
          "met": false
        },
        {
          "factor": "spontaneous_bleed_minor",
          "met": false
        },
        {
          "factor": "long_term_nsaid_or_steroid",
          "met": false
        },
        {
          "factor": "any_ischemic_stroke_not_major",
          "met": 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": "arc_hbr",
      "formula_expression": "high_bleeding_risk iff major_count >= 1 or minor_count >= 2 (Urban 2019 Table 3). Binary HBR; not a weighted point score. Majors: anticipated_long_term_oac, severe_or_esrd_ckd, hemoglobin_lt_11, spontaneous_bleed_major, thrombocytopenia_lt_100, chronic_bleeding_diathesis, cirrhosis_with_portal_hypertension, active_malignancy_12mo, previous_spontaneous_ich, traumatic_ich_12mo, bavm, moderate_severe_ischemic_stroke_6mo, nondeferrable_major_surgery_dapt, recent_major_surgery_or_trauma_30d. Minors: age_ge_75, moderate_ckd, mild_anemia, spontaneous_bleed_minor, long_term_nsaid_or_steroid, any_ischemic_stroke_not_major",
      "high_bleeding_risk": false,
      "major_count": 0,
      "minor_count": 1
    }
  ],
  "path": "/api/calc/arc_hbr"
}

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/arc_hbr' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"active_malignancy_12mo":false,"age_ge_75":true,"anticipated_long_term_oac":false,"any_ischemic_stroke_not_major":false,"bavm":false,"chronic_bleeding_diathesis":false,"cirrhosis_with_portal_hypertension":false,"hemoglobin_lt_11":false,"long_term_nsaid_or_steroid":false,"mild_anemia":false,"moderate_ckd":false,"moderate_severe_ischemic_stroke_6mo":false,"nondeferrable_major_surgery_dapt":false,"previous_spontaneous_ich":false,"recent_major_surgery_or_trauma_30d":false,"severe_or_esrd_ckd":false,"spontaneous_bleed_major":false,"spontaneous_bleed_minor":false,"thrombocytopenia_lt_100":false,"traumatic_ich_12mo":false},{"active_malignancy_12mo":false,"age_ge_75":true,"anticipated_long_term_oac":false,"any_ischemic_stroke_not_major":false,"bavm":false,"chronic_bleeding_diathesis":false,"cirrhosis_with_portal_hypertension":false,"hemoglobin_lt_11":false,"long_term_nsaid_or_steroid":false,"mild_anemia":false,"moderate_ckd":false,"moderate_severe_ischemic_stroke_6mo":false,"nondeferrable_major_surgery_dapt":false,"previous_spontaneous_ich":false,"recent_major_surgery_or_trauma_30d":false,"severe_or_esrd_ckd":false,"spontaneous_bleed_major":false,"spontaneous_bleed_minor":false,"thrombocytopenia_lt_100":false,"traumatic_ich_12mo":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/arc_hbr' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"active_malignancy_12mo":false,"age_ge_75":true,"anticipated_long_term_oac":false,"any_ischemic_stroke_not_major":false,"bavm":false,"chronic_bleeding_diathesis":false,"cirrhosis_with_portal_hypertension":false,"hemoglobin_lt_11":false,"long_term_nsaid_or_steroid":false,"mild_anemia":false,"moderate_ckd":false,"moderate_severe_ischemic_stroke_6mo":false,"nondeferrable_major_surgery_dapt":false,"previous_spontaneous_ich":false,"recent_major_surgery_or_trauma_30d":false,"severe_or_esrd_ckd":false,"spontaneous_bleed_major":false,"spontaneous_bleed_minor":false,"thrombocytopenia_lt_100":false,"traumatic_ich_12mo":false},{"active_malignancy_12mo":false,"age_ge_75":true,"anticipated_long_term_oac":false,"any_ischemic_stroke_not_major":false,"bavm":false,"chronic_bleeding_diathesis":false,"cirrhosis_with_portal_hypertension":false,"hemoglobin_lt_11":false,"long_term_nsaid_or_steroid":false,"mild_anemia":false,"moderate_ckd":false,"moderate_severe_ischemic_stroke_6mo":false,"nondeferrable_major_surgery_dapt":false,"previous_spontaneous_ich":false,"recent_major_surgery_or_trauma_30d":false,"severe_or_esrd_ckd":false,"spontaneous_bleed_major":false,"spontaneous_bleed_minor":false,"thrombocytopenia_lt_100":false,"traumatic_ich_12mo":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%2Farc_hbr&method=POST
const res = await pay("https://api.magentlab.com/api/calc/arc_hbr", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "active_malignancy_12mo": false,
        "age_ge_75": true,
        "anticipated_long_term_oac": false,
        "any_ischemic_stroke_not_major": false,
        "bavm": false,
        "chronic_bleeding_diathesis": false,
        "cirrhosis_with_portal_hypertension": false,
        "hemoglobin_lt_11": false,
        "long_term_nsaid_or_steroid": false,
        "mild_anemia": false,
        "moderate_ckd": false,
        "moderate_severe_ischemic_stroke_6mo": false,
        "nondeferrable_major_surgery_dapt": false,
        "previous_spontaneous_ich": false,
        "recent_major_surgery_or_trauma_30d": false,
        "severe_or_esrd_ckd": false,
        "spontaneous_bleed_major": false,
        "spontaneous_bleed_minor": false,
        "thrombocytopenia_lt_100": false,
        "traumatic_ich_12mo": false
      },
      {
        "active_malignancy_12mo": false,
        "age_ge_75": true,
        "anticipated_long_term_oac": false,
        "any_ischemic_stroke_not_major": false,
        "bavm": false,
        "chronic_bleeding_diathesis": false,
        "cirrhosis_with_portal_hypertension": false,
        "hemoglobin_lt_11": false,
        "long_term_nsaid_or_steroid": false,
        "mild_anemia": false,
        "moderate_ckd": false,
        "moderate_severe_ischemic_stroke_6mo": false,
        "nondeferrable_major_surgery_dapt": false,
        "previous_spontaneous_ich": false,
        "recent_major_surgery_or_trauma_30d": false,
        "severe_or_esrd_ckd": false,
        "spontaneous_bleed_major": false,
        "spontaneous_bleed_minor": false,
        "thrombocytopenia_lt_100": false,
        "traumatic_ich_12mo": 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/arc_hbr",
        json={
            "items": [
                {
                    "active_malignancy_12mo": False,
                    "age_ge_75": True,
                    "anticipated_long_term_oac": False,
                    "any_ischemic_stroke_not_major": False,
                    "bavm": False,
                    "chronic_bleeding_diathesis": False,
                    "cirrhosis_with_portal_hypertension": False,
                    "hemoglobin_lt_11": False,
                    "long_term_nsaid_or_steroid": False,
                    "mild_anemia": False,
                    "moderate_ckd": False,
                    "moderate_severe_ischemic_stroke_6mo": False,
                    "nondeferrable_major_surgery_dapt": False,
                    "previous_spontaneous_ich": False,
                    "recent_major_surgery_or_trauma_30d": False,
                    "severe_or_esrd_ckd": False,
                    "spontaneous_bleed_major": False,
                    "spontaneous_bleed_minor": False,
                    "thrombocytopenia_lt_100": False,
                    "traumatic_ich_12mo": False,
                },
                {
                    "active_malignancy_12mo": False,
                    "age_ge_75": True,
                    "anticipated_long_term_oac": False,
                    "any_ischemic_stroke_not_major": False,
                    "bavm": False,
                    "chronic_bleeding_diathesis": False,
                    "cirrhosis_with_portal_hypertension": False,
                    "hemoglobin_lt_11": False,
                    "long_term_nsaid_or_steroid": False,
                    "mild_anemia": False,
                    "moderate_ckd": False,
                    "moderate_severe_ischemic_stroke_6mo": False,
                    "nondeferrable_major_surgery_dapt": False,
                    "previous_spontaneous_ich": False,
                    "recent_major_surgery_or_trauma_30d": False,
                    "severe_or_esrd_ckd": False,
                    "spontaneous_bleed_major": False,
                    "spontaneous_bleed_minor": False,
                    "thrombocytopenia_lt_100": False,
                    "traumatic_ich_12mo": 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 h agoTimed out---
10 h agoTimed out---
15 h agoTimed out---
20 h agoPassed402260 ms$0.007
25 h agoPassed402150 ms$0.007
Show 10 older checks
29 h agoTimed out---
34 h agoPassed402356 ms$0.007
39 h agoPassed402148 ms$0.007
43 h agoPassed402350 ms$0.007
2 days agoPassed402157 ms$0.007
2 days agoPassed402337 ms$0.007
2 days agoPassed402179 ms$0.007
3 days agoPassed402377 ms$0.007
3 days agoPassed402169 ms$0.007
3 days agoPassed402181 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007