{
  "openapi": "3.0.1",
  "info": {
    "title": "Echovita Obituary & Funeral Home Scraper",
    "description": "Scrape Echovita.com obituaries and funeral homes across the US, Canada, Australia, and New Zealand - search by name, browse by state/province/city/date or by funeral home, and pull full obituary detail (dates, location, biography, service info) or funeral home directory records.",
    "version": "1.0",
    "x-build-id": "dcWsFu3Xcfl4u4jBj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~echovita-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-echovita-scraper",
        "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/crawlerbros~echovita-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-echovita-scraper",
        "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/crawlerbros~echovita-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-echovita-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byState",
              "byCity",
              "byDate",
              "byUrls",
              "funeralHomes",
              "byFuneralHome"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "nameQuery": {
            "title": "Name (mode=search)",
            "type": "string",
            "description": "Full or partial name to search obituaries for.",
            "default": "Smith"
          },
          "country": {
            "title": "Country",
            "enum": [
              "us",
              "ca",
              "au",
              "nz"
            ],
            "type": "string",
            "description": "Which Echovita market to browse. Determines which of `state` / `caProvince` / `auState` / `nzRegion` applies to `byState`/`byCity`/`funeralHomes`.",
            "default": "us"
          },
          "state": {
            "title": "US state (country=us)",
            "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"
            ],
            "type": "string",
            "description": "Required for `byState` / `byCity` when `country=us`. Optional location filter for `funeralHomes`."
          },
          "caProvince": {
            "title": "Canadian province/territory (country=ca)",
            "enum": [
              "ab",
              "bc",
              "mb",
              "nb",
              "nl",
              "ns",
              "nt",
              "nu",
              "on",
              "pe",
              "qc",
              "sk",
              "yt"
            ],
            "type": "string",
            "description": "Required for `byState` / `byCity` when `country=ca`. Optional location filter for `funeralHomes`."
          },
          "auState": {
            "title": "Australian state/territory (country=au)",
            "enum": [
              "act",
              "nsw",
              "nt",
              "qld",
              "sa",
              "tas",
              "vic",
              "wa"
            ],
            "type": "string",
            "description": "Required for `byState` / `byCity` when `country=au`. Optional location filter for `funeralHomes`."
          },
          "nzRegion": {
            "title": "New Zealand island (country=nz)",
            "enum": [
              "ni",
              "si"
            ],
            "type": "string",
            "description": "Required for `byState` / `byCity` when `country=nz`. Optional location filter for `funeralHomes`. Echovita groups New Zealand obituaries by island rather than by region/district."
          },
          "city": {
            "title": "City (mode=byCity)",
            "type": "string",
            "description": "City name, required for `byCity` (used together with the state/province/region field for the selected `country`). Optional location filter for `funeralHomes`."
          },
          "deathDate": {
            "title": "Date of death (mode=byDate)",
            "type": "string",
            "description": "Date in `YYYY-MM-DD` format. Returns obituaries of people who died on this date, in the selected `country`."
          },
          "obituaryUrls": {
            "title": "Obituary URLs (mode=byUrls)",
            "type": "array",
            "description": "Direct echovita.com obituary detail URLs to fetch (any supported country).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "funeralHomeUrl": {
            "title": "Funeral home URL (mode=byFuneralHome)",
            "type": "string",
            "description": "Direct echovita.com funeral home detail URL. Returns the obituaries that funeral home has published."
          },
          "rangeTime": {
            "title": "Time range",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Limit `search` / `byState` / `byCity` / `funeralHomes` / `byFuneralHome` to obituaries published within this window (Echovita's own recency filter). Not used by `byDate`, `byUrls`.",
            "default": "4"
          },
          "minBirthYear": {
            "title": "Min birth year",
            "minimum": 1850,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop obituaries where the person was born before this year."
          },
          "maxBirthYear": {
            "title": "Max birth year",
            "minimum": 1850,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop obituaries where the person was born after this year."
          },
          "minDeathYear": {
            "title": "Min death year",
            "minimum": 1850,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop obituaries where death occurred before this year."
          },
          "maxDeathYear": {
            "title": "Max death year",
            "minimum": 1850,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop obituaries where death occurred after this year."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not required — Echovita.com serves pages without anti-bot protection. Left available for resilience.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}