71trust / 100

Calc Ripasa

by magent in Other

x402 APIPassing, checked 2 h ago

Chong 2010 RIPASA score from 15 caller-assigned findings (half-points; max 16). Age <40 scores 1.0, ≥40 scores 0.5; male 1.0, female 0.5; symptoms <48h 1.0, otherwise 0.5. Guarding and Rovsing 2.0 each. Fever, raised WCC, and foreign NRIC are caller-assigned; magent does not apply a °C or WBC cutoff. Derivation ROC: <7.5 below_cutoff, ≥7.5 at_or_above_cutoff. Not a diagnosis or operating-room protocol. magent does not examine the abdomen.

POST
https://api.magentlab.com/api/calc/ripasa
Price
$0.007
per call in USDC
Uptime
100%
last 30 days
Response time
167 ms
1.1 s slowest 5%
Last check
Passed
2 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/ripasa

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

{
  "items": [
    {
      "age": 50,
      "anorexia": false,
      "fever": false,
      "foreign_nric": false,
      "guarding": false,
      "migration_to_rif": false,
      "nausea_vomiting": false,
      "negative_urinalysis": false,
      "raised_wcc": false,
      "rebound_tenderness": false,
      "rif_pain": false,
      "rif_tenderness": false,
      "rovsing_sign": false,
      "sex": "female",
      "symptoms_lt_48h": false
    },
    {
      "age": 50,
      "anorexia": false,
      "fever": false,
      "foreign_nric": false,
      "guarding": false,
      "migration_to_rif": false,
      "nausea_vomiting": false,
      "negative_urinalysis": false,
      "raised_wcc": false,
      "rebound_tenderness": false,
      "rif_pain": false,
      "rif_tenderness": false,
      "rovsing_sign": false,
      "sex": "female",
      "symptoms_lt_48h": false
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

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

Example response, 200 lines
{
  "count": 2,
  "items": [
    {
      "age": 50,
      "citation": {
        "authors": "Chong CF, Adi MIW, Thien A, Suyoi A, Mackie AJ, Tin AS, Tripathi S, Jaman NH, Tan KK, Kok KY, Mathew VV, Paw O, Chua HB, Yapp SK",
        "id": "chong-2010",
        "pmid": "20428744",
        "source": "Singapore Med J. 2010;51(3):220-225",
        "title": "Development of the RIPASA score: a new appendicitis scoring system for the diagnosis of acute appendicitis"
      },
      "components": [
        {
          "factor": "age",
          "points": 0.5,
          "present": true,
          "value": 50
        },
        {
          "factor": "sex",
          "points": 0.5,
          "present": true,
          "value": "female"
        },
        {
          "factor": "rif_pain",
          "points": 0,
          "present": false
        },
        {
          "factor": "migration_to_rif",
          "points": 0,
          "present": false
        },
        {
          "factor": "nausea_vomiting",
          "points": 0,
          "present": false
        },
        {
          "factor": "anorexia",
          "points": 0,
          "present": false
        },
        {
          "factor": "symptoms_lt_48h",
          "points": 0.5,
          "present": true,
          "value": false
        },
        {
          "factor": "rif_tenderness",
          "points": 0,
          "present": false
        },
        {
          "factor": "guarding",
          "points": 0,
          "present": false
        },
        {
          "factor": "rebound_tenderness",
          "points": 0,
          "present": false
        },
        {
          "factor": "rovsing_sign",
          "points": 0,
          "present": false
        },
        {
          "factor": "fever",
          "points": 0,
          "present": false
        },
        {
          "factor": "raised_wcc",
          "points": 0,
          "present": false
        },
        {
          "factor": "negative_urinalysis",
          "points": 0,
          "present": false
        },
        {
          "factor": "foreign_nric",
          "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": "ripasa",
      "formula_expression": "RIPASA = (age<40 → 1.0; age≥40 → 0.5) + (male 1.0; female 0.5) + 0.5*rif_pain + 0.5*migration_to_rif + nausea_vomiting + anorexia + (symptoms_lt_48h 1.0; else 0.5) + rif_tenderness + 2*guarding + rebound_tenderness + 2*rovsing_sign + fever + raised_wcc + negative_urinalysis + foreign_nric; Chong 2010; max 16; <7.5 below_cutoff, ≥7.5 at_or_above_cutoff",
      "max_score": 16,
      "ripasa_band": "below_cutoff",
      "score": 1.5,
      "sex": "female"
    },
    {
      "age": 50,
      "citation": {
        "authors": "Chong CF, Adi MIW, Thien A, Suyoi A, Mackie AJ, Tin AS, Tripathi S, Jaman NH, Tan KK, Kok KY, Mathew VV, Paw O, Chua HB, Yapp SK",
        "id": "chong-2010",
        "pmid": "20428744",
        "source": "Singapore Med J. 2010;51(3):220-225",
        "title": "Development of the RIPASA score: a new appendicitis scoring system for the diagnosis of acute appendicitis"
      },
      "components": [
        {
          "factor": "age",
          "points": 0.5,
          "present": true,
          "value": 50
        },
        {
          "factor": "sex",
          "points": 0.5,
          "present": true,
          "value": "female"
        },
        {
          "factor": "rif_pain",
          "points": 0,
          "present": false
        },
        {
          "factor": "migration_to_rif",
          "points": 0,
          "present": false
        },
        {
          "factor": "nausea_vomiting",
          "points": 0,
          "present": false
        },
        {
          "factor": "anorexia",
          "points": 0,
          "present": false
        },
        {
          "factor": "symptoms_lt_48h",
          "points": 0.5,
          "present": true,
          "value": false
        },
        {
          "factor": "rif_tenderness",
          "points": 0,
          "present": false
        },
        {
          "factor": "guarding",
          "points": 0,
          "present": false
        },
        {
          "factor": "rebound_tenderness",
          "points": 0,
          "present": false
        },
        {
          "factor": "rovsing_sign",
          "points": 0,
          "present": false
        },
        {
          "factor": "fever",
          "points": 0,
          "present": false
        },
        {
          "factor": "raised_wcc",
          "points": 0,
          "present": false
        },
        {
          "factor": "negative_urinalysis",
          "points": 0,
          "present": false
        },
        {
          "factor": "foreign_nric",
          "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": "ripasa",
      "formula_expression": "RIPASA = (age<40 → 1.0; age≥40 → 0.5) + (male 1.0; female 0.5) + 0.5*rif_pain + 0.5*migration_to_rif + nausea_vomiting + anorexia + (symptoms_lt_48h 1.0; else 0.5) + rif_tenderness + 2*guarding + rebound_tenderness + 2*rovsing_sign + fever + raised_wcc + negative_urinalysis + foreign_nric; Chong 2010; max 16; <7.5 below_cutoff, ≥7.5 at_or_above_cutoff",
      "max_score": 16,
      "ripasa_band": "below_cutoff",
      "score": 1.5,
      "sex": "female"
    }
  ],
  "path": "/api/calc/ripasa"
}

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/ripasa' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":50,"anorexia":false,"fever":false,"foreign_nric":false,"guarding":false,"migration_to_rif":false,"nausea_vomiting":false,"negative_urinalysis":false,"raised_wcc":false,"rebound_tenderness":false,"rif_pain":false,"rif_tenderness":false,"rovsing_sign":false,"sex":"female","symptoms_lt_48h":false},{"age":50,"anorexia":false,"fever":false,"foreign_nric":false,"guarding":false,"migration_to_rif":false,"nausea_vomiting":false,"negative_urinalysis":false,"raised_wcc":false,"rebound_tenderness":false,"rif_pain":false,"rif_tenderness":false,"rovsing_sign":false,"sex":"female","symptoms_lt_48h":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/ripasa' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":50,"anorexia":false,"fever":false,"foreign_nric":false,"guarding":false,"migration_to_rif":false,"nausea_vomiting":false,"negative_urinalysis":false,"raised_wcc":false,"rebound_tenderness":false,"rif_pain":false,"rif_tenderness":false,"rovsing_sign":false,"sex":"female","symptoms_lt_48h":false},{"age":50,"anorexia":false,"fever":false,"foreign_nric":false,"guarding":false,"migration_to_rif":false,"nausea_vomiting":false,"negative_urinalysis":false,"raised_wcc":false,"rebound_tenderness":false,"rif_pain":false,"rif_tenderness":false,"rovsing_sign":false,"sex":"female","symptoms_lt_48h":false}]}' \
  | 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%2Fripasa&method=POST
const res = await pay("https://api.magentlab.com/api/calc/ripasa", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "age": 50,
        "anorexia": false,
        "fever": false,
        "foreign_nric": false,
        "guarding": false,
        "migration_to_rif": false,
        "nausea_vomiting": false,
        "negative_urinalysis": false,
        "raised_wcc": false,
        "rebound_tenderness": false,
        "rif_pain": false,
        "rif_tenderness": false,
        "rovsing_sign": false,
        "sex": "female",
        "symptoms_lt_48h": false
      },
      {
        "age": 50,
        "anorexia": false,
        "fever": false,
        "foreign_nric": false,
        "guarding": false,
        "migration_to_rif": false,
        "nausea_vomiting": false,
        "negative_urinalysis": false,
        "raised_wcc": false,
        "rebound_tenderness": false,
        "rif_pain": false,
        "rif_tenderness": false,
        "rovsing_sign": false,
        "sex": "female",
        "symptoms_lt_48h": 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/ripasa",
        json={
            "items": [
                {
                    "age": 50,
                    "anorexia": False,
                    "fever": False,
                    "foreign_nric": False,
                    "guarding": False,
                    "migration_to_rif": False,
                    "nausea_vomiting": False,
                    "negative_urinalysis": False,
                    "raised_wcc": False,
                    "rebound_tenderness": False,
                    "rif_pain": False,
                    "rif_tenderness": False,
                    "rovsing_sign": False,
                    "sex": "female",
                    "symptoms_lt_48h": False,
                },
                {
                    "age": 50,
                    "anorexia": False,
                    "fever": False,
                    "foreign_nric": False,
                    "guarding": False,
                    "migration_to_rif": False,
                    "nausea_vomiting": False,
                    "negative_urinalysis": False,
                    "raised_wcc": False,
                    "rebound_tenderness": False,
                    "rif_pain": False,
                    "rif_tenderness": False,
                    "rovsing_sign": False,
                    "sex": "female",
                    "symptoms_lt_48h": 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

WhenResultHTTPTimePrice
2 h agoPassed402185 ms$0.007
7 h agoPassed402156 ms$0.007
12 h agoPassed4021.4 s$0.007
16 h agoPassed402310 ms$0.007
21 h agoPassed402169 ms$0.007
Show 10 older checks
25 h agoPassed402146 ms$0.007
29 h agoPassed402151 ms$0.007
33 h agoPassed402153 ms$0.007
38 h agoPassed402403 ms$0.007
42 h agoPassed402238 ms$0.007
46 h agoPassed402167 ms$0.007
2 days agoPassed402372 ms$0.007
2 days agoPassed402285 ms$0.007
2 days agoPassed402341 ms$0.007
3 days agoPassed402284 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007