Open Source · Self-Hostable

Drug information,
one API call away

A high-performance Go gateway for FDA drug data. NDC lookup, drug interactions, therapeutic classes, and RxNorm search — with built-in caching, rate limiting, and auth.

$ docker compose up
26
API Endpoints
<3ms
Autocomplete
119K×
Faster w/ Cache
Go
Single Binary
Everything you need for
drug data integration

Query FDA NDC data, search RxNorm, check drug interactions, and browse therapeutic classes. All responses are JSON with consistent error handling.

GET /v1/drugs/ndc/{ndc}

NDC Drug Lookup

Look up any drug by its National Drug Code. Supports 5-4, 4-4, and 5-3 formats with automatic fallback.

{ "ndc": "00069-3150", "name": "Lipitor", "generic_name": "ATORVASTATIN CALCIUM", "classes": ["HMG-CoA Reductase Inhibitor"] }
POST /v1/drugs/interactions

Interaction Checker

Submit 2–10 drugs and get cross-referenced interaction warnings from FDA Structured Product Labels.

{ "pairs_checked": 3, "total_matches": 2, "drugs": [{ "name": "warfarin", ... }] }
GET /v1/drugs/rxnorm/search

RxNorm Fuzzy Search

Approximate-match drug search via RxNorm. Returns ranked candidates with spelling suggestions for typos.

{ "query": "liptor", "candidates": [{ "name": "Lipitor", "score": 94 }], "suggestions": ["lipitor"] }
GET /v1/drugs/autocomplete

Typeahead Autocomplete

Sub-3ms prefix search across 104K+ drug names. Built on an in-memory sorted index, 119,000× faster than Redis SCAN.

{ "data": [ { "name": "Lipitor", "type": "brand" }, { "name": "lisinopril", "type": "generic" } ] }
Batteries included

Everything you need to run a reliable drug data service. No assembly required.

🔑

API Key Auth

Per-key rate limiting, origin restrictions, key rotation with grace periods. Redis-backed CRUD for provisioning.

Redis Caching

Multi-tier cache with configurable TTLs. Stale-cache serving when upstream is down. Circuit breaker protection.

📊

Prometheus Metrics

Request latency, cache hit rates, auth rejections, rate limit counters, Redis health, and container system metrics.

Start building with drug data

Self-host in minutes. Explore the API on our staging instance. Star us on GitHub.