# Open Payments Teaching Hospitals Scraper

**Use case:** 

Scrape CMS Open Payments teaching hospital records with hospital name, CCN, city, state, and industry payment details. Export to JSON or CSV.

## Input

```json
{
  "startUrl": "https://openpaymentsdata.cms.gov/search?searchType=Provider&Country=UNITED+STATES",
  "searchType": "teachingHospital",
  "maxItems": 50
}
```

## Output

```json
{
  "teachingHospitalCcn": {
    "label": "CCN",
    "format": "text"
  },
  "entityDetailsUrl": {
    "label": "Details URL",
    "format": "link"
  },
  "teachingHospitalName": {
    "label": "Hospital Name",
    "format": "text"
  },
  "teachingHospitalCity": {
    "label": "City",
    "format": "text"
  },
  "teachingHospitalState": {
    "label": "State",
    "format": "text"
  },
  "teachingHospitalZipCode": {
    "label": "Zip Code",
    "format": "text"
  },
  "teachingHospitalAddresses": {
    "label": "Address",
    "format": "array"
  },
  "teachingHospitalAlternateNames": {
    "label": "Alternate Names",
    "format": "array"
  },
  "entitySummaryByAvailableYear": {
    "label": "Summary By Year",
    "format": "array"
  },
  "entityCurrentFilters": {
    "label": "Current Filters",
    "format": "object"
  },
  "entityFilteredSummaryByYear": {
    "label": "Filtered Summary By Year",
    "format": "array"
  },
  "entityTopFilteredAdditionalParties": {
    "label": "Top Additional Parties",
    "format": "array"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [OpenPayments Scraper](https://apify.com/parseforge/openpayments-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/openpayments-scraper) to learn more, explore other use cases, and run it yourself.