Overview
The CMS.gov Provider Data API gives access to Medicare and healthcare provider quality data from the Centers for Medicare and Medicaid Services. You need a free API key to use it, which you can obtain by registering on the data.cms.gov portal. It is useful for building healthcare comparison tools, hospital rating apps, or research dashboards.
Beginner Tip
Obtain your free API key from data.cms.gov and include it as an X-App-Token header in your requests — the API follows the Socrata Open Data API (SODA) format, so you can use the , , and parameters to filter and paginate results.
Available Data
Example Response
{
"make": "Toyota",
"model": "Camry",
"year": 2025,
"engine": "2.5L 4-cylinder",
"fuel_economy": {
"city_mpg": 28,
"highway_mpg": 39
},
"msrp": 28400
} Field Reference
provider_id Unique CMS identifier for the healthcare provider or facility. provider_name Name of the hospital, clinic, or healthcare provider. state Two-letter US state abbreviation where the provider is located. overall_rating Overall quality star rating assigned by CMS (1-5 stars). measure_score Numeric score for a specific quality measure or performance metric. Implementation Example
const url = "https://data.cms.gov/provider-data/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →FoodData Central
⭐ Beginner's PickFoodData Central is the USDA's authoritative nutritional database API, giving access to detailed nutrient profiles for hundreds of thousands of foods including branded products, raw ingredients, and restaurant items.
Infermedica
Infermedica is an AI-powered health API that analyzes symptom descriptions in plain text and suggests possible conditions or next steps.
Lexigram
Lexigram is a clinical NLP API that reads medical text and identifies clinical concepts like diagnoses, medications, and procedures using standardized ontologies.
Nutritionix
⭐ Beginner's PickNutritionix gives you access to the world's largest verified nutrition database, allowing you to look up calories, macronutrients, and micronutrients for branded and restaurant foods.
openFDA
⭐ Beginner's PickopenFDA provides free public access to FDA datasets covering drug adverse events, product recalls, medical device reports, and food safety alerts.