69trust / 100

Calc Orbi

by magent in Other

x402 APIFailing, checked 48 min ago

Auffret 2018 ORBI integer score for in-hospital cardiogenic shock after STEMI treated by primary PCI. Rounded adjusted-OR points (max 36) from age >70, prior stroke/TIA, cardiac arrest, anterior STEMI, FMC-to-PPCI >90 min, Killip I-III, heart rate >90, SBP <125 with pulse pressure <45, glucose >10 mmol/L, left-main culprit, and post-PPCI TIMI <3. Derivation-cohort class I-IV percents. Not a medical device, not a cath-lab or shock-treatment order, and not the ORBIT bleeding score.

POST
https://api.magentlab.com/api/calc/orbi
Price
$0.007
per call in USDC
Uptime
97.0%
last 30 days
Response time
167 ms
390 ms slowest 5%
Last check
Failed
48 min ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 48 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/orbi

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

{
  "items": [
    {
      "age_years": 60,
      "anterior_stemi": false,
      "cardiac_arrest_on_admission": false,
      "fmc_to_ppci_gt_90_min": false,
      "glucose_gt_10_mmol_l": false,
      "heart_rate": 70,
      "killip_class": "i",
      "left_main_culprit": false,
      "post_ppci_timi_lt_3": false,
      "prior_stroke_tia": false,
      "sbp_lt_125_and_pp_lt_45": false
    },
    {
      "age_years": 60,
      "anterior_stemi": false,
      "cardiac_arrest_on_admission": false,
      "fmc_to_ppci_gt_90_min": false,
      "glucose_gt_10_mmol_l": false,
      "heart_rate": 70,
      "killip_class": "i",
      "left_main_culprit": false,
      "post_ppci_timi_lt_3": false,
      "prior_stroke_tia": false,
      "sbp_lt_125_and_pp_lt_45": false
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

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

Example response, 166 lines
{
  "count": 2,
  "items": [
    {
      "age_years": 60,
      "citation": {
        "authors": "Auffret V, Cottin Y, Leurent G, et al.",
        "doi": "10.1093/eurheartj/ehy127",
        "id": "auffret-2018",
        "pmid": "29554243",
        "source": "Eur Heart J. 2018;39(22):2090-2102",
        "title": "Predicting the development of in-hospital cardiogenic shock in patients with ST-segment elevation myocardial infarction treated by primary percutaneous coronary intervention: the ORBI risk score"
      },
      "components": [
        {
          "factor": "age_years",
          "points": 0,
          "present": false,
          "value": 60
        },
        {
          "factor": "killip_class",
          "points": 0,
          "present": false,
          "value": "i"
        },
        {
          "factor": "heart_rate",
          "points": 0,
          "present": false,
          "value": 70
        },
        {
          "factor": "prior_stroke_tia",
          "points": 0,
          "present": false
        },
        {
          "factor": "cardiac_arrest_on_admission",
          "points": 0,
          "present": false
        },
        {
          "factor": "anterior_stemi",
          "points": 0,
          "present": false
        },
        {
          "factor": "fmc_to_ppci_gt_90_min",
          "points": 0,
          "present": false
        },
        {
          "factor": "sbp_lt_125_and_pp_lt_45",
          "points": 0,
          "present": false
        },
        {
          "factor": "glucose_gt_10_mmol_l",
          "points": 0,
          "present": false
        },
        {
          "factor": "left_main_culprit",
          "points": 0,
          "present": false
        },
        {
          "factor": "post_ppci_timi_lt_3",
          "points": 0,
          "present": 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": "orbi",
      "formula_expression": "ORBI = age_years>70 (2) + prior_stroke_tia (2) + cardiac_arrest_on_admission (3) + anterior_stemi (1) + fmc_to_ppci_gt_90_min (2) + killip_class (i:0, ii:2, iii:6; iv rejected) + heart_rate>90 (3) + sbp_lt_125_and_pp_lt_45 (4) + glucose_gt_10_mmol_l (3) + left_main_culprit (5) + post_ppci_timi_lt_3 (5); Auffret 2018 rounded adjusted ORs; max 36; derivation in-hospital CS class I 0-7 1.3%, II 8-10 6.6%, III 11-12 11.7%, IV >=13 31.8%",
      "heart_rate": 70,
      "in_hospital_cs_percent": 1.3,
      "killip_class": "i",
      "max_score": 36,
      "orbi_class": "I",
      "score": 0
    },
    {
      "age_years": 60,
      "citation": {
        "authors": "Auffret V, Cottin Y, Leurent G, et al.",
        "doi": "10.1093/eurheartj/ehy127",
        "id": "auffret-2018",
        "pmid": "29554243",
        "source": "Eur Heart J. 2018;39(22):2090-2102",
        "title": "Predicting the development of in-hospital cardiogenic shock in patients with ST-segment elevation myocardial infarction treated by primary percutaneous coronary intervention: the ORBI risk score"
      },
      "components": [
        {
          "factor": "age_years",
          "points": 0,
          "present": false,
          "value": 60
        },
        {
          "factor": "killip_class",
          "points": 0,
          "present": false,
          "value": "i"
        },
        {
          "factor": "heart_rate",
          "points": 0,
          "present": false,
          "value": 70
        },
        {
          "factor": "prior_stroke_tia",
          "points": 0,
          "present": false
        },
        {
          "factor": "cardiac_arrest_on_admission",
          "points": 0,
          "present": false
        },
        {
          "factor": "anterior_stemi",
          "points": 0,
          "present": false
        },
        {
          "factor": "fmc_to_ppci_gt_90_min",
          "points": 0,
          "present": false
        },
        {
          "factor": "sbp_lt_125_and_pp_lt_45",
          "points": 0,
          "present": false
        },
        {
          "factor": "glucose_gt_10_mmol_l",
          "points": 0,
          "present": false
        },
        {
          "factor": "left_main_culprit",
          "points": 0,
          "present": false
        },
        {
          "factor": "post_ppci_timi_lt_3",
          "points": 0,
          "present": 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": "orbi",
      "formula_expression": "ORBI = age_years>70 (2) + prior_stroke_tia (2) + cardiac_arrest_on_admission (3) + anterior_stemi (1) + fmc_to_ppci_gt_90_min (2) + killip_class (i:0, ii:2, iii:6; iv rejected) + heart_rate>90 (3) + sbp_lt_125_and_pp_lt_45 (4) + glucose_gt_10_mmol_l (3) + left_main_culprit (5) + post_ppci_timi_lt_3 (5); Auffret 2018 rounded adjusted ORs; max 36; derivation in-hospital CS class I 0-7 1.3%, II 8-10 6.6%, III 11-12 11.7%, IV >=13 31.8%",
      "heart_rate": 70,
      "in_hospital_cs_percent": 1.3,
      "killip_class": "i",
      "max_score": 36,
      "orbi_class": "I",
      "score": 0
    }
  ],
  "path": "/api/calc/orbi"
}

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/orbi' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age_years":60,"anterior_stemi":false,"cardiac_arrest_on_admission":false,"fmc_to_ppci_gt_90_min":false,"glucose_gt_10_mmol_l":false,"heart_rate":70,"killip_class":"i","left_main_culprit":false,"post_ppci_timi_lt_3":false,"prior_stroke_tia":false,"sbp_lt_125_and_pp_lt_45":false},{"age_years":60,"anterior_stemi":false,"cardiac_arrest_on_admission":false,"fmc_to_ppci_gt_90_min":false,"glucose_gt_10_mmol_l":false,"heart_rate":70,"killip_class":"i","left_main_culprit":false,"post_ppci_timi_lt_3":false,"prior_stroke_tia":false,"sbp_lt_125_and_pp_lt_45":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/orbi' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age_years":60,"anterior_stemi":false,"cardiac_arrest_on_admission":false,"fmc_to_ppci_gt_90_min":false,"glucose_gt_10_mmol_l":false,"heart_rate":70,"killip_class":"i","left_main_culprit":false,"post_ppci_timi_lt_3":false,"prior_stroke_tia":false,"sbp_lt_125_and_pp_lt_45":false},{"age_years":60,"anterior_stemi":false,"cardiac_arrest_on_admission":false,"fmc_to_ppci_gt_90_min":false,"glucose_gt_10_mmol_l":false,"heart_rate":70,"killip_class":"i","left_main_culprit":false,"post_ppci_timi_lt_3":false,"prior_stroke_tia":false,"sbp_lt_125_and_pp_lt_45":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%2Forbi&method=POST
const res = await pay("https://api.magentlab.com/api/calc/orbi", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "age_years": 60,
        "anterior_stemi": false,
        "cardiac_arrest_on_admission": false,
        "fmc_to_ppci_gt_90_min": false,
        "glucose_gt_10_mmol_l": false,
        "heart_rate": 70,
        "killip_class": "i",
        "left_main_culprit": false,
        "post_ppci_timi_lt_3": false,
        "prior_stroke_tia": false,
        "sbp_lt_125_and_pp_lt_45": false
      },
      {
        "age_years": 60,
        "anterior_stemi": false,
        "cardiac_arrest_on_admission": false,
        "fmc_to_ppci_gt_90_min": false,
        "glucose_gt_10_mmol_l": false,
        "heart_rate": 70,
        "killip_class": "i",
        "left_main_culprit": false,
        "post_ppci_timi_lt_3": false,
        "prior_stroke_tia": false,
        "sbp_lt_125_and_pp_lt_45": 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/orbi",
        json={
            "items": [
                {
                    "age_years": 60,
                    "anterior_stemi": False,
                    "cardiac_arrest_on_admission": False,
                    "fmc_to_ppci_gt_90_min": False,
                    "glucose_gt_10_mmol_l": False,
                    "heart_rate": 70,
                    "killip_class": "i",
                    "left_main_culprit": False,
                    "post_ppci_timi_lt_3": False,
                    "prior_stroke_tia": False,
                    "sbp_lt_125_and_pp_lt_45": False,
                },
                {
                    "age_years": 60,
                    "anterior_stemi": False,
                    "cardiac_arrest_on_admission": False,
                    "fmc_to_ppci_gt_90_min": False,
                    "glucose_gt_10_mmol_l": False,
                    "heart_rate": 70,
                    "killip_class": "i",
                    "left_main_culprit": False,
                    "post_ppci_timi_lt_3": False,
                    "prior_stroke_tia": False,
                    "sbp_lt_125_and_pp_lt_45": 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
48 min agoTimed out---
6 h agoPassed402166 ms$0.007
10 h agoPassed402144 ms$0.007
15 h agoPassed4021.6 s$0.007
20 h agoPassed402179 ms$0.007
Show 10 older checks
25 h agoPassed402141 ms$0.007
29 h agoPassed402295 ms$0.007
33 h agoPassed402288 ms$0.007
37 h agoPassed402240 ms$0.007
41 h agoPassed402171 ms$0.007
46 h agoPassed402154 ms$0.007
2 days agoPassed402379 ms$0.007
2 days agoPassed402163 ms$0.007
2 days agoPassed402266 ms$0.007
3 days agoPassed402169 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007