70trust / 100

Calc Air

by magent in News & content

x402 APIPassing, checked 20 min ago

Andersson 2008 appendicitis inflammatory response (AIR) score from caller-assigned vomiting, right-iliac-fossa pain, rebound or guarding (none/light/medium/strong), temperature, WBC, neutrophil percent, and CRP in mg/L (max 12). Bands 0-4, 5-8, and 9-12. Deterministic published score with citation; not a diagnosis or operating-room protocol. magent does not examine the abdomen.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
163 ms typical, 603 ms slowest 5%
Last check
20 min ago
Next check
in 12 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/air" \
  -H "content-type: application/json" \
  -d '{"items":[{"crp_mg_l":5,"neutrophil_percent":60,"rebound_or_guarding":"none","rif_pain":false,"temperature_c":37,"vomiting":false,"wbc_k_ul":8,"wbc_ul":8000},{"crp_mg_l":5,"neutrophil_percent":60,"rebound_or_guarding":"none","rif_pain":false,"temperature_c":37,"vomiting":false,"wbc_k_ul":8,"wbc_ul":8000}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fair
const res = await pay("https://api.magentlab.com/api/calc/air", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"items":[{"crp_mg_l":5,"neutrophil_percent":60,"rebound_or_guarding":"none","rif_pain":false,"temperature_c":37,"vomiting":false,"wbc_k_ul":8,"wbc_ul":8000},{"crp_mg_l":5,"neutrophil_percent":60,"rebound_or_guarding":"none","rif_pain":false,"temperature_c":37,"vomiting":false,"wbc_k_ul":8,"wbc_ul":8000}]}),
});
console.log(await res.json());

Example input

{
  "items": [
    {
      "crp_mg_l": 5,
      "neutrophil_percent": 60,
      "rebound_or_guarding": "none",
      "rif_pain": false,
      "temperature_c": 37,
      "vomiting": false,
      "wbc_k_ul": 8,
      "wbc_ul": 8000
    },
    {
      "crp_mg_l": 5,
      "neutrophil_percent": 60,
      "rebound_or_guarding": "none",
      "rif_pain": false,
      "temperature_c": 37,
      "vomiting": false,
      "wbc_k_ul": 8,
      "wbc_ul": 8000
    }
  ]
}

Example output

{
  "count": 2,
  "items": [
    {
      "air_band": "0-4",
      "citation": {
        "authors": "Andersson M, Andersson RE",
        "doi": "10.1007/s00268-008-9649-y",
        "id": "andersson-2008",
        "pmid": "18553045",
        "source": "World J Surg. 2008;32(8):1843-1849",
        "title": "The appendicitis inflammatory response score: a tool for the diagnosis of acute appendicitis that outperforms the Alvarado score"
      },
      "components": [
        {
          "factor": "vomiting",
          "points": 0,
          "present": false
        },
        {
          "factor": "rif_pain",
          "points": 0,
          "present": false
        },
        {
          "factor": "rebound_or_guarding",
          "points": 0,
          "present": false,
          "value": "none"
        },
        {
          "factor": "temperature_c",
          "points": 0,
          "present": false,
          "value": 37
        },
        {
          "factor": "wbc",
          "points": 0,
          "present": false,
          "value": 8000
        },
        {
          "factor": "neutrophil_percent",
          "points": 0,
          "present": false,
          "value": 60
        },
        {
          "factor": "crp_mg_l",
          "points": 0,
          "present": false,
          "value": 5
        }
      ],
      "crp_mg_l": 5,
      "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": "air",
      "formula_expression": "AIR = vomiting + rif_pain + rebound_or_guarding (none 0, light 1, medium 2, strong 3) + (temperature_c >= 38.5) + WBC 10^9/L (<10 → 0; 10.0–14.9 → 1; ≥15.0 → 2) + neutrophil_percent (<70 → 0; 70–84 → 1; ≥85 → 2) + crp_mg_l (<10 → 0; 10–49 → 1; ≥50 → 2); max 12; bands 0-4 / 5-8 / 9-12",
      "max_score": 12,
      "neutrophil_percent": 60,
      "rebound_or_guarding": "none",
      "rif_pain": false,
      "score": 0,
      "temperature_c": 37,
      "vomiting": false,
      "wbc_10e9_l": 8,
      "wbc_ul": 8000
    },
    {
      "air_band": "0-4",
      "citation": {
        "authors": "Andersson M, Andersson RE",
        "doi": "10.1007/s00268-008-9649-y",
        "id": "andersson-2008",
        "pmid": "18553045",
        "source": "World J Surg. 2008;32(8):1843-1849",
        "title": "The appendicitis inflammatory response score: a tool for the diagnosis of acute appendicitis that outperforms the Alvarado score"
      },
      "components": [
        {
          "factor": "vomiting",
          "points": 0,
          "present": false
        },
        {
          "factor": "rif_pain",
          "points": 0,
          "present": false
        },
        {
          "factor": "rebound_or_guarding",
          "points": 0,
          "present": false,
          "value": "none"
        },
        {
          "factor": "temperature_c",
          "points": 0,
 

Security scan

  • Charges more than its listed price in payment
    Listed at $0.005, charges $0.007

Recent checks

WhenResultHTTPTimePrice
20 min agoPassed402163 ms$0.007
4 h agoPassed402149 ms$0.007
7 h agoPassed402153 ms$0.007
11 h agoPassed402301 ms$0.007
20 h agoPassed402225 ms$0.007
23 h agoPassed402157 ms$0.007
27 h agoPassed402218 ms$0.007
30 h agoPassed402163 ms$0.007
34 h agoPassed402146 ms$0.007
38 h agoPassed4021.4 s$0.007
41 h agoPassed402261 ms$0.007
47 h agoPassed402603 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007