Developer API

Medicare data APIs for agents, tools, and AI assistants.

The Pocket Protector API exposes plan, provider, facility, drug, and enrollment-intent data through a REST interface backed by CMS and public regulatory datasets.

REST
Simple HTTP API
CMS
Source data
1k/hr
Authenticated limit

Getting started

Authentication and base URL

Use an API key in the X-API-Key header. Keys are issued after registration and every response includes rate-limit status headers.

Base URL
https://api.thepocketprotector.com

curl -H "X-API-Key: YOUR_KEY" \
  https://api.thepocketprotector.com/api/plans?zip=60612

Registration

API access is available to approved agents, partner platforms, and internal tools. The registration endpoint returns an API key and emails a copy to the requesting account.

POST /api/agent/register

Endpoints

Core API surface

The old static docs have been converted into native Next content while preserving the same public endpoint coverage.

GET /api/plans

Medicare Advantage plans

Search and compare plans by ZIP code with premiums, copays, star ratings, and enrollment links.

POST /api/recommendations

Plan recommendations

Score plans against ZIP code, medications, doctors, priorities, requested benefits, and cost preferences.

GET /api/medigap/rates

Medigap rates

Compare Medicare Supplement rates by state, plan letter, pricing type, carrier, age, and tobacco status.

GET /api/pdp/plans

Part D drug plans

Search standalone Part D plans by state or ZIP with premiums, deductibles, formularies, and pharmacy data.

GET /api/providers

Facilities and physicians

Search CMS physicians, hospitals, and nursing homes with quality scores and location context.

POST /api/leads

Enrollment leads

Submit enrollment interest for a selected plan while preserving licensing and consumer-protection rules.

Compliance

Enrollment links, data freshness, and rate limits

Agents must use the provided enrollment URLs rather than redirecting consumers to private flows. API responses include dataset freshness fields and rate-limit headers.

Quarterly CMS plan refreshes
Retry-After on 429 responses
Licensed enrollment handoff rules