# Look up specific facilities by CMS Certification Number

**Use case:** 

Run this task to look up specific facilities by cms certification number and export official CMS nursing home facility rows to an Apify dataset.

## Input

```json
{
  "nationwide": false,
  "states": [
    "CA",
    "NY",
    "TX"
  ],
  "ccns": [
    "055010",
    "335034"
  ],
  "searchTerms": [
    "Boston",
    "90210",
    "Maple Grove"
  ],
  "ownershipTypes": [
    "For profit",
    "Non profit"
  ],
  "specialFocusStatus": "any",
  "includeRawSource": false,
  "maxResults": 10
}
```

## Output

```json
{
  "ccn": {
    "label": "CMS Certification Number",
    "format": "string"
  },
  "facilityName": {
    "label": "Facility name",
    "format": "string"
  },
  "legalBusinessName": {
    "label": "Legal business name",
    "format": "string"
  },
  "providerType": {
    "label": "Provider type",
    "format": "string"
  },
  "address": {
    "label": "Address",
    "format": "string"
  },
  "city": {
    "label": "City",
    "format": "string"
  },
  "county": {
    "label": "County",
    "format": "string"
  },
  "state": {
    "label": "State",
    "format": "string"
  },
  "zip": {
    "label": "ZIP code",
    "format": "string"
  },
  "phone": {
    "label": "Phone",
    "format": "string"
  },
  "latitude": {
    "label": "Latitude",
    "format": "number"
  },
  "longitude": {
    "label": "Longitude",
    "format": "number"
  },
  "ownershipType": {
    "label": "Ownership type",
    "format": "string"
  },
  "certifiedBeds": {
    "label": "Certified beds",
    "format": "integer"
  },
  "averageResidents": {
    "label": "Average residents",
    "format": "number"
  },
  "firstApprovedDate": {
    "label": "First approved date",
    "format": "string"
  },
  "ratings.overall": {
    "label": "Overall rating",
    "format": "integer"
  },
  "ratings.healthInspection": {
    "label": "Health inspection rating",
    "format": "integer"
  },
  "ratings.staffing": {
    "label": "Staffing rating",
    "format": "integer"
  },
  "ratings.quality": {
    "label": "Quality measure rating",
    "format": "integer"
  },
  "ratings.shortStay": {
    "label": "Short-stay rating",
    "format": "integer"
  },
  "ratings.longStay": {
    "label": "Long-stay rating",
    "format": "integer"
  },
  "compliance.healthDeficiencies": {
    "label": "Health deficiencies",
    "format": "integer"
  },
  "compliance.infectionCitations": {
    "label": "Infection citations",
    "format": "integer"
  },
  "compliance.inspectionScore": {
    "label": "Inspection score",
    "format": "number"
  },
  "compliance.specialFocusStatus": {
    "label": "Special focus status",
    "format": "string"
  },
  "compliance.abuseIndicator": {
    "label": "Abuse indicator",
    "format": "string"
  },
  "compliance.sprinklerSystems": {
    "label": "Sprinkler systems",
    "format": "string"
  },
  "penalties.fineCount": {
    "label": "Fine count",
    "format": "integer"
  },
  "penalties.fineTotal": {
    "label": "Fine total",
    "format": "number"
  },
  "penalties.paymentDenialCount": {
    "label": "Payment denial count",
    "format": "integer"
  },
  "penalties.penaltyTotal": {
    "label": "Penalty total",
    "format": "number"
  },
  "staffing.rnHoursPerResidentDay": {
    "label": "RN hours per resident day",
    "format": "number"
  },
  "staffing.totalNurseStaffHoursPerResidentDay": {
    "label": "Total nurse staff hours per resident day",
    "format": "number"
  },
  "staffing.rnTurnover": {
    "label": "RN turnover",
    "format": "number"
  },
  "staffing.totalNursingStaffTurnover": {
    "label": "Total nursing staff turnover",
    "format": "number"
  },
  "chain.id": {
    "label": "Chain ID",
    "format": "string"
  },
  "chain.name": {
    "label": "Chain name",
    "format": "string"
  },
  "chain.facilityCount": {
    "label": "Chain facility count",
    "format": "integer"
  },
  "source.datasetId": {
    "label": "Source dataset ID",
    "format": "string"
  },
  "source.url": {
    "label": "Source URL",
    "format": "string"
  },
  "source.processingDate": {
    "label": "CMS processing date",
    "format": "string"
  },
  "source.fetchedAt": {
    "label": "Fetched at",
    "format": "string"
  },
  "matchedTarget": {
    "label": "Matched target",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [CMS Nursing Home Compare Scraper](https://apify.com/maximedupre/cms-nursing-home-compare-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/cms-nursing-home-compare-scraper) to learn more, explore other use cases, and run it yourself.