---
title: "Hospital Stays and Outpatient Services"
method: GET
path: "/healthcare/hospital-procedures"
tags: ["Healthcare Providers"]
---

# Hospital Stays and Outpatient Services

`GET /healthcare/hospital-procedures`

## Request

- Base URL: `https://api.dataporium.io`
- URL: `https://api.dataporium.io/healthcare/hospital-procedures`
- Auth: API key in query parameter `apikey`

Medicare hospital stays per hospital (CCN) and diagnosis related group (DRG): discharges, average covered charges, average total payment and average Medicare payment; and outpatient services per hospital and ambulatory payment classification (APC). /healthcare/hospital-procedures/codes lists DRG or APC codes with national totals; /codes/{code} gives one code by year and state with its top hospitals.

## Query parameters

- `ccn` string
- `code` string
- `setting` string
- `ticker` string

## Response `200`

Successful response (JSON).

- object

## Other responses

- `401`: No API key in the request.
- `403`: The API key is not valid or has expired.

---

[API](https://skmtc.dev/dataporium/apis/dataporium-data-api.md) · [All operations](https://skmtc.dev/dataporium/apis/dataporium-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataporium/apis/dataporium-data-api/revisions/8bc593179dc8?raw)
