# Magentlab Ontology Code Lookup

> Magentlab Ontology Code Lookup is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Looks up the official display name for a given RxNorm, ICD-10-CM, or LOINC code without inventing or hallucinating the preferred term.

## Facts

- Endpoint: GET https://api.magentlab.com/api/ontology/lookup
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magentlab-ontology-code-lookup-ae9c9e87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O9MHBWrF1cHmyv0dENnFP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability magentlab-ontology-code-lookup-ae9c9e87
```

Example prompt: What is the official preferred display name for ICD-10-CM code E11.65? I need the exact canonical term — don't guess or paraphrase.

## When to prefer this

Use this endpoint when an agent already holds an exact ontology code (RxNorm, ICD-10-CM, or LOINC) and must retrieve the authoritative preferred display term without inventing, paraphrasing, or hallucinating it. Prefer this over general LLM recall for any production clinical, billing, or regulatory context where accuracy of terminology is mandatory. Choose this over a full text-search endpoint when the code is known and only the canonical label is needed.

## Known failure modes

- Code not found in the specified ontology — returns 404 or empty result
- Ambiguous code submitted without specifying the code system — may return wrong ontology match
- Malformed or invalid code format — returns 400 bad request
- Ontology data lag — very recently added codes may not yet be indexed
- Network or service timeout at $0.005 per call — charge may occur even on failure

## How this service works

Look up a current RxNorm, ICD-10-CM, or LOINC display from an exact code. Use when an agent already has a code and must not invent the preferred term.

## Output

Returns the official preferred display name (canonical label) corresponding to the submitted ontology code and code system (RxNorm, ICD-10-CM, or LOINC), sourced from authoritative terminology databases rather than generated or inferred.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magentlab-ontology-code-lookup-ae9c9e87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
