# LOINC Lab Test Code Lookup

> LOINC Lab Test Code Lookup is a paid API for AI agents from medical-codes.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Look up a LOINC code by identifier or search by test name, returning the long name, component, and a deprecation warning if applicable.

## Facts

- Endpoint: GET https://medical-codes.x402tookit.com/loinc-lookup?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loinc-lab-test-code-lookup-1ced93cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Q0uMvheQHe0aaPRbRz75

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 loinc-lab-test-code-lookup-1ced93cc
```

Example prompt: Look up LOINC code 4548-4 for me — I need its full long name, component, and whether it's been deprecated.

## When to prefer this

Use this endpoint when you need to resolve or validate a specific LOINC code, look up its official long name and component, or search for LOINC codes by lab test name. Prefer this over ICD-10 or HCPCS endpoints when the data involves laboratory observations and measurements rather than diagnoses or billing supply codes.

## Known failure modes

- Unknown LOINC code returns null or empty result with no match
- Misspelled or ambiguous search term returns zero results
- Deprecated code returns result with deprecated=true and a warning in reasons
- Service degraded flag set to true when upstream LOINC data source is partially unavailable
- Invalid query format (empty string) may return an error

## How this service works

LOINC lab test codes: look up a code or search by test name, with the long name and a deprecated-code warning.

## Output

Returns the LOINC code, its official long name, component, a summary description, a verdict on validity, a deprecated boolean flag, the data source URL, an 'asOf' timestamp, and a disclaimer. May include a list of reasons and a 'degraded' flag if the data source is partially unavailable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "A LOINC code like 4548-4, or words such as hemoglobin a1c"
      },
      "limit": {
       "type": "integer",
       "description": "Results 1 to 25 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "loinc": {
       "type": [
        "null",
        "string"
       ]
      },
      "credit": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "longName": {
       "type": [
        "null",
        "string"
       ]
      },
      "component": {
       "type": [
        "null",
        "string"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "deprecated": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loinc-lab-test-code-lookup-1ced93cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from medical-codes.x402tookit.com](https://www.zero.xyz/host/medical-codes.x402tookit.com/llms.txt)
