# Care sites

> Search nursing homes, home health agencies, hospices, dialysis facilities, surgery centers, clinics and other non-hospital sites, and fetch one site with its detail and owners.

Source: https://openpipe.health/docs/api/care-sites/

A care site is a facility that is not an acute-care hospital: a nursing home, home health agency, hospice, dialysis facility, ambulatory surgery center, rehabilitation or long-term care hospital, clinic, or one of the smaller certified types. There are 94,745 of them. Acute-care hospitals are on [Facilities](https://openpipe.health/docs/api/facilities.md).

Every endpoint on this page costs 1 credit, charged only when the call succeeds. A `400` or a `404` is free.

The search and the owners list reject a query parameter they do not know with `400`:

```json
{ "error": "Unknown parameter: foo." }
```

## Search care sites

```http
GET /api/care-sites
```

Returns care sites, highest Medicare payment first unless `sort` says otherwise. Costs 1 credit.

### Parameters

| Name | Type | Description |
|---|---|---|
| `type` | string | One or more [facility types](#facility-types), comma-separated, for example `nursing_home,hospice`. Omit for all types. |
| `q` | string | Substring of the facility name or its legal name. 1 to 80 characters. |
| `state` | string | Two-letter state code. Case-insensitive. |
| `city` | string | City name. Case-insensitive, whole-name match. 1 to 80 characters. |
| `zip` | string | Five-digit ZIP code. |
| `chain` | string | Substring of the chain or affiliated-entity name. 1 to 80 characters. |
| `npi` | string | The facility's own 10-digit organization NPI. |
| `ownership` | string | `for_profit`, `non_profit`, `government` or `other`. |
| `min_beds` | number | Minimum bed count, 0 to 100,000. |
| `min_stars` | number | Minimum CMS star rating, 1 to 5. Half stars are allowed, for example `3.5`. |
| `min_patients` | number | Minimum Medicare patients, 0 to 10,000,000. |
| `private_equity` | string | `true` for sites with a private-equity owner, `false` for sites disclosed as having none. |
| `reit` | string | `true` for sites with a real-estate investment trust owner, `false` for sites disclosed as having none. |
| `changed_ownership_since` | string | A date as `YYYY-MM-DD`. Keeps sites whose ownership changed on or after it. |
| `sort` | string | `payment` (default), `patients`, `beds`, `stars`, `census`, `stations`, `operating_rooms`, `newest` or `name`. All descending except `name`. `newest` is by certification date. |
| `limit` | number | 1 to 200. Default 25. |
| `offset` | number | Rows to skip, 0 to 10,000. Default 0. |

### Facility types

| `type` | Sites | Detail table |
|---|---|---|
| `health_center_site` | 18,389 | `health_center_sites` |
| `nursing_home` | 14,697 | `nursing_homes` |
| `fqhc` | 13,049 | none |
| `home_health_agency` | 12,589 | `home_health_agencies` |
| `dialysis_facility` | 7,537 | `dialysis_facilities` |
| `ambulatory_surgery_center` | 6,710 | `surgery_centers` |
| `hospice` | 6,327 | `hospices` |
| `rural_health_clinic` | 5,816 | none |
| `intermediate_care_facility_iid` | 5,196 | none |
| `outpatient_therapy_provider` | 1,664 | none |
| `inpatient_rehab_facility` | 1,222 | none |
| `portable_xray_supplier` | 531 | none |
| `psychiatric_residential_treatment_facility` | 390 | none |
| `long_term_care_hospital` | 311 | none |
| `outpatient_rehab_facility` | 137 | none |
| `community_mental_health_center` | 126 | none |
| `organ_procurement_organization` | 54 | none |

Counts are a snapshot from 5 December 2026. [`GET /api/care-sites/types`](#list-care-site-types) has the current ones.

### Example

```sh
curl "$OPH_API/api/care-sites?type=nursing_home&private_equity=true&min_beds=100&limit=1" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "rows": [
    {
      "facility_id": "555287",
      "facility_type": "nursing_home",
      "name": "DIAMOND RIDGE HEALTHCARE CENTER",
      "city": "PITTSBURG",
      "state": "CA",
      "zip5": "94565",
      "npi": "1447821467",
      "ownership_type": "for_profit",
      "beds": 120,
      "star_rating": 3,
      "avg_daily_census": 113.1,
      "medicare_patients": 167,
      "medicare_payment": 9036059,
      "certified_date": "1987-10-02T00:00:00.000Z",
      "ownership_change_date": "2021-07-01T00:00:00.000Z",
      "has_private_equity_owner": true,
      "has_reit_owner": false,
      "top_owner": "DIAMOND RIDGE POST ACUTE LLC"
    }
  ],
  "limit": 1,
  "offset": 0,
  "sql": "SELECT facility_id, facility_type, name, ... FROM facilities WHERE facility_type = ANY($1::text[]) AND beds >= $2 AND has_private_equity_owner = $3 ORDER BY medicare_payment DESC NULLS LAST, facility_id LIMIT 1 OFFSET 0",
  "params": [["nursing_home"], 100, true],
  "sources": ["facilities"],
  "ms": 25,
  "usage": { "credits": 1, "creditsUsed": 1671, "creditsLimit": 5000, "txid": "11190" }
}
```

Each row also has `phone`, `chain_name`, `stations` and `operating_rooms`. `sql` is the statement the server ran, as a read-only [receipt](https://openpipe.health/docs/receipts.md).

Things to know:

- A search that matches nothing returns an empty `rows` and is still charged.
- Columns that do not apply to a type are `null`: `beds` for a hospice, `stations` for anything but dialysis, `operating_rooms` for anything but a surgery center.
- A filter on a column drops every site where that column is `null`. `private_equity=false` returns only the types that have owner data.
- `star_rating` means something different per type. Compare within one type only. See [Caveats](#caveats).

## List care site types

```http
GET /api/care-sites/types
```

Returns the 17 facility types with national counts. Costs 1 credit. It takes no parameters.

```sh
curl "$OPH_API/api/care-sites/types" -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "rows": [
    {
      "facility_type": "nursing_home",
      "facilities": 14697,
      "states": 53,
      "beds": "1567140",
      "medicare_patients": "1300290",
      "medicare_payment": "25206526112",
      "detail_table": "nursing_homes"
    },
    {
      "facility_type": "fqhc",
      "facilities": 13049,
      "states": 55,
      "beds": null,
      "medicare_patients": null,
      "medicare_payment": null,
      "detail_table": null
    }
  ],
  "sql": "SELECT facility_type, count(*)::int AS facilities, count(DISTINCT state)::int AS states, sum(beds)::bigint AS beds, ... FROM facilities GROUP BY facility_type ORDER BY facilities DESC",
  "params": [],
  "sources": ["facilities"],
  "ms": 150,
  "usage": { "credits": 1, "creditsUsed": 1663, "creditsLimit": 5000, "txid": "11173" }
}
```

`states` counts distinct state codes, which include DC and the territories. `detail_table` names the table that holds the type's extra columns, or `null` when it has none. The sums arrive as JSON strings. A `null` sum means no site of that type has a published figure.

## Get a care site

```http
GET /api/care-sites/:id
```

Returns one care site with its type-specific detail and its top owners. Costs 1 credit, charged only if the site exists.

`:id` is a `facility_id` from a search:

- A CMS Certification Number: six characters, or ten for surgery centers and portable X-ray suppliers.
- For `health_center_site`, the HRSA site number, for example `BPS-H80-015078`.

The id is upper-cased. A five-digit number is left-padded with a zero, so `15009` and `015009` are the same site. An id that is not 5 to 20 letters, digits and hyphens returns `400`:

```json
{ "error": "Facility id must be a CCN (for example 335020) or an HRSA site number (for example BPS-H80-015078)." }
```

### Response

| Field | Contents |
|---|---|
| `facility_id` | The id, normalized. |
| `facility` | Every column of the [`facilities`](https://openpipe.health/docs/data/tables.md#facilities) table: type, names, address, county, phone, NPI, ownership, chain, beds, star rating, census, Medicare patients, days and payment, certification and ownership-change dates, coordinates and the owner summary. |
| `detail_table` | The table `detail` came from, or `null` for a type that has none. |
| `detail` | Every column of that table for this site. For a nursing home: rating components, occupancy, nurse staffing and turnover, inspection results and penalties. `null` if the type has no detail table or the site has no row in it. |
| `owners` | Up to 25 owners and managing parties, largest stake first. The fields are those of [the owners list](#list-a-care-sites-owners). |
| `hospital` | For an inpatient rehab facility or long-term care hospital, its row in `hospitals`: CCN, name, city, state, beds, discharges, net patient revenue, fiscal year end. `null` otherwise. |
| `health_center_sites` | Only for an `fqhc`: up to 25 HRSA health center sites that bill under its number. |
| `sql` | The statements that ran, keyed `facility`, `owners`, and `detail`, `hospital` and `health_center_sites` when they apply. |
| `sources` | The datasets read. |

```sh
curl "$OPH_API/api/care-sites/555287" -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "facility_id": "555287",
  "facility": {
    "facility_id": "555287",
    "facility_type": "nursing_home",
    "name": "DIAMOND RIDGE HEALTHCARE CENTER",
    "legal_name": "DIAMOND RIDGE POST ACUTE LLC",
    "city": "PITTSBURG",
    "state": "CA",
    "county_fips": "06013",
    "ownership_type": "for_profit",
    "ownership_detail": "For profit - Limited Liability company",
    "beds": 120,
    "star_rating": 3,
    "medicare_patients": 167,
    "medicare_service_days": 8824,
    "medicare_payment": 9036059,
    "owner_count": 22,
    "has_private_equity_owner": true,
    "top_owner": "DIAMOND RIDGE POST ACUTE LLC"
  },
  "detail_table": "nursing_homes",
  "detail": {
    "overall_rating": 3,
    "staffing_rating": 4,
    "occupancy_pct": 94.3,
    "total_nurse_hours_per_resident_day": 4.37721,
    "health_deficiencies": 12,
    "chain_facilities": 50
  },
  "owners": [
    {
      "owner_name": "DIAMOND RIDGE POST ACUTE LLC",
      "owner_type": "O",
      "role": "5% OR GREATER DIRECT OWNERSHIP INTEREST",
      "pct_ownership": 100,
      "is_private_equity": false,
      "source": "pecos"
    }
  ],
  "hospital": null,
  "sql": { "facility": "SELECT * FROM facilities WHERE facility_id = $1", "owners": "SELECT owner_name, ...", "detail": "SELECT * FROM nursing_homes WHERE facility_id = $1" },
  "sources": ["facilities", "facility_owners", "nursing_homes"],
  "ms": 51,
  "usage": { "credits": 1, "creditsUsed": 1680, "creditsLimit": 5000, "txid": "11208" }
}
```

The example is trimmed: `facility`, `detail` and each owner have more fields, and this site has 22 owner rows.

An unknown id returns `404`. The message names the id and adds `Hospitals are under /api/facilities.`

## List a care site's owners

```http
GET /api/care-sites/:id/owners
```

Returns every owner and managing party a care site disclosed to CMS, largest stake first. Costs 1 credit, charged only if the site exists.

### Parameters

| Name | Type | Description |
|---|---|---|
| `equity_only` | string | `true` to keep only parties with an ownership percentage above zero. |
| `limit` | number | 1 to 200. Default 50. |
| `offset` | number | Rows to skip, 0 to 10,000. Default 0. |

### Example

```sh
curl "$OPH_API/api/care-sites/555287/owners?equity_only=true&limit=1" \
  -H "Authorization: Bearer $OPH_KEY"
```

```json
{
  "facility": { "facility_id": "555287", "facility_type": "nursing_home", "name": "DIAMOND RIDGE HEALTHCARE CENTER", "city": "PITTSBURG", "state": "CA" },
  "total": 22,
  "with_equity": 4,
  "rows": [
    {
      "owner_name": "DIAMOND RIDGE POST ACUTE LLC",
      "owner_type": "O",
      "owner_associate_id": "0244629038",
      "role": "5% OR GREATER DIRECT OWNERSHIP INTEREST",
      "title": null,
      "association_date": "2022-02-03T00:00:00.000Z",
      "pct_ownership": 100,
      "is_private_equity": false,
      "is_reit": false,
      "is_holding_company": false,
      "is_management_company": false,
      "is_chain_home_office": false,
      "is_for_profit": false,
      "source": "pecos"
    }
  ],
  "limit": 1,
  "offset": 0,
  "sql": "SELECT owner_name, owner_type, owner_associate_id, role, ... FROM facility_owners WHERE facility_id = $1 AND pct_ownership > 0 ORDER BY pct_ownership DESC NULLS LAST, owner_name, id LIMIT 1 OFFSET 0",
  "params": ["555287"],
  "sources": ["facilities", "facility_owners"],
  "ms": 43,
  "usage": { "credits": 1, "creditsUsed": 1681, "creditsLimit": 5000, "txid": "11210" }
}
```

`total` counts every owner row for the site and `with_equity` those with a percentage above zero. Neither changes with `equity_only`, so page against `with_equity` when you set it.

`owner_type` is `I` for an individual and `O` for an organization. The same party appears once per role, so a person can have several rows.

A site of a type with no owner data returns an empty `rows` with `total` 0, and is charged.

## Caveats

### Acute-care hospitals are not here

They are in `hospitals`, on [Facilities](https://openpipe.health/docs/api/facilities.md) and [Hospitals and systems](https://openpipe.health/docs/api/hospital-intel.md). Inpatient rehab facilities and long-term care hospitals appear in both: `hospital_ccn` on the care site points at the hospital row.

### Health center sites and FQHCs overlap

HRSA health center sites and CMS-certified FQHCs are two registries of largely the same clinics. A `health_center_site` carries the id of its `fqhc` row in `fqhc_facility_id` when HRSA publishes it, which is about 40% of the time. Count one type or the other, not both.

### Volumes are Medicare fee-for-service only

`medicare_patients`, `medicare_service_days` and `medicare_payment` are traditional Medicare, calendar year 2024. Commercial insurance, Medicare Advantage, Medicaid and self-pay are not counted.

- Nursing homes: Part A stays, which are short rehab stays, not long-term residents.
- Home health and hospice: episodes.
- Surgery centers: Part B facility claims billed under the site's NPI.
- An inpatient rehab unit carries the figures of its whole unit, reported under the parent hospital.

`null` means no published figure, not zero. The types with no figure at all are `null` in [the types list](#list-care-site-types).

### Owner flags are self-reported

Owners come from the ownership disclosures facilities file with CMS.

- The private-equity, REIT, holding-company and management-company flags are the filer's own answers. CMS has said the reporting is incomplete. A `false` or `null` flag does not prove the absence of such an owner.
- Owner data exists only for nursing homes, home health agencies, hospices, FQHCs and rural health clinics. Dialysis facilities, surgery centers and the other types have none, and their owner columns are `null`.
- Most rows are directors, officers and managing employees with a 0% or blank share. Use `equity_only=true` to find equity owners.
- About 4% of rows have no owner name in the source and read `UNKNOWN`.
- 166 Medicaid-only nursing homes have owners from the Care Compare ownership file (`source` is `care_compare`), which has no investor flags.

### Star ratings differ by type

`star_rating` is the overall rating for a nursing home, the quality-of-patient-care rating for home health (half stars), the five-star rating for dialysis, and the family caregiver survey rating for a hospice. Other types have none. A third of home health agencies are too small or too new to have one, and only a third of hospices have enough survey responses for one.

### Release dates

| Data | Release |
|---|---|
| Certification (the list of sites, beds, dates) | Provider of Services file, third quarter of 2026 |
| Listings and ratings | Care Compare, September to November 2026 |
| Nursing home detail | Care Compare, November 2026 |
| Home health and dialysis detail | Care Compare, October 2026 |
| Hospice detail | Care Compare, November 2026 |
| Surgery center detail | Provider of Services file, third quarter of 2026. It is what each center reported at its last certification survey, which can be several years old. |
| HRSA health center sites | 4 December 2026 |
| Nursing home owners | 12 November 2026 |
| Home health, hospice, FQHC and rural health clinic owners | 29 September 2026 |
| Medicare patients, days and payment | Calendar year 2024 |

A facility that Care Compare still lists but the Provider of Services file marks terminated is left out. A few certified sites are not on Care Compare and have no `detail`: 16 nursing homes, 388 home health agencies, 98 hospices and 88 dialysis facilities.
