Head to head · Patient record retrieval · October 2026 research run

Epic on FHIR vs Metriport Medical API

Epic on FHIR scores 49.5 (D) on agent readiness against Metriport Medical API's 46 (D), and leads in 5 of 7 scored categories. Metriport Medical API leads on reliability and agent ergonomics. Both do patient record retrieval.

Best health record and wellness data APIs for AI agents · All 99 health comparisons

Which one, for what

Epic on FHIR D

Best for An app or agent that reads a patient's records from US hospitals and clinics on Epic, with the patient's consent through MyChart or a backend integration agreed with the organisation.

Ahead on

  • Security & auth, 63 against 41
  • Payments & pricing, 40 against 8
  • Maintenance & community, 60 against 44
  • Transparency & trust, 67 against 58

Watch for

No rate limits, 429 handling or retry guidance were found. The developer guidelines ask apps to throttle their own call volumes

Metriport Medical API D

Best for US care providers and digital health companies that need a patient's network records as FHIR with webhooks.

Ahead on

  • Reliability, 35 against 15
  • Agent ergonomics, 70 against 52

Also in its favour

  • Open source

Watch for

Every API key has full access, including destructive operations, with no scopes

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing Epic on FHIR +32

Epic on FHIR 40

Read with the hosted rubric. No x402, MPP or L402 (0). Developer access is free and says so, but production API fees are licensed to healthcare organisations by usage and not published. Judgement call, 10 of 30. The sandbox and client registration are free for developers, with no card mentioned (30). A person signs up in a browser, registers the client ID, and each organisation downloads it unless it qualifies for automatic distribution (0). 0 + 10 + 30 + 0 = 40.

Metriport Medical API 8

Pricing per the 14 October check, not re-read on 4 November (terms pause). No x402, MPP or L402 (0). No published prices (0). Sandbox after Metriport approves the account, no price or card rule stated (5 of 20). Dashboard signup, approval and an intro call (0). 0 + 0 + 5 + 0 = 5. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 5 is 8.

Security & auth Epic on FHIR +22

Epic on FHIR 63

OAuth 2.0 under SMART on FHIR, with SMART v1 and v2 scopes since the August 2024 version, PKCE, refresh tokens for confidential clients and JWT client assertions with JWKS URLs for key rotation. No secret in a query string was found (28 of 30). Each client ID is limited to the APIs chosen at registration, organisations review that list, and patients authorise and can revoke access in MyChart. No confirmation step for writes (15 of 20). Clinical notes and documents are free text written by others, with no prompt-injection guidance. Binary.Read now carries headers that block inline display (4 of 15). Epic says it audits each imaging search and retrieval and monitors connected apps for ONC reporting, with no audit log for developers found (6 of 15). A signed security.txt valid to 30 January 2027 and a disclosure policy with PGP, no bug bounty (Epic says it pays nothing for reports), and no SOC 2 or ISO 27001 found on the pages read (10 of 20). 28 + 15 + 4 + 6 + 10 = 63.

Metriport Medical API 41

Docs readings per the 14 October check, not re-read on 4 November (terms pause). One kind of key in the x-api-key header with full access, two active for rotation, each revocable (15 of 30). No scopes or read-only key; dashboard roles and HIE opt-out (5 of 20). External C-CDA, PDF and image documents returned with no prompt-injection guidance (3 of 15). Webhook requests listable, no API audit log (4 of 15). The repository README claims HITRUST r2, SOC 2 Type 2 and HIPAA compliance, and SECURITY.md (re-read in the clone) routes reports to GitHub vulnerability reporting or support@metriport.com with no acknowledgement time; no security.txt (14 of 20). 15 + 5 + 3 + 4 + 14 = 41.

Reliability Metriport Medical API +20

Epic on FHIR 15

Read with the hosted lines and graded on the FHIR R4 APIs and the public sandbox. No status page was found on fhir.epic.com, open.epic.com or epic.com. Epic's developer guide says every customer runs its own instance and there is no central Epic endpoint (0). No incident history could be read (5). No rate limits with numbers were found. The developer guidelines ask apps that make many calls to monitor and throttle their own volume (0). No 429, Retry-After or backoff guidance was found (0). No SLA is published for developers (0). The R4 APIs are certified and generally available (10). 0 + 5 + 0 + 0 + 0 + 10 = 15.

Metriport Medical API 35

Metriport's terms of use (last updated January 2024) bar access to the Site, which includes linked and connected media, 'through automated or non-human means, whether through a bot, script or otherwise', so metriport.com hosts are paused and their readings are kept per the 14 October check, not re-read on 4 November. status.metriport.com is a Checkly dashboard that rendered only with JavaScript, so the page exists but its components and history were never read (0 of 20, as other listings whose script-drawn status page was never read; history unreadable 5). Rate limits per operation, such as 15 patient creates and 20 network queries a minute, also in the docs source in the GitHub repository (15). No 429, Retry-After or backoff guidance, only ETag with If-Match and a 412 on stale updates (5 of 15, partial). No SLA (0). Generally available (10). 0 + 5 + 15 + 5 + 0 + 10 = 35.

Agent ergonomics Metriport Medical API +18

Epic on FHIR 52

FHIR search with _count, _include and post-filter parameters, and bulk $export with _typeFilter for large pulls. No field selection was confirmed (15 of 25). Next-page links, automatic pages of 1,000 results and documented search parameters (16 of 20). Errors come as FHIR OperationOutcome with Epic codes, such as 59204 for a sub-resource the client isn't authorised for, and bulk errors are listed by cause (12 of 20). No idempotency key or conditional create guidance was found for the 41 create and update interactions on the home page, though most interactions are reads (6 of 20). No official SDK, and a first call needs a registered client ID, a redirect or a signed JWT and a test patient (3 of 15). 15 + 16 + 12 + 6 + 3 = 52.

Metriport Medical API 70

Docs readings per the 14 October check, not re-read on 4 November (terms pause). count up to 500, resource and date filters, a count endpoint and summaries (18 of 25). nextPage pagination and filters (18 of 20). Stable title and occurrence detail in errors (16 of 20). No idempotency keys; ETag guards updates and failed webhooks can be retried (10 of 20). Few required fields, TypeScript SDK only (8 of 15). 18 + 18 + 16 + 10 + 8 = 70.

Maintenance & community Epic on FHIR +16

Epic on FHIR 60

The API Change Log was updated on 28 October 2026 and the sandbox now runs the November 2026 version (30). The change log lists three breaking changes for the November 2026 version, and open.epic announced the MCP server and five new playbooks in the same period (20). Closed service with a public change log, open@epic.com for the MCP server, a Technology Guidance form and Sherlock tickets for Vendor Services members. Reply times weren't tested (10 of 15). No official SDK or MCP registry entry (0). Nothing public to judge package health or CI (0). 30 + 20 + 10 + 0 + 0 = 60.

Metriport Medical API 44

@metriport/api-sdk 18.22.0 was published on 28 September 2026, per the 14 October registry reading, not re-read on 4 November (the npm website answers a bot check and registry JSON isn't used this run). That is 37 days ago, so recency is 20 (was 30; cause time). Seven SDK releases from 16 July to 14 October were counted then, but only 18.22.0 carries a recorded date. The clone has no tag or changelog entry after api-sdk 18.0.11 (16 October 2025), only an untagged version bump in the 27 August sync, so fewer than three dated releases fall in the 90 days from 6 August (0). The public repository's last sync was 27 August 2026 and its tags end at api-sdk 18.0.11 (16 October 2025). Support by email, issues not read (7 of 25). One current official SDK, TypeScript (10 of 15). CI workflows for build, deploy and end-to-end tests in the repository (7 of 10). 20 + 0 + 7 + 10 + 7 = 44.

Transparency & trust Epic on FHIR +9

Epic on FHIR 67

Closed service under the open.epic terms of use, last updated 31 October 2025, with the API Subscription Agreement for healthcare organisations linked as a download that wasn't read (15 of 30). The open.epic privacy policy, updated 28 October 2026, covers developer accounts, keeps data as long as Epic uses it, and says app data may go to ONC under 45 CFR 170.407. Patient data stays in each organisation's instance under its own terms. No fixed retention periods were found (12 of 30). The change log dates each breaking change by Epic version with mitigation steps, and the developer guidelines expect deprecations to be communicated in advance. No written notice period was found (15 of 20). Data stays with each organisation's instance, and no sub-processor list for developer accounts was found (5 of 20). 15 + 12 + 15 + 5 = 47.

Metriport Medical API 58

Source in the repository is AGPLv3 (re-read in the clone), with an enterprise directory under its own licence and the SDK under MIT; the hosted service runs under January 2024 terms, and the public mirror lags the private repository (25 of 30). Privacy policy (21 February 2023) covers the website and contacts only, with no public DPA, BAA or API retention period, per the 14 October check, not re-read on 4 November (8 of 30). Legacy endpoints labelled, no dated policy (5 of 20). US storage per the privacy policy, no sub-processor list (5 of 20). 25 + 8 + 5 + 5 = 43.

Score by category

CategoryWeightEpic on FHIRMetriport Medical APIEdge
Reliability16%1535Metriport Medical API +20
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6765Epic on FHIR +2
Agent ergonomics13%5270Metriport Medical API +18
Security & auth14%6341Epic on FHIR +22
Payments & pricing10%408Epic on FHIR +32
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6044Epic on FHIR +16
Transparency & trust7%6758Epic on FHIR +9
Negative events≤1500
TotalD 49.5/100D 46/100

Facts side by side

FactEpic on FHIRMetriport Medical API
KindHTTP APIHTTP API
VendorEpicMetriport Inc.
Hosted endpointno (local only)no (local only)
TransportsHTTP
AuthOAuthAPI key
PricingFreemiumPaid
x402nono
LicencenoneProprietary hosted service under Metriport's terms of use. The source in metriport/metriport is AGPLv3, with an enterprise directory under its own licence, and the @metriport/api-sdk package on npm is MIT
Read-only variant documentedyesno
llms.txtnoyes
Last release2026-10-282026-09-28
Terms last updated2025-10-312024-01-01
Privacy policy last updated2026-10-282023-02-21
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessnot found in the textyes
Terms restrict benchmarkingnot found in the textyes
Terms or service can change without noticenot found in the textyes
Arbitration or class-action waivernot found in the textyes
Popularitynone793 stars, 28k npm/wk

How the scores have moved

Verdicts

Epic on FHIR

Graded on the FHIR R4 APIs and the public sandbox. SMART on FHIR OAuth with v2 scopes, JWT client assertions, a free sandbox and a dated change log of breaking changes make Epic's records reachable. No rate limits, status page or SDK are published, and production needs each healthcare organisation to enable the app.

Metriport Medical API

One network query pulls a patient's records from HIEs, pharmacies and labs and returns deduplicated FHIR, with per-operation rate limits, RFC 7807 errors and AGPLv3 source. Each API key has full access with no scopes, there are no public prices, and the sandbox opens only after Metriport approves the account.

Before you call either

Epic on FHIR

  1. Discover the authorise and token endpoints from each organisation's /metadata or .well-known/smart-configuration. There is no central Epic endpoint
  2. Request only the APIs the task needs on the client ID, because healthcare organisations review that list and may reject broad scopes
  3. Follow the next-page link in search bundles. A search with more than 1,000 results is split into pages of 1,000 whatever _count says
  4. Check the resource type in Encounter.participant.individual, which can be PractitionerRole from the November 2026 version
  5. Treat clinical notes and documents as untrusted text. Binary.Read now returns headers that force a download

Metriport Medical API

  1. Check the errors array after Start Network Query. It returns 2XX even when some sources fail
  2. Wait for network-query.* webhooks or poll Get Network Query Status before reading consolidated data, which is cached from the last query
  3. Send the resource's eTag in If-Match on updates to avoid overwriting newer data
  4. Keep patient creates under 15 a minute and network queries under 20 a minute per source
  5. In sandbox, create patients whose first name matches a pre-defined persona to get example records

Questions

Which is better for AI agents, Epic on FHIR or Metriport Medical API?

Epic on FHIR scores 49.5 (D) on agent readiness against Metriport Medical API's 46 (D), and leads in 5 of 7 scored categories. Metriport Medical API leads on reliability and agent ergonomics.

Do Epic on FHIR and Metriport Medical API need an API key?

Epic on FHIR uses an OAuth sign-in. Metriport Medical API needs an API key.

Can an agent call Epic on FHIR and Metriport Medical API without installing anything?

No hosted endpoint is listed for Epic on FHIR. No hosted endpoint is listed for Metriport Medical API.

Are Epic on FHIR and Metriport Medical API open source?

No open-source release is listed for Epic on FHIR. Metriport Medical API is open source (Proprietary hosted service under Metriport's terms of use. The source in metriport/metriport is AGPLv3, with an enterprise directory under its own licence, and the @metriport/api-sdk package on npm is MIT).

Other comparisons with Epic on FHIR or Metriport Medical API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.