Calc Go Far
by magent in Other
Ebell 2013 GO-FAR integer score for CPC 1 after in-hospital CPR. Exclusive age (<70=0, 70-74=2, 75-79=5, 80-84=6, >=85=11) plus 12 caller-assigned flags (intact CPC 1 at admission -15; trauma 10; stroke 8; cancer 7; septicemia 7; medical noncardiac 7; hepatic 6; SNF 6; hypotension 5; renal 4; respiratory 4; pneumonia 1). Range -15 to 76. Bands: >=24 very_low, 14-23 low, -5 to 13 average, <=-6 above_average. Not GO-FAR 2. Not a DNAR order.
https://api.magentlab.com/api/calc/go_far- Price
- $0.007
- per call in USDC
- Uptime
- 94.1%
- last 30 days
- Response time
- 172 ms
- 560 ms slowest 5%
- Last check
- Failed
- 4 h ago, next any minute now
Reliability
Latest check failed 4 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/go_far
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/go_far
content-type: application/json
{
"items": [
{
"acute_stroke": false,
"admit_from_skilled_nursing": false,
"age": 60,
"hepatic_insufficiency": false,
"hypotension_or_hypoperfusion": false,
"major_trauma": false,
"medical_noncardiac_diagnosis": false,
"metastatic_or_hematologic_cancer": false,
"neurologically_intact_or_minimal_deficits": false,
"pneumonia": false,
"renal_insufficiency_or_dialysis": false,
"respiratory_insufficiency": false,
"septicemia": false
},
{
"acute_stroke": false,
"admit_from_skilled_nursing": false,
"age": 60,
"hepatic_insufficiency": false,
"hypotension_or_hypoperfusion": false,
"major_trauma": false,
"medical_noncardiac_diagnosis": false,
"metastatic_or_hematologic_cancer": false,
"neurologically_intact_or_minimal_deficits": false,
"pneumonia": false,
"renal_insufficiency_or_dialysis": false,
"respiratory_insufficiency": false,
"septicemia": false
}
]
}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, 176 lines
{
"count": 2,
"items": [
{
"age_years": 60,
"citation": {
"authors": "Ebell MH, Jang W, Shen Y, Geocadin RG, et al",
"doi": "10.1001/jamainternmed.2013.10037",
"id": "ebell-2013",
"pmid": "24018585",
"source": "JAMA Intern Med. 2013;173(20):1872-1878",
"title": "Development and Validation of the Good Outcome Following Attempted Resuscitation (GO-FAR) Score to Predict Neurologically Intact Survival After In-Hospital Cardiopulmonary Resuscitation"
},
"components": [
{
"factor": "age",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "neurologically_intact_or_minimal_deficits",
"points": 0,
"present": false
},
{
"factor": "major_trauma",
"points": 0,
"present": false
},
{
"factor": "acute_stroke",
"points": 0,
"present": false
},
{
"factor": "metastatic_or_hematologic_cancer",
"points": 0,
"present": false
},
{
"factor": "septicemia",
"points": 0,
"present": false
},
{
"factor": "medical_noncardiac_diagnosis",
"points": 0,
"present": false
},
{
"factor": "hepatic_insufficiency",
"points": 0,
"present": false
},
{
"factor": "admit_from_skilled_nursing",
"points": 0,
"present": false
},
{
"factor": "hypotension_or_hypoperfusion",
"points": 0,
"present": false
},
{
"factor": "renal_insufficiency_or_dialysis",
"points": 0,
"present": false
},
{
"factor": "respiratory_insufficiency",
"points": 0,
"present": false
},
{
"factor": "pneumonia",
"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": "go_far",
"formula_expression": "GO-FAR = exclusive age (<70: 0, 70-74: 2, 75-79: 5, 80-84: 6, >=85: 11) + Table 3 flags (neurologically intact -15, major trauma 10, acute stroke 8, metastatic or hematologic cancer 7, septicemia 7, medical noncardiac 7, hepatic insufficiency 6, admit from SNF 6, hypotension or hypoperfusion 5, renal insufficiency or dialysis 4, respiratory insufficiency 4, pneumonia 1); range -15 to 76; >=24 very_low, 14-23 low, -5 to 13 average, <=-6 above_average (Ebell 2013)",
"max_score": 76,
"risk_band": "average",
"score": 0
},
{
"age_years": 60,
"citation": {
"authors": "Ebell MH, Jang W, Shen Y, Geocadin RG, et al",
"doi": "10.1001/jamainternmed.2013.10037",
"id": "ebell-2013",
"pmid": "24018585",
"source": "JAMA Intern Med. 2013;173(20):1872-1878",
"title": "Development and Validation of the Good Outcome Following Attempted Resuscitation (GO-FAR) Score to Predict Neurologically Intact Survival After In-Hospital Cardiopulmonary Resuscitation"
},
"components": [
{
"factor": "age",
"points": 0,
"present": false,
"value": 60
},
{
"factor": "neurologically_intact_or_minimal_deficits",
"points": 0,
"present": false
},
{
"factor": "major_trauma",
"points": 0,
"present": false
},
{
"factor": "acute_stroke",
"points": 0,
"present": false
},
{
"factor": "metastatic_or_hematologic_cancer",
"points": 0,
"present": false
},
{
"factor": "septicemia",
"points": 0,
"present": false
},
{
"factor": "medical_noncardiac_diagnosis",
"points": 0,
"present": false
},
{
"factor": "hepatic_insufficiency",
"points": 0,
"present": false
},
{
"factor": "admit_from_skilled_nursing",
"points": 0,
"present": false
},
{
"factor": "hypotension_or_hypoperfusion",
"points": 0,
"present": false
},
{
"factor": "renal_insufficiency_or_dialysis",
"points": 0,
"present": false
},
{
"factor": "respiratory_insufficiency",
"points": 0,
"present": false
},
{
"factor": "pneumonia",
"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": "go_far",
"formula_expression": "GO-FAR = exclusive age (<70: 0, 70-74: 2, 75-79: 5, 80-84: 6, >=85: 11) + Table 3 flags (neurologically intact -15, major trauma 10, acute stroke 8, metastatic or hematologic cancer 7, septicemia 7, medical noncardiac 7, hepatic insufficiency 6, admit from SNF 6, hypotension or hypoperfusion 5, renal insufficiency or dialysis 4, respiratory insufficiency 4, pneumonia 1); range -15 to 76; >=24 very_low, 14-23 low, -5 to 13 average, <=-6 above_average (Ebell 2013)",
"max_score": 76,
"risk_band": "average",
"score": 0
}
],
"path": "/api/calc/go_far"
}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/go_far' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"acute_stroke":false,"admit_from_skilled_nursing":false,"age":60,"hepatic_insufficiency":false,"hypotension_or_hypoperfusion":false,"major_trauma":false,"medical_noncardiac_diagnosis":false,"metastatic_or_hematologic_cancer":false,"neurologically_intact_or_minimal_deficits":false,"pneumonia":false,"renal_insufficiency_or_dialysis":false,"respiratory_insufficiency":false,"septicemia":false},{"acute_stroke":false,"admit_from_skilled_nursing":false,"age":60,"hepatic_insufficiency":false,"hypotension_or_hypoperfusion":false,"major_trauma":false,"medical_noncardiac_diagnosis":false,"metastatic_or_hematologic_cancer":false,"neurologically_intact_or_minimal_deficits":false,"pneumonia":false,"renal_insufficiency_or_dialysis":false,"respiratory_insufficiency":false,"septicemia":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/go_far' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"acute_stroke":false,"admit_from_skilled_nursing":false,"age":60,"hepatic_insufficiency":false,"hypotension_or_hypoperfusion":false,"major_trauma":false,"medical_noncardiac_diagnosis":false,"metastatic_or_hematologic_cancer":false,"neurologically_intact_or_minimal_deficits":false,"pneumonia":false,"renal_insufficiency_or_dialysis":false,"respiratory_insufficiency":false,"septicemia":false},{"acute_stroke":false,"admit_from_skilled_nursing":false,"age":60,"hepatic_insufficiency":false,"hypotension_or_hypoperfusion":false,"major_trauma":false,"medical_noncardiac_diagnosis":false,"metastatic_or_hematologic_cancer":false,"neurologically_intact_or_minimal_deficits":false,"pneumonia":false,"renal_insufficiency_or_dialysis":false,"respiratory_insufficiency":false,"septicemia":false}]}' \
| 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%2Fgo_far&method=POST
const res = await pay("https://api.magentlab.com/api/calc/go_far", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"acute_stroke": false,
"admit_from_skilled_nursing": false,
"age": 60,
"hepatic_insufficiency": false,
"hypotension_or_hypoperfusion": false,
"major_trauma": false,
"medical_noncardiac_diagnosis": false,
"metastatic_or_hematologic_cancer": false,
"neurologically_intact_or_minimal_deficits": false,
"pneumonia": false,
"renal_insufficiency_or_dialysis": false,
"respiratory_insufficiency": false,
"septicemia": false
},
{
"acute_stroke": false,
"admit_from_skilled_nursing": false,
"age": 60,
"hepatic_insufficiency": false,
"hypotension_or_hypoperfusion": false,
"major_trauma": false,
"medical_noncardiac_diagnosis": false,
"metastatic_or_hematologic_cancer": false,
"neurologically_intact_or_minimal_deficits": false,
"pneumonia": false,
"renal_insufficiency_or_dialysis": false,
"respiratory_insufficiency": false,
"septicemia": 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/go_far",
json={
"items": [
{
"acute_stroke": False,
"admit_from_skilled_nursing": False,
"age": 60,
"hepatic_insufficiency": False,
"hypotension_or_hypoperfusion": False,
"major_trauma": False,
"medical_noncardiac_diagnosis": False,
"metastatic_or_hematologic_cancer": False,
"neurologically_intact_or_minimal_deficits": False,
"pneumonia": False,
"renal_insufficiency_or_dialysis": False,
"respiratory_insufficiency": False,
"septicemia": False,
},
{
"acute_stroke": False,
"admit_from_skilled_nursing": False,
"age": 60,
"hepatic_insufficiency": False,
"hypotension_or_hypoperfusion": False,
"major_trauma": False,
"medical_noncardiac_diagnosis": False,
"metastatic_or_hematologic_cancer": False,
"neurologically_intact_or_minimal_deficits": False,
"pneumonia": False,
"renal_insufficiency_or_dialysis": False,
"respiratory_insufficiency": False,
"septicemia": 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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Timed out | - | - | - |
| 9 h ago | Timed out | - | - | - |
| 14 h ago | Passed | 402 | 315 ms | $0.007 |
| 18 h ago | Passed | 402 | 145 ms | $0.007 |
| 23 h ago | Passed | 402 | 310 ms | $0.007 |
Show 10 older checks
| 28 h ago | Passed | 402 | 186 ms | $0.007 |
| 32 h ago | Passed | 402 | 349 ms | $0.007 |
| 37 h ago | Passed | 402 | 172 ms | $0.007 |
| 41 h ago | Passed | 402 | 148 ms | $0.007 |
| 45 h ago | Passed | 402 | 139 ms | $0.007 |
| 2 days ago | Passed | 402 | 320 ms | $0.007 |
| 2 days ago | Passed | 402 | 145 ms | $0.007 |
| 2 days ago | Passed | 402 | 160 ms | $0.007 |
| 3 days ago | Passed | 402 | 381 ms | $0.007 |
| 3 days ago | Passed | 402 | 156 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |