Calc Feverpain
by magent in Other
FeverPAIN from Little 2013 (PRISM): five caller-assigned flags (fever in past 24 hours, purulent tonsils, attendance within 3 days, severely inflamed tonsils, no cough or coryza), 1 point each, max 5. Returns published score groups 0-1 / 2-3 / 4-5. Deterministic published score with citation; not a medical device, not a test-or-treat order, and not a diagnosis of streptococcal pharyngitis. magent does not examine the throat.
https://api.magentlab.com/api/calc/feverpain- Price
- $0.007
- per call in USDC
- Uptime
- 91.4%
- last 30 days
- Response time
- 154 ms
- 404 ms slowest 5%
- Last check
- Failed
- 22 min ago, next in 42 min
Reliability
Latest check failed 22 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/feverpain
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/feverpain
content-type: application/json
{
"items": [
{
"attends_within_3_days": false,
"fever_in_past_24h": false,
"no_cough_or_coryza": false,
"purulent_tonsils": false,
"severely_inflamed_tonsils": false
},
{
"attends_within_3_days": false,
"fever_in_past_24h": false,
"no_cough_or_coryza": false,
"purulent_tonsils": false,
"severely_inflamed_tonsils": 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, 92 lines
{
"count": 2,
"items": [
{
"band": "0-1",
"citation": {
"authors": "Little P, Hobbs FDR, Moore M, et al.",
"doi": "10.1136/bmj.f5806",
"id": "little-2013",
"pmid": "24114306",
"source": "BMJ. 2013;347:f5806",
"title": "Clinical score and rapid antigen detection test to guide antibiotic use for sore throats: randomised controlled trial of PRISM (primary care streptococcal management)"
},
"components": [
{
"factor": "fever_in_past_24h",
"points": 0,
"present": false
},
{
"factor": "purulent_tonsils",
"points": 0,
"present": false
},
{
"factor": "attends_within_3_days",
"points": 0,
"present": false
},
{
"factor": "severely_inflamed_tonsils",
"points": 0,
"present": false
},
{
"factor": "no_cough_or_coryza",
"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": "feverpain",
"formula_expression": "FeverPAIN = fever_in_past_24h + purulent_tonsils + attends_within_3_days + severely_inflamed_tonsils + no_cough_or_coryza; each 1 if true; max 5",
"max_score": 5,
"score": 0
},
{
"band": "0-1",
"citation": {
"authors": "Little P, Hobbs FDR, Moore M, et al.",
"doi": "10.1136/bmj.f5806",
"id": "little-2013",
"pmid": "24114306",
"source": "BMJ. 2013;347:f5806",
"title": "Clinical score and rapid antigen detection test to guide antibiotic use for sore throats: randomised controlled trial of PRISM (primary care streptococcal management)"
},
"components": [
{
"factor": "fever_in_past_24h",
"points": 0,
"present": false
},
{
"factor": "purulent_tonsils",
"points": 0,
"present": false
},
{
"factor": "attends_within_3_days",
"points": 0,
"present": false
},
{
"factor": "severely_inflamed_tonsils",
"points": 0,
"present": false
},
{
"factor": "no_cough_or_coryza",
"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": "feverpain",
"formula_expression": "FeverPAIN = fever_in_past_24h + purulent_tonsils + attends_within_3_days + severely_inflamed_tonsils + no_cough_or_coryza; each 1 if true; max 5",
"max_score": 5,
"score": 0
}
],
"path": "/api/calc/feverpain"
}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/feverpain' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"attends_within_3_days":false,"fever_in_past_24h":false,"no_cough_or_coryza":false,"purulent_tonsils":false,"severely_inflamed_tonsils":false},{"attends_within_3_days":false,"fever_in_past_24h":false,"no_cough_or_coryza":false,"purulent_tonsils":false,"severely_inflamed_tonsils":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/feverpain' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"attends_within_3_days":false,"fever_in_past_24h":false,"no_cough_or_coryza":false,"purulent_tonsils":false,"severely_inflamed_tonsils":false},{"attends_within_3_days":false,"fever_in_past_24h":false,"no_cough_or_coryza":false,"purulent_tonsils":false,"severely_inflamed_tonsils":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%2Ffeverpain&method=POST
const res = await pay("https://api.magentlab.com/api/calc/feverpain", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"attends_within_3_days": false,
"fever_in_past_24h": false,
"no_cough_or_coryza": false,
"purulent_tonsils": false,
"severely_inflamed_tonsils": false
},
{
"attends_within_3_days": false,
"fever_in_past_24h": false,
"no_cough_or_coryza": false,
"purulent_tonsils": false,
"severely_inflamed_tonsils": 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/feverpain",
json={
"items": [
{
"attends_within_3_days": False,
"fever_in_past_24h": False,
"no_cough_or_coryza": False,
"purulent_tonsils": False,
"severely_inflamed_tonsils": False,
},
{
"attends_within_3_days": False,
"fever_in_past_24h": False,
"no_cough_or_coryza": False,
"purulent_tonsils": False,
"severely_inflamed_tonsils": 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 |
|---|---|---|---|---|
| 22 min ago | Timed out | - | - | - |
| 5 h ago | Timed out | - | - | - |
| 10 h ago | Timed out | - | - | - |
| 15 h ago | Passed | 402 | 336 ms | $0.007 |
| 20 h ago | Passed | 402 | 243 ms | $0.007 |
Show 10 older checks
| 24 h ago | Passed | 402 | 151 ms | $0.007 |
| 29 h ago | Passed | 402 | 136 ms | $0.007 |
| 34 h ago | Passed | 402 | 288 ms | $0.007 |
| 38 h ago | Passed | 402 | 208 ms | $0.007 |
| 42 h ago | Passed | 402 | 139 ms | $0.007 |
| 46 h ago | Passed | 402 | 156 ms | $0.007 |
| 2 days ago | Passed | 402 | 283 ms | $0.007 |
| 2 days ago | Passed | 402 | 152 ms | $0.007 |
| 2 days ago | Passed | 402 | 148 ms | $0.007 |
| 3 days ago | Passed | 402 | 154 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |