68trust / 100

Calc Leiden Arthritis

by magent in Other

x402 APIFailing, checked 4 h ago

van der Helm-van Mil 2007 Leiden prediction rule for recent-onset undifferentiated arthritis (Figure 1 / Table 2). Age × 0.02, female 1, small joints 0.5, symmetric 0.5, upper 1 or upper-and-lower 1.5, 100-mm morning-stiffness VAS 0/1/2, tender and swollen counts 0/0.5/1, CRP mg/L 0/0.5/1.5, RF 1, anti-CCP 2. Round to nearest 0.0 or 0.5. Bands ≤6 low, >6 and <8 indeterminate, ≥8 high. Not a diagnosis of RA. magent does not examine joints or assay serologies.

POST
https://api.magentlab.com/api/calc/leiden_arthritis
Price
$0.007
per call in USDC
Uptime
94.3%
last 30 days
Response time
203 ms
1.1 s slowest 5%
Last check
Failed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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/leiden_arthritis

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

{
  "items": [
    {
      "age": 48,
      "anti_ccp_positive": false,
      "crp_mg_l": 60,
      "morning_stiffness_vas_mm": 50,
      "rheumatoid_factor_positive": false,
      "sex": "female",
      "small_joints_hands_feet": true,
      "swollen_joint_count": 8,
      "symmetric": true,
      "tender_joint_count": 8,
      "upper_and_lower_extremities": false,
      "upper_extremities": true
    },
    {
      "age": 48,
      "anti_ccp_positive": false,
      "crp_mg_l": 60,
      "morning_stiffness_vas_mm": 50,
      "rheumatoid_factor_positive": false,
      "sex": "female",
      "small_joints_hands_feet": true,
      "swollen_joint_count": 8,
      "symmetric": true,
      "tender_joint_count": 8,
      "upper_and_lower_extremities": false,
      "upper_extremities": true
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

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

Example response, 174 lines
{
  "count": 2,
  "items": [
    {
      "citation": {
        "authors": "van der Helm-van Mil AH, le Cessie S, van Dongen H, Breedveld FC, Toes RE, Huizinga TW",
        "doi": "10.1002/art.22380",
        "id": "van-der-helm-van-mil-2007",
        "pmid": "17265478",
        "source": "Arthritis Rheum. 2007;56(2):433-440",
        "title": "A prediction rule for disease outcome in patients with recent-onset undifferentiated arthritis: how to guide individual treatment decisions"
      },
      "components": [
        {
          "factor": "age",
          "points": 0.96,
          "present": true,
          "value": 48
        },
        {
          "factor": "female",
          "points": 1,
          "present": true,
          "value": "female"
        },
        {
          "factor": "small_joints_hands_feet",
          "points": 0.5,
          "present": true
        },
        {
          "factor": "symmetric",
          "points": 0.5,
          "present": true
        },
        {
          "factor": "upper_and_lower_extremities",
          "points": 0,
          "present": false
        },
        {
          "factor": "upper_extremities",
          "points": 1,
          "present": true
        },
        {
          "factor": "morning_stiffness_vas_mm",
          "points": 1,
          "present": true,
          "value": 50
        },
        {
          "factor": "tender_joint_count",
          "points": 0.5,
          "present": true,
          "value": 8
        },
        {
          "factor": "swollen_joint_count",
          "points": 0.5,
          "present": true,
          "value": 8
        },
        {
          "factor": "crp_mg_l",
          "points": 1.5,
          "present": true,
          "value": 60
        },
        {
          "factor": "rheumatoid_factor_positive",
          "points": 0,
          "present": false
        },
        {
          "factor": "anti_ccp_positive",
          "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": "leiden_arthritis",
      "formula_expression": "Leiden UA score (van der Helm-van Mil 2007 Figure 1 / Table 2) = age_years*0.02 + female 1 + small_joints_hands_feet 0.5 + symmetric 0.5 + (upper_and_lower_extremities 1.5 else upper_extremities 1) + morning_stiffness_vas_mm (0–25 → 0; 26–90 → 1; >90 → 2) + tender_joint_count (<4 → 0; 4–10 → 0.5; ≥11 → 1) + swollen_joint_count (<4 → 0; 4–10 → 0.5; ≥11 → 1) + crp_mg_l (0–4 → 0; 5–50 → 0.5; ≥51 → 1.5) + rheumatoid_factor_positive 1 + anti_ccp_positive 2; round to nearest 0.0 or 0.5; ≤6 low, >6 and <8 indeterminate, ≥8 high; max 14; not a diagnosis of RA",
      "leiden_band": "indeterminate",
      "max_score": 14,
      "score": 7.5
    },
    {
      "citation": {
        "authors": "van der Helm-van Mil AH, le Cessie S, van Dongen H, Breedveld FC, Toes RE, Huizinga TW",
        "doi": "10.1002/art.22380",
        "id": "van-der-helm-van-mil-2007",
        "pmid": "17265478",
        "source": "Arthritis Rheum. 2007;56(2):433-440",
        "title": "A prediction rule for disease outcome in patients with recent-onset undifferentiated arthritis: how to guide individual treatment decisions"
      },
      "components": [
        {
          "factor": "age",
          "points": 0.96,
          "present": true,
          "value": 48
        },
        {
          "factor": "female",
          "points": 1,
          "present": true,
          "value": "female"
        },
        {
          "factor": "small_joints_hands_feet",
          "points": 0.5,
          "present": true
        },
        {
          "factor": "symmetric",
          "points": 0.5,
          "present": true
        },
        {
          "factor": "upper_and_lower_extremities",
          "points": 0,
          "present": false
        },
        {
          "factor": "upper_extremities",
          "points": 1,
          "present": true
        },
        {
          "factor": "morning_stiffness_vas_mm",
          "points": 1,
          "present": true,
          "value": 50
        },
        {
          "factor": "tender_joint_count",
          "points": 0.5,
          "present": true,
          "value": 8
        },
        {
          "factor": "swollen_joint_count",
          "points": 0.5,
          "present": true,
          "value": 8
        },
        {
          "factor": "crp_mg_l",
          "points": 1.5,
          "present": true,
          "value": 60
        },
        {
          "factor": "rheumatoid_factor_positive",
          "points": 0,
          "present": false
        },
        {
          "factor": "anti_ccp_positive",
          "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": "leiden_arthritis",
      "formula_expression": "Leiden UA score (van der Helm-van Mil 2007 Figure 1 / Table 2) = age_years*0.02 + female 1 + small_joints_hands_feet 0.5 + symmetric 0.5 + (upper_and_lower_extremities 1.5 else upper_extremities 1) + morning_stiffness_vas_mm (0–25 → 0; 26–90 → 1; >90 → 2) + tender_joint_count (<4 → 0; 4–10 → 0.5; ≥11 → 1) + swollen_joint_count (<4 → 0; 4–10 → 0.5; ≥11 → 1) + crp_mg_l (0–4 → 0; 5–50 → 0.5; ≥51 → 1.5) + rheumatoid_factor_positive 1 + anti_ccp_positive 2; round to nearest 0.0 or 0.5; ≤6 low, >6 and <8 indeterminate, ≥8 high; max 14; not a diagnosis of RA",
      "leiden_band": "indeterminate",
      "max_score": 14,
      "score": 7.5
    }
  ],
  "path": "/api/calc/leiden_arthritis"
}

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/leiden_arthritis' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":48,"anti_ccp_positive":false,"crp_mg_l":60,"morning_stiffness_vas_mm":50,"rheumatoid_factor_positive":false,"sex":"female","small_joints_hands_feet":true,"swollen_joint_count":8,"symmetric":true,"tender_joint_count":8,"upper_and_lower_extremities":false,"upper_extremities":true},{"age":48,"anti_ccp_positive":false,"crp_mg_l":60,"morning_stiffness_vas_mm":50,"rheumatoid_factor_positive":false,"sex":"female","small_joints_hands_feet":true,"swollen_joint_count":8,"symmetric":true,"tender_joint_count":8,"upper_and_lower_extremities":false,"upper_extremities":true}]}'

# 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/leiden_arthritis' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"age":48,"anti_ccp_positive":false,"crp_mg_l":60,"morning_stiffness_vas_mm":50,"rheumatoid_factor_positive":false,"sex":"female","small_joints_hands_feet":true,"swollen_joint_count":8,"symmetric":true,"tender_joint_count":8,"upper_and_lower_extremities":false,"upper_extremities":true},{"age":48,"anti_ccp_positive":false,"crp_mg_l":60,"morning_stiffness_vas_mm":50,"rheumatoid_factor_positive":false,"sex":"female","small_joints_hands_feet":true,"swollen_joint_count":8,"symmetric":true,"tender_joint_count":8,"upper_and_lower_extremities":false,"upper_extremities":true}]}' \
  | 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%2Fleiden_arthritis&method=POST
const res = await pay("https://api.magentlab.com/api/calc/leiden_arthritis", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "age": 48,
        "anti_ccp_positive": false,
        "crp_mg_l": 60,
        "morning_stiffness_vas_mm": 50,
        "rheumatoid_factor_positive": false,
        "sex": "female",
        "small_joints_hands_feet": true,
        "swollen_joint_count": 8,
        "symmetric": true,
        "tender_joint_count": 8,
        "upper_and_lower_extremities": false,
        "upper_extremities": true
      },
      {
        "age": 48,
        "anti_ccp_positive": false,
        "crp_mg_l": 60,
        "morning_stiffness_vas_mm": 50,
        "rheumatoid_factor_positive": false,
        "sex": "female",
        "small_joints_hands_feet": true,
        "swollen_joint_count": 8,
        "symmetric": true,
        "tender_joint_count": 8,
        "upper_and_lower_extremities": false,
        "upper_extremities": true
      }
    ]
  }),
});
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/leiden_arthritis",
        json={
            "items": [
                {
                    "age": 48,
                    "anti_ccp_positive": False,
                    "crp_mg_l": 60,
                    "morning_stiffness_vas_mm": 50,
                    "rheumatoid_factor_positive": False,
                    "sex": "female",
                    "small_joints_hands_feet": True,
                    "swollen_joint_count": 8,
                    "symmetric": True,
                    "tender_joint_count": 8,
                    "upper_and_lower_extremities": False,
                    "upper_extremities": True,
                },
                {
                    "age": 48,
                    "anti_ccp_positive": False,
                    "crp_mg_l": 60,
                    "morning_stiffness_vas_mm": 50,
                    "rheumatoid_factor_positive": False,
                    "sex": "female",
                    "small_joints_hands_feet": True,
                    "swollen_joint_count": 8,
                    "symmetric": True,
                    "tender_joint_count": 8,
                    "upper_and_lower_extremities": False,
                    "upper_extremities": True,
                },
            ],
        },
    )
    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
4 h agoTimed out---
9 h agoTimed out---
13 h agoPassed402291 ms$0.007
18 h agoPassed402160 ms$0.007
23 h agoPassed402169 ms$0.007
Show 10 older checks
28 h agoPassed402467 ms$0.007
32 h agoPassed402239 ms$0.007
37 h agoPassed402203 ms$0.007
41 h agoPassed402282 ms$0.007
45 h agoPassed402261 ms$0.007
2 days agoPassed402281 ms$0.007
2 days agoPassed402161 ms$0.007
2 days agoPassed402158 ms$0.007
3 days agoPassed402169 ms$0.007
3 days agoPassed402175 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007