Calc Hep
by magent in Other
Cuker 2010 HEP score: eight features with signed weights (range -16 to 19). Magnitude of platelet fall, typical- or rapid-onset timing, nadir, thrombosis (at most one), SQ heparin skin necrosis, IV-bolus systemic reaction, bleeding, and other causes (select all; no other cause +3). Cutoff 2 was 100% sensitive / 60% specific vs the expert panel. Not a HIT diagnosis or 4Ts score. magent does not assay SRA or ELISA.
https://api.magentlab.com/api/calc/hep- Price
- $0.007
- per call in USDC
- Uptime
- 94.1%
- last 30 days
- Response time
- 169 ms
- 431 ms slowest 5%
- Last check
- Failed
- 3 h ago, next any minute now
Reliability
Latest check failed 3 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/hep
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/hep
content-type: application/json
{
"items": [
{
"bleeding": false,
"chronic_thrombocytopenia": false,
"cpb_96h": false,
"intra_arterial_device": false,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": false,
"no_other_cause": true,
"overt_dic": false,
"severe_infection": false,
"skin_necrosis": false,
"systemic_reaction": false,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10"
},
{
"bleeding": false,
"chronic_thrombocytopenia": false,
"cpb_96h": false,
"intra_arterial_device": false,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": false,
"no_other_cause": true,
"overt_dic": false,
"severe_infection": false,
"skin_necrosis": false,
"systemic_reaction": false,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10"
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 192 lines
{
"count": 2,
"items": [
{
"citation": {
"authors": "Cuker A, Arepally G, Crowther MA, Rice L, Datko F, Hook K, Propert KJ, Kuter DJ, Ortel TL, Konkle BA, Cines DB",
"doi": "10.1111/j.1538-7836.2010.04059.x",
"id": "cuker-2010",
"pmid": "20854372",
"source": "J Thromb Haemost. 2010;8(12):2642-2650",
"title": "The HIT Expert Probability (HEP) Score: a novel pre-test probability model for heparin-induced thrombocytopenia based on broad expert opinion"
},
"components": [
{
"factor": "magnitude",
"points": 3,
"present": true,
"value": "gt_50"
},
{
"factor": "timing",
"points": 3,
"present": true,
"value": "typical_5_10"
},
{
"factor": "nadir",
"points": 2,
"present": true,
"value": "gt_20"
},
{
"factor": "thrombosis",
"points": 3,
"present": true,
"value": "typical_new_ge_4d"
},
{
"factor": "skin_necrosis",
"points": 0,
"present": false
},
{
"factor": "systemic_reaction",
"points": 0,
"present": false
},
{
"factor": "bleeding",
"points": 0,
"present": false
},
{
"factor": "chronic_thrombocytopenia",
"points": 0,
"present": false
},
{
"factor": "new_drug_thrombocytopenia",
"points": 0,
"present": false
},
{
"factor": "severe_infection",
"points": 0,
"present": false
},
{
"factor": "overt_dic",
"points": 0,
"present": false
},
{
"factor": "intra_arterial_device",
"points": 0,
"present": false
},
{
"factor": "cpb_96h",
"points": 0,
"present": false
},
{
"factor": "no_other_cause",
"points": 3,
"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.",
"formula": "hep",
"formula_expression": "HEP = magnitude (lt_30 -1, 30_to_50 1, gt_50 3) + timing (typical_lt_4 -2, typical_day_4 2, typical_5_10 3, typical_11_14 2, typical_gt_14 -1; rapid_lt_48h 2, rapid_gt_48h -1) + nadir (le_20 -2, gt_20 2) + thrombosis select at most one (none 0; typical_new_ge_4d 3, typical_progression 2; rapid_new 3, rapid_progression 2) + skin_necrosis 3 + systemic_reaction 2 + bleeding -1 + other causes select all (chronic_thrombocytopenia -1, new_drug_thrombocytopenia -2, severe_infection -2, overt_dic -2, intra_arterial_device -2, cpb_96h -1, no_other_cause 3 mutually exclusive with other causes); Cuker 2010; range -16 to 19; cutoff 2 was 100% sensitive / 60% specific vs expert panel; cutoff 5 was 86% sensitive / 88% specific",
"max_score": 19,
"score": 14,
"score_ge_2": true,
"score_ge_5": true
},
{
"citation": {
"authors": "Cuker A, Arepally G, Crowther MA, Rice L, Datko F, Hook K, Propert KJ, Kuter DJ, Ortel TL, Konkle BA, Cines DB",
"doi": "10.1111/j.1538-7836.2010.04059.x",
"id": "cuker-2010",
"pmid": "20854372",
"source": "J Thromb Haemost. 2010;8(12):2642-2650",
"title": "The HIT Expert Probability (HEP) Score: a novel pre-test probability model for heparin-induced thrombocytopenia based on broad expert opinion"
},
"components": [
{
"factor": "magnitude",
"points": 3,
"present": true,
"value": "gt_50"
},
{
"factor": "timing",
"points": 3,
"present": true,
"value": "typical_5_10"
},
{
"factor": "nadir",
"points": 2,
"present": true,
"value": "gt_20"
},
{
"factor": "thrombosis",
"points": 3,
"present": true,
"value": "typical_new_ge_4d"
},
{
"factor": "skin_necrosis",
"points": 0,
"present": false
},
{
"factor": "systemic_reaction",
"points": 0,
"present": false
},
{
"factor": "bleeding",
"points": 0,
"present": false
},
{
"factor": "chronic_thrombocytopenia",
"points": 0,
"present": false
},
{
"factor": "new_drug_thrombocytopenia",
"points": 0,
"present": false
},
{
"factor": "severe_infection",
"points": 0,
"present": false
},
{
"factor": "overt_dic",
"points": 0,
"present": false
},
{
"factor": "intra_arterial_device",
"points": 0,
"present": false
},
{
"factor": "cpb_96h",
"points": 0,
"present": false
},
{
"factor": "no_other_cause",
"points": 3,
"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.",
"formula": "hep",
"formula_expression": "HEP = magnitude (lt_30 -1, 30_to_50 1, gt_50 3) + timing (typical_lt_4 -2, typical_day_4 2, typical_5_10 3, typical_11_14 2, typical_gt_14 -1; rapid_lt_48h 2, rapid_gt_48h -1) + nadir (le_20 -2, gt_20 2) + thrombosis select at most one (none 0; typical_new_ge_4d 3, typical_progression 2; rapid_new 3, rapid_progression 2) + skin_necrosis 3 + systemic_reaction 2 + bleeding -1 + other causes select all (chronic_thrombocytopenia -1, new_drug_thrombocytopenia -2, severe_infection -2, overt_dic -2, intra_arterial_device -2, cpb_96h -1, no_other_cause 3 mutually exclusive with other causes); Cuker 2010; range -16 to 19; cutoff 2 was 100% sensitive / 60% specific vs expert panel; cutoff 5 was 86% sensitive / 88% specific",
"max_score": 19,
"score": 14,
"score_ge_2": true,
"score_ge_5": true
}
],
"path": "/api/calc/hep"
}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/hep' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"bleeding":false,"chronic_thrombocytopenia":false,"cpb_96h":false,"intra_arterial_device":false,"magnitude":"gt_50","nadir":"gt_20","new_drug_thrombocytopenia":false,"no_other_cause":true,"overt_dic":false,"severe_infection":false,"skin_necrosis":false,"systemic_reaction":false,"thrombosis":"typical_new_ge_4d","timing":"typical_5_10"},{"bleeding":false,"chronic_thrombocytopenia":false,"cpb_96h":false,"intra_arterial_device":false,"magnitude":"gt_50","nadir":"gt_20","new_drug_thrombocytopenia":false,"no_other_cause":true,"overt_dic":false,"severe_infection":false,"skin_necrosis":false,"systemic_reaction":false,"thrombosis":"typical_new_ge_4d","timing":"typical_5_10"}]}'
# 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/hep' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"bleeding":false,"chronic_thrombocytopenia":false,"cpb_96h":false,"intra_arterial_device":false,"magnitude":"gt_50","nadir":"gt_20","new_drug_thrombocytopenia":false,"no_other_cause":true,"overt_dic":false,"severe_infection":false,"skin_necrosis":false,"systemic_reaction":false,"thrombosis":"typical_new_ge_4d","timing":"typical_5_10"},{"bleeding":false,"chronic_thrombocytopenia":false,"cpb_96h":false,"intra_arterial_device":false,"magnitude":"gt_50","nadir":"gt_20","new_drug_thrombocytopenia":false,"no_other_cause":true,"overt_dic":false,"severe_infection":false,"skin_necrosis":false,"systemic_reaction":false,"thrombosis":"typical_new_ge_4d","timing":"typical_5_10"}]}' \
| 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%2Fhep&method=POST
const res = await pay("https://api.magentlab.com/api/calc/hep", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"bleeding": false,
"chronic_thrombocytopenia": false,
"cpb_96h": false,
"intra_arterial_device": false,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": false,
"no_other_cause": true,
"overt_dic": false,
"severe_infection": false,
"skin_necrosis": false,
"systemic_reaction": false,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10"
},
{
"bleeding": false,
"chronic_thrombocytopenia": false,
"cpb_96h": false,
"intra_arterial_device": false,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": false,
"no_other_cause": true,
"overt_dic": false,
"severe_infection": false,
"skin_necrosis": false,
"systemic_reaction": false,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10"
}
]
}),
});
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/hep",
json={
"items": [
{
"bleeding": False,
"chronic_thrombocytopenia": False,
"cpb_96h": False,
"intra_arterial_device": False,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": False,
"no_other_cause": True,
"overt_dic": False,
"severe_infection": False,
"skin_necrosis": False,
"systemic_reaction": False,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10",
},
{
"bleeding": False,
"chronic_thrombocytopenia": False,
"cpb_96h": False,
"intra_arterial_device": False,
"magnitude": "gt_50",
"nadir": "gt_20",
"new_drug_thrombocytopenia": False,
"no_other_cause": True,
"overt_dic": False,
"severe_infection": False,
"skin_necrosis": False,
"systemic_reaction": False,
"thrombosis": "typical_new_ge_4d",
"timing": "typical_5_10",
},
],
},
)
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 |
|---|---|---|---|---|
| 3 h ago | Timed out | - | - | - |
| 8 h ago | Timed out | - | - | - |
| 13 h ago | Passed | 402 | 164 ms | $0.007 |
| 18 h ago | Passed | 402 | 141 ms | $0.007 |
| 23 h ago | Passed | 402 | 227 ms | $0.007 |
Show 10 older checks
| 27 h ago | Passed | 402 | 282 ms | $0.007 |
| 32 h ago | Passed | 402 | 164 ms | $0.007 |
| 36 h ago | Passed | 402 | 153 ms | $0.007 |
| 40 h ago | Passed | 402 | 172 ms | $0.007 |
| 44 h ago | Passed | 402 | 176 ms | $0.007 |
| 2 days ago | Passed | 402 | 305 ms | $0.007 |
| 2 days ago | Passed | 402 | 194 ms | $0.007 |
| 2 days ago | Passed | 402 | 165 ms | $0.007 |
| 3 days ago | Passed | 402 | 223 ms | $0.007 |
| 3 days ago | Passed | 402 | 158 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |