Head to head · FHIR servers · October 2026 research run
Metriport Medical API vs Terra API
Terra API scores 67.3 (B) on agent readiness against Metriport Medical API's 46 (D), and leads in 6 of 7 scored categories. Both do fhir servers.
Best health record and wellness data APIs for AI agents · All 99 health comparisons
Which one, for what
Best for US care providers and digital health companies that need a patient's network records as FHIR with webhooks.
Also in its favour
- Open source
Watch for
Every API key has full access, including destructive operations, with no scopes
Best for A fitness, wellness, insurance or research product whose users connect consumer wearables and apps, and an agent that needs to read one user's sleep, activity or body data through MCP.
Ahead on
- Reliability, 67 against 35
- Schema & documentation, 89 against 65
- Agent ergonomics, 78 against 70
- Security & auth, 65 against 41
- Payments & pricing, 30 against 8
- Maintenance & community, 75 against 44
Also in its favour
- A hosted endpoint, with nothing to install
Watch for
No free tier. Sign-up asks for a plan and billing details, and Quick Start starts at $499 a month with a 30-day money-back guarantee
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.
Reliability Terra API +32
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.
Terra API 67
Read with the hosted lines and scored on the Unified API and Terra AI. status.tryterra.co on Instatus has components and incident history (20). The history feed, re-read on 1 November 2026, covers the 90 days from 3 August. On 7 August requests authenticated with a Terra API key could fail with an authorisation error for 2 hours 38 minutes (REST endpoints), which reads as one major. On 29 September a large share of data requests errored for 16 minutes, and on 28 October some webhooks, mainly for data requested through the API, carried an invalid signature for 3 hours 48 minutes (Event Delivery). Both read as minor. Provider-side incidents (Garmin and Fitbit on 1 September, TrainerRoad on 8 September, Nutracheck) and provider maintenance windows are outside Terra's API. One major outage (10). Per-user limits published with numbers, re-read on 1 November (15). 429 carries Retry-After and a rule header with backoff code. The Unified API's writes take no idempotency key, though dedupe guidance is published (12 of 15). No SLA outside Enterprise contracts (0). The Unified API carries no beta label (10). 20 + 10 + 15 + 12 + 0 + 10 = 67.
Maintenance & community Terra API +31
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.
Terra API 75
The OpenAPI repository was last republished on 30 October 2026 (30). 132 spec publishes since 3 August in the repository clone, and @tryterra/cli moved from 0.20.0 (9 October) to 0.24.0 on npm (20). Closed service with monthly changelog pages (October 2026 the newest) and a support form. 24/7 engineering support is Enterprise only (11 of 15). terra-api is still 2.1.0 on npm (2 October 2025), terra-python 1.1.0 wasn't re-read (PyPI didn't resolve on 1 November), the legacy JavaScript package is no longer updated, and the official MCP registry has no Terra entry on 1 November (8 of 15). We could not read CI results (6 of 10). 30 + 20 + 11 + 8 + 6 = 75.
Schema & documentation Terra API +24
Metriport Medical API 65
Docs readings per the 14 October check, not re-read on 4 November (terms pause). The GitHub repository still holds the Fern API definition covering patients, facilities, FHIR, documents and webhooks but not network query, cohorts, messages or settings, last synced 27 August 2026 (12 of 25). llms.txt and Markdown pages (10). Descriptions with when-to-use and traps (16 of 20). Typed parameters in hand-written pages (10 of 15). SDK examples and an RFC 7807 error format (12 of 15). Versioned under /medical/v1 with no public changelog (5 of 15). 12 + 10 + 16 + 10 + 12 + 5 = 65.
Terra API 89
OpenAPI 3.1 specs in tryterra/openapi for the Unified, admin, Teams, Vantage and widget APIs, plus AsyncAPI for streaming, last published on 30 October 2026 (25). llms.txt, llms-full.txt and a Markdown copy of every page (10). Operation descriptions state purpose, and some say when to use another path, such as the deprecated token route (16 of 20). The Unified spec (version 2026.10.27, 58 operations) has 20 enums against many required lists (10 of 15). 583 example entries and problem+json error responses, plus a guaranteed error list for Terra AI (13 of 15). Dated spec versions, monthly changelog pages, and date-based versioning on Vantage and, since October, on the lab report endpoints (15). 25 + 10 + 16 + 10 + 13 + 15 = 89.
Security & auth Terra API +24
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.
Terra API 65
The data API key is one x-api-key per environment with no scopes, rotatable through the admin API. Admin tokens have 26 scopes, 7 to 90 day lifetimes, environment limits and revocation, and the admin MCP server uses OAuth. No secret in a query string (22 of 30). Read only access for the admin server, dashboard approval for paying invoices, rotating keys or removing members, and Terra AI is read-only (18 of 20). Health data is mostly numeric, and the MCP page warns that text in payloads can mislead an assistant (8 of 15). Token list with creation source and an event log, no API call audit log found (7 of 15). SOC 2 Type II and HIPAA claimed and a Vanta trust centre linked, which could not be read. No security.txt (tryterra.co/.well-known/security.txt answered 404 on 1 November) or bug bounty found (10 of 20). 22 + 18 + 8 + 7 + 10 = 65.
Payments & pricing Terra API +22
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.
Terra API 30
Read with the hosted rubric. No x402, MPP or L402 (0). Per-credit prices and the credit cost of each unit are public without a login (20). No free tier. Sign-up asks for a plan and billing details, with a 30-day money-back guarantee (0), re-read on the pricing page on 1 November. A person signs up in a browser, and the CLI and MCP sign in through the dashboard (0). 0 + 20 + 0 + 0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.
Agent ergonomics Terra API +8
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.
Terra API 78
Terra AI has six tools, each taking an explicit fields or select list, which keeps responses small. The admin server has about 40 tools, filtered by access level (22 of 25). Date ranges, with_samples and to_webhook size the REST reads, with no cursor paging since bulk data goes to webhooks (14 of 20). problem+json errors carry a code, 403 names scope_missing, and 429 names the rule (17 of 20). The Unified API's writes take no idempotency key. The admin API accepts an Idempotency-Key header on its mutations, and the admin server has dry runs and dashboard approval for risky changes (12 of 20). user_id is the main required parameter, with Python and npm SDKs and a CLI, though both SDKs date from October 2025 (13 of 15). 22 + 14 + 17 + 12 + 13 = 78.
Score by category
| Category | Weight | Metriport Medical API | Terra API | Edge |
|---|---|---|---|---|
| Reliability | 16% | 35 | 67 | Terra API +32 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 65 | 89 | Terra API +24 |
| Agent ergonomics | 13% | 70 | 78 | Terra API +8 |
| Security & auth | 14% | 41 | 65 | Terra API +24 |
| Payments & pricing | 10% | 8 | 30 | Terra API +22 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 44 | 75 | Terra API +31 |
| Transparency & trust | 7% | 58 | 58 | even |
| Negative events | ≤15 | 0 | 0 | |
| Total | D 46/100 | B 67.3/100 |
Facts side by side
| Fact | Metriport Medical API | Terra API |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Metriport Inc. | Terra Enabling Developers Inc. |
| Hosted endpoint | no (local only) | https://access.tryterra.co/api/v2/mcp/<user_id> |
| Transports | HTTP | HTTP, Streamable HTTP |
| Auth | API key | OAuth or key |
| Pricing | Paid | Pay per use |
| x402 | no | no |
| Licence | 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 | Proprietary service under Terra's terms of service. The OpenAPI specs repository is Apache 2.0 |
| Tools exposed | none | 6 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-09-28 | 2026-10-30 |
| Terms last updated | 2024-01-01 | 2026-05-01 |
| Privacy policy last updated | 2023-02-21 | 2023-04-20 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | yes | yes |
| Terms or service can change without notice | yes | yes |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 793 stars, 28k npm/wk | 13k npm/wk, 11k PyPI/wk |
| Agent reviews | none | 2.8/5 (4) |
How the scores have moved
Verdicts
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.
Terra API
Graded on the Unified API and the Terra AI MCP server. A public OpenAPI 3.1 spec, llms.txt, per-user rate limits with Retry-After, and scoped admin tokens with approvals. Access starts at $499 a month with billing details at sign-up, the data API key has no scopes, and API key requests failed for 2 hours 38 minutes on 7 August 2026.
Before you call either
Metriport Medical API
- Check the
errorsarray after Start Network Query. It returns 2XX even when some sources fail - Wait for
network-query.*webhooks or poll Get Network Query Status before reading consolidated data, which is cached from the last query - Send the resource's
eTaginIf-Matchon updates to avoid overwriting newer data - Keep patient creates under 15 a minute and network queries under 20 a minute per source
- In sandbox, create patients whose first name matches a pre-defined persona to get example records
Terra API
- Send dev-id and x-api-key headers on every Unified API and Terra AI call. A missing header returns 401 problem+json
- Keep each request window to 1,825 days or less and under 6,000 requested days per user an hour. On 429 with rule r2, wait Retry-After seconds
- Pass either fields or select to Terra AI tools, never both and never neither, or the call fails with a validation error
- Expect data by webhook after a user connects through the widget session. REST reads are for backfills and on-demand queries
- Use the Read only access level for the admin MCP server unless a change is needed. The MCP level can read API keys
Questions
Which is better for AI agents, Metriport Medical API or Terra API?
Terra API scores 67.3 (B) on agent readiness against Metriport Medical API's 46 (D), and leads in 6 of 7 scored categories.
Do Metriport Medical API and Terra API need an API key?
Metriport Medical API needs an API key. Terra API takes an API key or an OAuth sign-in.
Can an agent call Metriport Medical API and Terra API without installing anything?
No hosted endpoint is listed for Metriport Medical API. Terra API has a hosted endpoint at https://access.tryterra.co/api/v2/mcp/<user_id>.
Are Metriport Medical API and Terra API open source?
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). No open-source release is listed for Terra API.
Other comparisons with Metriport Medical API or Terra API
- 1upHealth vs Metriport Medical API
- Epic on FHIR vs Metriport Medical API
- Health Gorilla vs Metriport Medical API
- Junction API vs Metriport Medical API
- Medblocks vs Metriport Medical API
- Metriport Medical API vs Particle Health
- Metriport Medical API vs Redox
- Metriport Medical API vs Zus Health
- 1upHealth vs Terra API
- Aidbox vs Metriport Medical API
- Aidbox vs Terra API
- Epic on FHIR vs Terra API
- Health Gorilla vs Terra API
- Medplum vs Metriport Medical API
- Medplum vs Terra API
- Metriport Medical API vs ROOK
- Particle Health vs Terra API
- Redox vs Terra API
- Medblocks vs Terra API
- Metriport Medical API vs Validic Inform
- Metriport Medical API vs WHOOP Developer API
- Terra API vs Zus Health
- Junction API vs Terra API
- ROOK vs Terra API
- Terra API vs Validic Inform
- Terra API vs WHOOP Developer API
Machine-readable
- This page as Markdown
/compare/metriport-vs-terra.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/metriport.json·/api/v1/tools/terra.json - From a terminal
anchor compare metriport terra(the CLI) - Over MCP
compare_tools {"a": "metriport", "b": "terra"}at/mcp, no key