{"uid":"cap_Iu-3f1WLq2XyuwhmmXwi0","slug":"2s-io-9e5c17a5","name":"CMS Care Compare Hospital Lookup","description":"CMS Care Compare lookup for every CMS-certified US hospital (~5k). Lookup by 6-digit CMS Facility ID for direct match, or fuzzy by name + state + city + hospital type, with optional minimum overall rating (1-5) filter. Each record includes facility ID, name, full address, phone, hospital type (Acute Care / Critical Access / Psychiatric / etc.), ownership category, emergency services flag, birthing-friendly designation, CMS overall star rating, and per-measure-group counts (mortality, safety, readmission, patient experience, effectiveness, timeliness, medical imaging). Public-domain federal data.","url":"https://2s.io/api/health/hospital-lookup","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"properties":{"city":{"type":"string","description":"City name (case-insensitive contains)."},"name":{"type":"string","description":"Fuzzy name match."},"limit":{"type":"integer","default":20,"maximum":100,"minimum":1},"state":{"type":"string","description":"2-letter US state."},"offset":{"type":"integer","default":0,"minimum":0},"minRating":{"type":"integer","maximum":5,"minimum":1},"facilityId":{"type":"string","description":"6-digit CMS facility ID."},"hospitalType":{"type":"string","description":"E.g., \"Acute Care\", \"Critical Access\", \"Psychiatric\"."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"city":"Boston","limit":10,"state":"MA","offset":0,"minRating":4}}},"response":{"data":{"ok":true,"meta":{"query":{"city":"Boston","name":null,"limit":10,"state":"MA","offset":0,"minRating":4,"facilityId":null,"hospitalType":null},"returned":9},"items":[{"city":"BOSTON","name":"CARNEY HOSPITAL","phone":"(617) 506-2000","state":"MA","county":"SUFFOLK","address":"2100 DORCHESTER AVENUE","zipcode":"02124","ownership":"Proprietary","facilityId":"220017","hospitalType":"Acute Care Hospitals","overallRating":null,"safetyGroupCount":null,"imagingGroupCount":null,"mortalityGroupCount":null,"experienceGroupCount":null,"hasEmergencyServices":true,"timelinessGroupCount":null,"readmissionGroupCount":null,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"MASSACHUSETTS GENERAL HOSPITAL","phone":"(617) 726-2000","state":"MA","county":"SUFFOLK","address":"55 FRUIT STREET","zipcode":"02114","ownership":"Voluntary non-profit - Private","facilityId":"220071","hospitalType":"Acute Care Hospitals","overallRating":5,"safetyGroupCount":8,"imagingGroupCount":null,"mortalityGroupCount":8,"experienceGroupCount":null,"hasEmergencyServices":true,"timelinessGroupCount":null,"readmissionGroupCount":11,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":true},{"city":"BOSTON","name":"MASSACHUSETTS EYE AND EAR INFIRMARY -","phone":"(617) 523-7900","state":"MA","county":"SUFFOLK","address":"243 CHARLES STREET","zipcode":"02114","ownership":"Voluntary non-profit - Private","facilityId":"220075","hospitalType":"Acute Care Hospitals","overallRating":null,"safetyGroupCount":2,"imagingGroupCount":null,"mortalityGroupCount":1,"experienceGroupCount":null,"hasEmergencyServices":true,"timelinessGroupCount":null,"readmissionGroupCount":2,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"NEW ENGLAND BAPTIST HOSPITAL","phone":"(617) 754-5800","state":"MA","county":"SUFFOLK","address":"125 PARKER HILL AVENUE","zipcode":"02120","ownership":"Voluntary non-profit - Private","facilityId":"220088","hospitalType":"Acute Care Hospitals","overallRating":5,"safetyGroupCount":3,"imagingGroupCount":null,"mortalityGroupCount":2,"experienceGroupCount":null,"hasEmergencyServices":false,"timelinessGroupCount":null,"readmissionGroupCount":3,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"BRIGHAM AND WOMEN'S HOSPITAL","phone":"(617) 732-5500","state":"MA","county":"SUFFOLK","address":"75 FRANCIS STREET","zipcode":"02115","ownership":"Voluntary non-profit - Private","facilityId":"220110","hospitalType":"Acute Care Hospitals","overallRating":5,"safetyGroupCount":8,"imagingGroupCount":null,"mortalityGroupCount":8,"experienceGroupCount":null,"hasEmergencyServices":true,"timelinessGroupCount":null,"readmissionGroupCount":11,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":true},{"city":"BOSTON","name":"BOSTON CHILDREN'S HOSPITAL","phone":"(617) 735-6000","state":"MA","county":"SUFFOLK","address":"300 LONGWOOD AVENUE","zipcode":"02115","ownership":"Voluntary non-profit - Private","facilityId":"223302","hospitalType":"Childrens","overallRating":null,"safetyGroupCount":null,"imagingGroupCount":null,"mortalityGroupCount":null,"experienceGroupCount":null,"hasEmergencyServices":true,"timelinessGroupCount":null,"readmissionGroupCount":null,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"THE SHRINERS' HOSPITAL FOR CHILDREN - BOSTON","phone":"(617) 722-3000","state":"MA","county":"SUFFOLK","address":"51 BLOSSOM STREET","zipcode":"02114","ownership":"Proprietary","facilityId":"223304","hospitalType":"Childrens","overallRating":null,"safetyGroupCount":null,"imagingGroupCount":null,"mortalityGroupCount":null,"experienceGroupCount":null,"hasEmergencyServices":false,"timelinessGroupCount":null,"readmissionGroupCount":null,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"ARBOUR HOSPITAL","phone":"(617) 522-4400","state":"MA","county":"SUFFOLK","address":"49 ROBINWOOD AVENUE","zipcode":"02130","ownership":"Proprietary","facilityId":"224013","hospitalType":"Psychiatric","overallRating":null,"safetyGroupCount":null,"imagingGroupCount":null,"mortalityGroupCount":null,"experienceGroupCount":null,"hasEmergencyServices":false,"timelinessGroupCount":null,"readmissionGroupCount":null,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null},{"city":"BOSTON","name":"DR SOLOMON CARTER FULLER MENTAL HEALTH CENTER","phone":"(617) 626-8700","state":"MA","county":"SUFFOLK","address":"85 EAST NEWTON STREET","zipcode":"02118","ownership":"Government - State","facilityId":"224040","hospitalType":"Psychiatric","overallRating":null,"safetyGroupCount":null,"imagingGroupCount":null,"mortalityGroupCount":null,"experienceGroupCount":null,"hasEmergencyServices":false,"timelinessGroupCount":null,"readmissionGroupCount":null,"effectivenessGroupCount":null,"meetsBirthingFriendlyCriteria":null}],"total":9,"source":{"url":"https://data.cms.gov/provider-data/","license":"Public domain (US government work)","provider":"CMS Care Compare — Hospital General Information"}},"meta":{"cost":{"usd":0.0012,"tier":0},"caller":"x402","version":null,"endpoint":"health.hospital-lookup","settlement":{"txHash":"0x0aa446677090d39db5e8d021283269333f03ade6ab747e74e064022e9ebe08d4","network":"eip155:8453","success":true}}}},"exampleRequest":{"city":"Boston","limit":10,"state":"MA","offset":0,"minRating":4},"tags":["x402"],"displayCostAmount":"0.0012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vUfhIi_Q2hvRM30NS6yYD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up CMS-certified US hospitals by facility ID or fuzzy name/location/type with optional star rating filter, returning full facility details and quality measure counts","exampleAgentPrompt":"Can you look up CMS Care Compare details and quality ratings for Massachusetts General Hospital in Boston, MA — I want to see their CMS star rating, hospital type, and quality measure counts? Only show me hospitals with at least a 4-star overall rating.","exampleUseCases":null,"resultDescription":"Returns a paginated list of CMS-certified hospital records matching the query. Each record includes the 6-digit CMS facility ID, hospital name, full address, phone number, hospital type (Acute Care / Critical Access / Psychiatric / etc.), ownership category, whether emergency services are available, birthing-friendly designation, CMS overall star rating (1–5), and per-measure-group counts for mortality, safety, readmission, patient experience, effectiveness, timeliness, and medical imaging.","failureModes":["No hospitals found matching the given name/state/city/type combination — returns empty result set","Invalid facilityId format (must be 6-digit string) — returns error or empty results","Invalid state code (must be 2-letter US state abbreviation) — returns error","minRating out of range (must be 1–5) — returns validation error","limit exceeds maximum of 100 — returns validation error","Ambiguous fuzzy name match returns many unrelated hospitals — agent should add more filters"],"whenToPreferThis":"Use this endpoint when you need structured, authoritative CMS quality data on US hospitals — including star ratings, quality measure breakdowns, and facility metadata. Prefer this over general web search when you need machine-readable federal hospital data, need to filter by hospital type or minimum rating, or need to look up a specific hospital by its CMS facility ID. Best for healthcare compliance, research, or patient decision-support use cases.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":2,"lastUsedAt":"2026-07-17T20:15:04.678Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:53:37.906Z","isFirstParty":false}