# ICD-10-CM Code Parser

> ICD-10-CM Code Parser 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).

Parses an ICD-10-CM code into its structural components (category, subcategory, extension, seventh character) and identifies its chapter — validated offline without a network lookup.

## Facts

- Endpoint: GET https://medical-codes.x402tookit.com/icd10-parse?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/icd-10-cm-code-parser-83c68397
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wJIiP9nMg84BQi-VFvPwr

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 icd-10-cm-code-parser-83c68397
```

Example prompt: Can you parse the ICD-10-CM code S52.521A and tell me its category, subcategory, seventh character meaning, and which chapter it belongs to?

## When to prefer this

Choose this endpoint when you need fast, offline structural parsing and format validation of an ICD-10-CM code — including chapter identification and seventh-character decomposition — without requiring a live database connection. Prefer it over a full lookup endpoint when you only need structural breakdown and format checking, not the full official description. Ideal for EHR pipelines, billing validation, and clinical documentation workflows where low latency and no external dependency matter.

## Known failure modes

- Malformed or empty code string returns a failed verdict with reasons explaining the format issue
- Codes outside the ICD-10-CM schema (e.g. ICD-9 codes) may return invalid verdict
- Degraded mode flag may be set if the offline dataset is incomplete or stale
- Missing required 'code' query parameter returns an error response
- Codes that are valid format but not in the official code set may still parse structurally but lack full chapter attribution

## How this service works

Parse an ICD-10-CM code into category, subcategory and extension, name its chapter, and check its format offline.

## Output

Returns a structured breakdown of the ICD-10-CM code including: the parsed category, subclassification, and seventh character (with its meaning and any note), the chapter number, title, and code range it belongs to, a validity verdict with reasons, a human-readable summary, the total character count, whether it is a category-level code, a source reference, an asOf date, and any disclaimer or degraded-mode flag.

## 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": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "e.g. S52.521A or E119"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "code": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "chapter": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "range": {
         "type": [
          "null",
          "string"
         ]
        },
        "title": {
         "type": [
          "null",
          "string"
         ]
        },
        "number": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "category": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "characters": {
       "type": [
        "null",
        "number"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "isCategoryLevel": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "seventhCharacter": {
       "type": [
        "null",
        "object"
       ],
       "propertie
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/icd-10-cm-code-parser-83c68397/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)
