{"slug":"api-magentlab-com-api-codes-search-20988a","title":"Map a natural-language drug, diagnosis, or lab phrase to a current RxNorm, ICD-1","host":"api.magentlab.com","method":"GET","resource":"https://api.magentlab.com/api/codes/search","category":"code","description":"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.","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":606,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"billable_only":true,"include_obsolete":false,"limit":5,"min_score":35,"query":"Tylenol 500mg","system":"rxnorm","tty":"SCD"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"billable_only":{"description":"ICD-10-CM: return only HIPAA billable codes, not headers. Default true.","type":"boolean"},"include_obsolete":{"description":"Include deprecated/obsolete codes. Default false.","type":"boolean"},"limit":{"description":"Number of ranked matches to return (1-25). Default 5.","type":"integer"},"min_score":{"description":"Minimum rank score 0-100. Default 35.","type":"integer"},"query":{"description":"Natural-language drug, diagnosis, or lab description. Max 512 characters. Do not send patient names.","type":"string"},"system":{"description":"Restrict to rxnorm, icd10 (ICD-10-CM), or loinc. Omit to search all.","enum":["rxnorm","icd10","loinc"],"type":"string"},"tty":{"description":"Restrict term type. Pharmacy orders typically want SCD. ICD-10-CM is CM; LOINC is LN.","enum":["SCD","SBD","IN","PIN","MIN","BN","GPCK","BPCK","DF","SCDC","SBDC","SCDF","SBDF","CM","LN"],"type":"string"}},"required":["query"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":606,"error":null}],"description_full":"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.","last_updated":"2026-09-28T15:20:51.373Z","schemes":["batch-settlement","exact"]}