81trust / 100

Codes Search

by magent in Developer tools

x402 APIPassing, checked 4 h ago

Map a natural-language drug, diagnosis, or lab phrase to a current RxNorm, ICD-10-CM, or LOINC code. Use when an agent must not hallucinate or invent a billing/pharmacy code.

GET https://api.magentlab.com/api/codes/search

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
286 ms typical, 286 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.magentlab.com/api/codes/search?billable_only=true&include_obsolete=false&limit=5&min_score=35&query=Tylenol+500mg&system=rxnorm&tty=SCD"
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%2Fcodes%2Fsearch
const res = await pay("https://api.magentlab.com/api/codes/search?billable_only=true&include_obsolete=false&limit=5&min_score=35&query=Tylenol+500mg&system=rxnorm&tty=SCD");
console.log(await res.json());

Example input

{
  "billable_only": true,
  "include_obsolete": false,
  "limit": 5,
  "min_score": 35,
  "query": "Tylenol 500mg",
  "system": "rxnorm",
  "tty": "SCD"
}

Example output

{
  "catalog": {
    "coverage": "seed",
    "coverage_meaning": "Compiled seed catalog. Production coverage=full is gold-gated Current Prescribable RxNorm + ICD-10-CM + LOINC, not complete monthly RxNorm or UMLS.",
    "notes": "ICD-10 entries are ICD-10-CM (US claims), not WHO ICD-10. RxNorm codes are RxCUI. LOINC codes are official LOINC numerics. coverage=full never means complete UMLS.",
    "source": "magent curated seed",
    "stale": false,
    "systems": [
      "rxnorm",
      "icd10",
      "loinc"
    ],
    "verified_at": null,
    "version": "2026.08-wedge"
  },
  "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.",
  "match_count": 1,
  "match_quality": "high",
  "matches": [
    {
      "billable": null,
      "code": "198440",
      "display": "acetaminophen 500 MG Oral Tablet",
      "obsolete": false,
      "score": 95,
      "status": "current",
      "system": "rxnorm",
      "tty": "SCD"
    }
  ],
  "query": "Tylenol 500mg",
  "system": "rxnorm"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402286 ms$0.005