Free FHIR server: a free FHIR R4 sandbox and database
A free HL7 FHIR R4 database to build against: the Anpheros sandbox with 30 synthetic patients per project, the production API, OAuth and webhooks, no card, EU-hosted — and how it differs from a self-hosted server.
A free FHIR server is an HL7 FHIR R4 endpoint you can store and query resources on without paying for infrastructure while you build and test. Anpheros offers one as its sandbox: the same API as production, 30 synthetic patients per project with realistic records, your own test patients, an API key you create yourself, and no card or contract. It is free for as long as you build; you pay only when you go to production with real patients.
Try the free FHIR server now
Base URL: https://platform.anpheros.com/fhir/R4. The capability statement needs no key:
curl -s https://platform.anpheros.com/fhir/R4/metadata | head -c 400
For data, sign in to the dashboard with Google, press Get a sandbox key and read the synthetic patients:
curl -s "https://platform.anpheros.com/fhir/R4/Patient?_count=3" -H "Authorization: Bearer sk_test_..."
Free FHIR servers compared
| Anpheros sandbox | HAPI FHIR public test server | Firely public test server | Azure Health Data Services (FHIR service) | |
|---|---|---|---|---|
| Base URL | platform.anpheros.com/fhir/R4 |
hapi.fhir.org/baseR4 |
server.fire.ly |
your own workspace |
| Authentication | API key, or OAuth 2.1 / SMART on FHIR | none | none | Microsoft Entra ID (OAuth) |
| FHIR version | R4 (30 resource types) | R4, plus other versions | R4, plus other versions | R4 |
| Who sees your data | only your project | everyone | everyone | only your subscription |
| Persistence | kept; reset only when you choose | purged from time to time | reset from time to time | kept |
| Test data | 30 synthetic patients with six months of history | whatever others uploaded | whatever others uploaded | none; you load your own |
| Limits | 10,000 writes a day, 250 MB, 50 own patients | shared, no guarantees | shared, no guarantees | Azure quotas |
| Price | free, no card | free | free | paid Azure usage |
Public test servers are the fastest way to learn the standard: no sign-up, any resource type. Do not put anything on them you would not publish. A private sandbox is for testing your own product, with authentication and consent as in production. Check each provider's current terms before you depend on it.
What the sandbox gives you
| Sandbox | |
|---|---|
| Price | Free, no time limit, no card |
| FHIR | HL7 FHIR R4, 30 resource types, search, history, transactions, $everything, the International Patient Summary |
| REST | the simpler REST v1 view of the same data |
| Patients | 30 synthetic patients per project, plus up to 50 test patients you create |
| Writes | 10,000 a day per project |
| Storage | 250 MB per project (data and files) |
| Auth | API keys and the full OAuth 2.1 / SMART on FHIR flow, with a test consent screen |
| Events | signed webhooks, retried, with a local verification example |
| SDKs | Dart / Flutter and TypeScript |
| Region | hosted in the European Union, like production |
| Reset | one click, the 30 synthetic patients return to how they were; your own patients stay |
The synthetic patients are generated with coherent histories: conditions, medications matched to them, laboratory results with LOINC codes and reference ranges, vitals over months, documents and an emergency summary. They look like real records to your code, so a dashboard, a chart or an AI prompt built against them works unchanged in production.
Why not just run HAPI FHIR locally?
You can, and for learning FHIR it is a fine choice. A self-hosted server gives you a FHIR endpoint; it does not give you patient consent, pairwise identifiers between applications, provenance on every write, an audit the patient can read, laboratory import from HL7 v2 or a hosted OAuth server. Those are the parts a healthcare product spends its first months on. The Anpheros sandbox has them from the first request, and they are the same code that runs in production.
The trade-off is that Anpheros is a managed service with a defined data model, not a blank FHIR server. If your product needs resource types or extensions outside the 30 supported, check the FHIR platform guide first.
What you can build in the sandbox
- A patient app that reads and writes its user's record with consent.
- A clinic or laboratory integration that writes on behalf of an organisation.
- An AI assistant or agent that reads a patient's context through the context API and writes back with AI provenance.
- A migration test: import an existing dataset as FHIR transactions and check what your code sees.
The Getting started guide goes from an API key to all of these in about an hour.
From sandbox to production
Production uses the same API, the same SDKs and the same consent flow. You create a production key, point your configuration at it and your sandbox code runs against real patients. The first month of production is free on every plan; after that the pricing is a monthly price per organisation for a number of stored patients, with sandbox, test and synthetic patients never counted.
Limits to know before you start
- The sandbox is for building and testing. Real patient data must not be stored in it.
- Rate limits are lower than in production; see Limits and rate limits.
- Resetting the test patients recreates the 30 synthetic patients (with new ids) and deletes what you wrote on them; patients you created yourself stay.
Frequently asked questions
Is there a free health data API for developers?
Yes. The Anpheros sandbox is a free FHIR R4 and REST health data API: sign in with Google, get a key and work with 30 synthetic patients. No card is needed.
Is there a free FHIR server?
Yes. Free FHIR server options are public test servers (HAPI FHIR at hapi.fhir.org/baseR4, Firely at server.fire.ly), open-source servers you run yourself (HAPI FHIR, Microsoft FHIR Server) and managed sandboxes. The Anpheros sandbox is a free FHIR server private to your project, with 30 synthetic patients and the same API as production.
Which free FHIR server should I use for testing?
For learning FHIR or a quick request: a public test server. For testing your product with realistic patients, authentication and consent: a private sandbox such as Anpheros. For full control of the server: run HAPI FHIR or the Microsoft FHIR Server yourself.
What does the free sandbox include?
30 synthetic patients with six months of history, 50 patients of your own, 10,000 resource writes a day, OAuth consent, webhooks and the SDKs. See FHIR sandbox for the details.
Related
- How to store medical records using FHIR R4: step-by-step tutorial with curl
- FHIR MCP server for AI agents
- Getting started
- FHIR platform
- Healthcare API with patient consent
- Which FHIR server is best for a production healthcare app?
- Pricing
- Synthetic patient data for testing healthcare software: Synthea, personas and loading bundles
- FHIR proof of concept for pharma: what a pilot must show and how to run it in an afternoon
Ask your AI
Paste this into Claude, ChatGPT, Cursor or Claude Code. Your assistant reads this guide and adapts it to your code.
Read https://developers.anpheros.com/guides/free-fhir-database.md and help me apply this guide to my own project. Use the Anpheros sandbox (base URL https://platform.anpheros.com) with my API key from the ANPHEROS_KEY environment variable, never written in the code. Give me complete, runnable code, the response I should expect, and how to fix the errors in https://developers.anpheros.com/guides/troubleshooting.md if a call fails.Open in ClaudeOpen in ChatGPTThis guide as MarkdownBuild the whole integration with an AI coding tool
Try it free in the sandbox · first FHIR call in 5 minutesFree · 30 synthetic patients · no cardYour first API call in 2 minutes →
