71trust / 100

Calc Reveal Pah

by magent in Other

x402 APIPassing, checked 1 h ago

Benza 2019 REVEAL 2.0: start at 6; add published points for etiology (CTD +1, PoPH +3, heritable +2), male >60, renal insufficiency, WHO FC, 6-month hospitalization, SBP <110, HR >96, 6MWD, BNP/NT-proBNP, pericardial effusion, DLCO <40%, mRAP >20, and PVR <5. Returns low (0-6), intermediate (7-8), or high (>=9) 12-month mortality. Caller-assigned; not a PAH diagnosis or dose. Not REVEAL 1.0 or Lite 2.

POST
https://api.magentlab.com/api/calc/reveal_pah
Price
$0.007
per call in USDC
Uptime
100%
last 30 days
Response time
174 ms
503 ms slowest 5%
Last check
Passed
1 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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

How to call it

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

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

{
  "items": [
    {
      "age": 40,
      "bnp_pg_ml": 40,
      "dlco_lt_40": false,
      "etiology": "other",
      "hospitalization_6mo": false,
      "hr_gt_96": false,
      "male": false,
      "mrap_gt_20": false,
      "nt_probnp_pg_ml": 200,
      "pericardial_effusion": false,
      "pvr_lt_5": true,
      "renal_insufficiency": false,
      "sbp_lt_110": false,
      "six_minute_walk_m": 480,
      "who_fc": 1
    },
    {
      "age": 40,
      "bnp_pg_ml": 40,
      "dlco_lt_40": false,
      "etiology": "other",
      "hospitalization_6mo": false,
      "hr_gt_96": false,
      "male": false,
      "mrap_gt_20": false,
      "nt_probnp_pg_ml": 200,
      "pericardial_effusion": false,
      "pvr_lt_5": true,
      "renal_insufficiency": false,
      "sbp_lt_110": false,
      "six_minute_walk_m": 480,
      "who_fc": 1
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

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

Example response, 220 lines
{
  "count": 2,
  "items": [
    {
      "age_years": 40,
      "bnp_pg_ml": 40,
      "citation": {
        "authors": "Benza RL, Gomberg-Maitland M, Elliott CG, et al.",
        "doi": "10.1016/j.chest.2018.11.030",
        "id": "benza-2019",
        "pmid": "30772387",
        "source": "Chest. 2019;156(2):323-337",
        "title": "Predicting Survival in Patients With Pulmonary Arterial Hypertension: The REVEAL Risk Score Calculator 2.0 and Comparison With ESC/ERS-Based Risk Assessment Strategies"
      },
      "components": [
        {
          "factor": "reveal_2_0_start",
          "points": 6,
          "present": true
        },
        {
          "factor": "etiology",
          "points": 0,
          "present": false,
          "value": "other"
        },
        {
          "factor": "male_gt_60",
          "points": 0,
          "present": false,
          "value": 40
        },
        {
          "factor": "renal_insufficiency",
          "points": 0,
          "present": false
        },
        {
          "factor": "who_fc",
          "points": -1,
          "present": true,
          "value": 1
        },
        {
          "factor": "hospitalization_6mo",
          "points": 0,
          "present": false
        },
        {
          "factor": "sbp_lt_110",
          "points": 0,
          "present": false
        },
        {
          "factor": "hr_gt_96",
          "points": 0,
          "present": false
        },
        {
          "factor": "six_minute_walk",
          "points": -2,
          "present": true,
          "value": 480
        },
        {
          "factor": "bnp_or_nt_probnp",
          "points": -2,
          "present": true,
          "value": 40
        },
        {
          "factor": "pericardial_effusion",
          "points": 0,
          "present": false
        },
        {
          "factor": "dlco_lt_40",
          "points": 0,
          "present": false
        },
        {
          "factor": "mrap_gt_20",
          "points": 0,
          "present": false
        },
        {
          "factor": "pvr_lt_5",
          "points": -1,
          "present": true
        }
      ],
      "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.",
      "dlco_lt_40": false,
      "etiology": "other",
      "formula": "reveal_pah",
      "formula_expression": "REVEAL 2.0 = 6 + etiology + male_gt_60 + renal_insufficiency + who_fc + hospitalization_6mo + sbp_lt_110 + hr_gt_96 + six_minute_walk + bnp_or_nt_probnp + pericardial_effusion + dlco_lt_40 + mrap_gt_20 + pvr_lt_5; etiology ctd +1, poph +3, heritable +2, other 0; male and age >60 +2; eGFR <60 or renal insufficiency +1; WHO FC I -1, II 0, III +1, IV +2; all-cause hospitalization in prior 6 months +1; SBP <110 mmHg +1; HR >96 bpm +1; 6MWD >=440 m -2, 320-<440 m -1, 165-<320 m 0, <165 m +1; BNP <50 or NT-proBNP <300 -2, BNP 50-<200 or NT-proBNP 300-<1100 0, BNP 200-<800 +1, BNP >=800 or NT-proBNP >=1100 +2; pericardial effusion +1; DLCO <40% predicted +1; mRAP >20 mmHg +1; PVR <5 WU -1; low 0-6, intermediate 7-8, high >=9 (12-month mortality); max 23",
      "hospitalization_6mo": false,
      "hr_gt_96": false,
      "male": false,
      "max_score": 23,
      "mrap_gt_20": false,
      "pericardial_effusion": false,
      "pvr_lt_5": true,
      "renal_insufficiency": false,
      "risk": "low",
      "sbp_lt_110": false,
      "score": 0,
      "six_minute_walk_m": 480,
      "who_fc": 1
    },
    {
      "age_years": 40,
      "bnp_pg_ml": 40,
      "citation": {
        "authors": "Benza RL, Gomberg-Maitland M, Elliott CG, et al.",
        "doi": "10.1016/j.chest.2018.11.030",
        "id": "benza-2019",
        "pmid": "30772387",
        "source": "Chest. 2019;156(2):323-337",
        "title": "Predicting Survival in Patients With Pulmonary Arterial Hypertension: The REVEAL Risk Score Calculator 2.0 and Comparison With ESC/ERS-Based Risk Assessment Strategies"
      },
      "components": [
        {
          "factor": "reveal_2_0_start",
          "points": 6,
          "present": true
        },
        {
          "factor": "etiology",
          "points": 0,
          "present": false,
          "value": "other"
        },
        {
          "factor": "male_gt_60",
          "points": 0,
          "present": false,
          "value": 40
        },
        {
          "factor": "renal_insufficiency",
          "points": 0,
          "present": false
        },
        {
          "factor": "who_fc",
          "points": -1,
          "present": true,
          "value": 1
        },
        {
          "factor": "hospitalization_6mo",
          "points": 0,
          "present": false
        },
        {
          "factor": "sbp_lt_110",
          "points": 0,
          "present": false
        },
        {
          "factor": "hr_gt_96",
          "points": 0,
          "present": false
        },
        {
          "factor": "six_minute_walk",
          "points": -2,
          "present": true,
          "value": 480
        },
        {
          "factor": "bnp_or_nt_probnp",
          "points": -2,
          "present": true,
          "value": 40
        },
        {
          "factor": "pericardial_effusion",
          "points": 0,
          "present": false
        },
        {
          "factor": "dlco_lt_40",
          "points": 0,
          "present": false
        },
        {
          "factor": "mrap_gt_20",
          "points": 0,
          "present": false
        },
        {
          "factor": "pvr_lt_5",
          "points": -1,
          "present": true
        }
      ],
      "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.",
      "dlco_lt_40": false,
      "etiology": "other",
      "formula": "reveal_pah",
      "formula_expression": "REVEAL 2.0 = 6 + etiology + male_gt_60 + renal_insufficiency + who_fc + hospitalization_6mo + sbp_lt_110 + hr_gt_96 + six_minute_walk + bnp_or_nt_probnp + pericardial_effusion + dlco_lt_40 + mrap_gt_20 + pvr_lt_5; etiology ctd +1, poph +3, heritable +2, other 0; male and age >60 +2; eGFR <60 or renal insufficiency +1; WHO FC I -1, II 0, III +1, IV +2; all-cause hospitalization in prior 6 months +1; SBP <110 mmHg +1; HR >96 bpm +1; 6MWD >=440 m -2, 320-<440 m -1, 165-<320 m 0, <165 m +1; BNP <50 or NT-proBNP <300 -2, BNP 50-<200 or NT-proBNP 300-<1100 0, BNP 200-<800 +1, BNP >=800 or NT-proBNP >=1100 +2; pericardial effusion +1; DLCO <40% predicted +1; mRAP >20 mmHg +1; PVR <5 WU -1; low 0-6, intermediate 7-8, high >=9 (12-month mortality); max 23",
      "hospitalization_6mo": false,
      "hr_gt_96": false,
      "male": false,
      "max_score": 23,
      "mrap_gt_20": false,
      "pericardial_effusion": false,
      "pvr_lt_5": true,
      "renal_insufficiency": false,
      "risk": "low",
      "sbp_lt_110": false,
      "score": 0,
      "six_minute_walk_m": 480,
      "who_fc": 1
    }
  ],
  "path": "/api/calc/reveal_pah"
}

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/reveal_pah' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":40,"bnp_pg_ml":40,"dlco_lt_40":false,"etiology":"other","hospitalization_6mo":false,"hr_gt_96":false,"male":false,"mrap_gt_20":false,"nt_probnp_pg_ml":200,"pericardial_effusion":false,"pvr_lt_5":true,"renal_insufficiency":false,"sbp_lt_110":false,"six_minute_walk_m":480,"who_fc":1},{"age":40,"bnp_pg_ml":40,"dlco_lt_40":false,"etiology":"other","hospitalization_6mo":false,"hr_gt_96":false,"male":false,"mrap_gt_20":false,"nt_probnp_pg_ml":200,"pericardial_effusion":false,"pvr_lt_5":true,"renal_insufficiency":false,"sbp_lt_110":false,"six_minute_walk_m":480,"who_fc":1}]}'

# 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/reveal_pah' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":40,"bnp_pg_ml":40,"dlco_lt_40":false,"etiology":"other","hospitalization_6mo":false,"hr_gt_96":false,"male":false,"mrap_gt_20":false,"nt_probnp_pg_ml":200,"pericardial_effusion":false,"pvr_lt_5":true,"renal_insufficiency":false,"sbp_lt_110":false,"six_minute_walk_m":480,"who_fc":1},{"age":40,"bnp_pg_ml":40,"dlco_lt_40":false,"etiology":"other","hospitalization_6mo":false,"hr_gt_96":false,"male":false,"mrap_gt_20":false,"nt_probnp_pg_ml":200,"pericardial_effusion":false,"pvr_lt_5":true,"renal_insufficiency":false,"sbp_lt_110":false,"six_minute_walk_m":480,"who_fc":1}]}' \
  | 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%2Freveal_pah&method=POST
const res = await pay("https://api.magentlab.com/api/calc/reveal_pah", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "age": 40,
        "bnp_pg_ml": 40,
        "dlco_lt_40": false,
        "etiology": "other",
        "hospitalization_6mo": false,
        "hr_gt_96": false,
        "male": false,
        "mrap_gt_20": false,
        "nt_probnp_pg_ml": 200,
        "pericardial_effusion": false,
        "pvr_lt_5": true,
        "renal_insufficiency": false,
        "sbp_lt_110": false,
        "six_minute_walk_m": 480,
        "who_fc": 1
      },
      {
        "age": 40,
        "bnp_pg_ml": 40,
        "dlco_lt_40": false,
        "etiology": "other",
        "hospitalization_6mo": false,
        "hr_gt_96": false,
        "male": false,
        "mrap_gt_20": false,
        "nt_probnp_pg_ml": 200,
        "pericardial_effusion": false,
        "pvr_lt_5": true,
        "renal_insufficiency": false,
        "sbp_lt_110": false,
        "six_minute_walk_m": 480,
        "who_fc": 1
      }
    ]
  }),
});
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/reveal_pah",
        json={
            "items": [
                {
                    "age": 40,
                    "bnp_pg_ml": 40,
                    "dlco_lt_40": False,
                    "etiology": "other",
                    "hospitalization_6mo": False,
                    "hr_gt_96": False,
                    "male": False,
                    "mrap_gt_20": False,
                    "nt_probnp_pg_ml": 200,
                    "pericardial_effusion": False,
                    "pvr_lt_5": True,
                    "renal_insufficiency": False,
                    "sbp_lt_110": False,
                    "six_minute_walk_m": 480,
                    "who_fc": 1,
                },
                {
                    "age": 40,
                    "bnp_pg_ml": 40,
                    "dlco_lt_40": False,
                    "etiology": "other",
                    "hospitalization_6mo": False,
                    "hr_gt_96": False,
                    "male": False,
                    "mrap_gt_20": False,
                    "nt_probnp_pg_ml": 200,
                    "pericardial_effusion": False,
                    "pvr_lt_5": True,
                    "renal_insufficiency": False,
                    "sbp_lt_110": False,
                    "six_minute_walk_m": 480,
                    "who_fc": 1,
                },
            ],
        },
    )
    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
1 h agoPassed402174 ms$0.007
6 h agoPassed402382 ms$0.007
11 h agoPassed402257 ms$0.007
15 h agoPassed402563 ms$0.007
20 h agoPassed402164 ms$0.007
Show 10 older checks
24 h agoPassed402171 ms$0.007
28 h agoPassed402143 ms$0.007
32 h agoPassed402326 ms$0.007
36 h agoPassed402148 ms$0.007
41 h agoPassed402175 ms$0.007
45 h agoPassed402183 ms$0.007
2 days agoPassed402151 ms$0.007
2 days agoPassed402157 ms$0.007
2 days agoPassed402147 ms$0.007
3 days agoPassed402228 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007