Plan Comparison
GET
/v1/health/plans/compare Pro Compare 2 to 4 health plans side-by-side. The response includes plan details, rates for the specified age, and cost-sharing information for each plan.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
plan_ids | string | Yes | Comma-separated plan IDs (2-4) |
age | integer | Yes | Enrollee age for premium calculation |
year | integer | No | Plan year (default: 2026) |
Example
Section titled “Example”curl -H "Authorization: Bearer op_YOUR_API_KEY_HERE" \ "https://api.opelyx.com/v1/health/plans/compare?plan_ids=12345FL0010001-01,12345FL0020001-01&age=35"import requests
response = requests.get( "https://api.opelyx.com/v1/health/plans/compare", headers={"Authorization": "Bearer op_YOUR_API_KEY_HERE"}, params={ "plan_ids": "12345FL0010001-01,12345FL0020001-01", "age": 35, },)comparison = response.json()for plan in comparison["_embedded"]["plans"]: print(f"{plan['plan_name']}: ${plan['premium']}/mo, " f"deductible: ${plan['deductible']}")const params = new URLSearchParams({ plan_ids: "12345FL0010001-01,12345FL0020001-01", age: "35",});const response = await fetch( `https://api.opelyx.com/v1/health/plans/compare?${params}`, { headers: { Authorization: "Bearer op_YOUR_API_KEY_HERE" } },);const { _embedded } = await response.json();for (const plan of _embedded.plans) { console.log(`${plan.plan_name}: $${plan.premium}/mo`);}Response Structure
Section titled “Response Structure”The comparison response includes full plan details with cost-sharing for each plan, making it straightforward to build comparison tables in your application.
Key fields per plan:
premium— Monthly premium for the requested agedeductible— Annual individual deductiblemax_out_of_pocket— Annual maximum out-of-pocketplan_type— HMO, PPO, EPO, or POScost_sharing— Copays and coinsurance for common services