{
  "openapi": "3.0.1",
  "info": {
    "title": "US Nursing Home & Assisted Living Leads (CMS, MO, NY)",
    "description": "B2B leads of US skilled nursing homes (CMS Provider Data Catalog) and state-licensed assisted living / adult care facilities (Missouri DHSS, New York DOH), with bed counts, ownership type, CMS 5-star ratings, administrator names, and optional website + generic e-mail enrichment.",
    "version": "1.0",
    "x-build-id": "yHvPVZ5oTy7CSgKNw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesper_studio~us-senior-care-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesper_studio-us-senior-care-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/vesper_studio~us-senior-care-leads/runs": {
      "post": {
        "operationId": "runs-sync-vesper_studio-us-senior-care-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/vesper_studio~us-senior-care-leads/run-sync": {
      "post": {
        "operationId": "run-sync-vesper_studio-us-senior-care-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "US states (all 50 states + DC) to extract. Skilled nursing homes come from the federal CMS Provider Data Catalog (4pq5-n9py, nationwide coverage); state-licensed assisted living / adult care facilities are also pulled for MO (data.mo.gov/fenu-sipv) and NY (health.data.ny.gov/wssx-idhx). When several states are selected, maxItems is split evenly between them and queried in parallel.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FL",
                "GA",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "OH",
                "OK",
                "OR",
                "PA",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "WA",
                "WV",
                "WI",
                "WY"
              ],
              "enumTitles": [
                "Alabama (CMS Nursing Homes)",
                "Alaska (CMS Nursing Homes)",
                "Arizona (CMS Nursing Homes)",
                "Arkansas (CMS Nursing Homes)",
                "California (CMS Nursing Homes)",
                "Colorado (CMS Nursing Homes)",
                "Connecticut (CMS Nursing Homes)",
                "Delaware (CMS Nursing Homes)",
                "District of Columbia (CMS Nursing Homes)",
                "Florida (CMS Nursing Homes)",
                "Georgia (CMS Nursing Homes)",
                "Hawaii (CMS Nursing Homes)",
                "Idaho (CMS Nursing Homes)",
                "Illinois (CMS Nursing Homes)",
                "Indiana (CMS Nursing Homes)",
                "Iowa (CMS Nursing Homes)",
                "Kansas (CMS Nursing Homes)",
                "Kentucky (CMS Nursing Homes)",
                "Louisiana (CMS Nursing Homes)",
                "Maine (CMS Nursing Homes)",
                "Maryland (CMS Nursing Homes)",
                "Massachusetts (CMS Nursing Homes)",
                "Michigan (CMS Nursing Homes)",
                "Minnesota (CMS Nursing Homes)",
                "Mississippi (CMS Nursing Homes)",
                "Missouri (CMS + DHSS data.mo.gov Assisted Living)",
                "Montana (CMS Nursing Homes)",
                "Nebraska (CMS Nursing Homes)",
                "Nevada (CMS Nursing Homes)",
                "New Hampshire (CMS Nursing Homes)",
                "New Jersey (CMS Nursing Homes)",
                "New Mexico (CMS Nursing Homes)",
                "New York (CMS + DOH health.data.ny.gov Assisted Living)",
                "North Carolina (CMS Nursing Homes)",
                "North Dakota (CMS Nursing Homes)",
                "Ohio (CMS Nursing Homes)",
                "Oklahoma (CMS Nursing Homes)",
                "Oregon (CMS Nursing Homes)",
                "Pennsylvania (CMS Nursing Homes)",
                "Rhode Island (CMS Nursing Homes)",
                "South Carolina (CMS Nursing Homes)",
                "South Dakota (CMS Nursing Homes)",
                "Tennessee (CMS Nursing Homes)",
                "Texas (CMS Nursing Homes)",
                "Utah (CMS Nursing Homes)",
                "Vermont (CMS Nursing Homes)",
                "Virginia (CMS Nursing Homes)",
                "Washington (CMS Nursing Homes)",
                "West Virginia (CMS Nursing Homes)",
                "Wisconsin (CMS Nursing Homes)",
                "Wyoming (CMS Nursing Homes)"
              ]
            },
            "default": [
              "MO"
            ]
          },
          "facilityTypes": {
            "title": "Facility types",
            "type": "array",
            "description": "Which types of senior-care facilities to include: nursing_home (CMS-certified skilled nursing / nursing facilities across all 50 states + DC) and/or assisted_living (state-licensed assisted living, residential care and adult care facilities in MO and NY). Leave empty for both.",
            "items": {
              "type": "string",
              "enum": [
                "nursing_home",
                "assisted_living"
              ],
              "enumTitles": [
                "Nursing Home (CMS Nationwide + State SNF)",
                "Assisted Living / Adult Care (MO, NY Socrata)"
              ]
            },
            "default": [
              "nursing_home",
              "assisted_living"
            ]
          },
          "minBeds": {
            "title": "Minimum certified / licensed beds",
            "minimum": 1,
            "type": "integer",
            "description": "Only keep facilities with at least this many certified or licensed beds. Facilities without a published bed count are excluded when this is set."
          },
          "ownershipType": {
            "title": "Ownership type",
            "enum": [
              "for_profit",
              "non_profit",
              "government"
            ],
            "type": "string",
            "description": "Filter by normalized ownership category: for_profit (corporations, LLCs, partnerships, individuals), non_profit (non-profit and church-related corporations), or government (city, county, state, nursing home district). Leave empty to include all ownership types."
          },
          "starRatingMin": {
            "title": "Minimum CMS star rating (1–5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Minimum CMS overall 5-Star Quality Rating (1 to 5). Applies to CMS-certified nursing homes; state-licensed assisted living facilities do not have a CMS star rating and are skipped when this filter is set."
          },
          "enrichWebsiteEmail": {
            "title": "Enrich website & generic e-mail",
            "type": "boolean",
            "description": "Resolve the facility's official website and visit the homepage plus up to 3 contact/about pages concurrently (plain HTTP, robots.txt respected, fast 5 s timeout) to extract generic role e-mails only (info@, contact@, admissions@, office@, admin@…). Decodes Cloudflare email protection, JSON-LD contactPoint, mailto:, and [at] obfuscation. Administrator names are never used to guess e-mails. Each generic e-mail delivered is billed as an extra 'email-found' event.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum number of leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of leads to return across all selected states and facility types. You are billed per lead delivered.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}