{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Care Facilities (MHLW Open Data, CC BY)",
    "description": "All Japanese long-term care providers (nursing homes, home care, day care, group homes and 30+ more registers) from the official MHLW 介護サービス情報公表システム open data (CC BY). English field schema, prefecture and service-type filters, corporate numbers, geocoordinates, source attribution embedded in ever…",
    "version": "0.1",
    "x-build-id": "2dX8aV8fWL3Hdqhtw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpopendata~japan-care-facilities/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpopendata-japan-care-facilities",
        "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/jpopendata~japan-care-facilities/runs": {
      "post": {
        "operationId": "runs-sync-jpopendata-japan-care-facilities",
        "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/jpopendata~japan-care-facilities/run-sync": {
      "post": {
        "operationId": "run-sync-jpopendata-japan-care-facilities",
        "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": {
          "serviceTypes": {
            "title": "Service types",
            "type": "array",
            "description": "Optional, default [\"510\"] (介護老人福祉施設 special nursing homes). Which service registers to output (multi-select; one open-data CSV = 1 polite download per code). Choose \"all\" for every register (~250k facilities, 35 downloads — set maxApiRequests to 40+). Via API a single string or comma-separated string (\"510, 520\") and Japanese names are accepted too.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "110",
                "120",
                "130",
                "140",
                "150",
                "155",
                "160",
                "170",
                "210",
                "220",
                "230",
                "320",
                "331",
                "332",
                "334",
                "335",
                "336",
                "337",
                "361",
                "362",
                "364",
                "410",
                "430",
                "510",
                "520",
                "530",
                "540",
                "550",
                "551",
                "710",
                "720",
                "730",
                "760",
                "770",
                "780"
              ],
              "enumTitles": [
                "ALL 35 registers (~250k facilities)",
                "110 訪問介護 — Home-visit care",
                "120 訪問入浴介護 — Home-visit bathing care",
                "130 訪問看護 — Home-visit nursing",
                "140 訪問リハビリテーション — Home-visit rehabilitation",
                "150 通所介護 — Day care",
                "155 通所介護（療養通所介護） — Day care (medical day care)",
                "160 通所リハビリテーション — Day rehabilitation",
                "170 福祉用具貸与 — Assistive device rental",
                "210 短期入所生活介護 — Short-stay daily life care",
                "220 短期入所療養介護（介護老人保健施設） — Short-stay medical care (geriatric health services facility)",
                "230 短期入所療養介護（療養病床を有する病院等） — Short-stay medical care (hospital/clinic with long-term care beds)",
                "320 認知症対応型共同生活介護 — Group home for people with dementia",
                "331 特定施設入居者生活介護（有料老人ホーム） — Daily life care in specified facilities (fee-based homes for the elderly)",
                "332 特定施設入居者生活介護（軽費老人ホーム） — Daily life care in specified facilities (low-cost homes for the elderly)",
                "334 特定施設入居者生活介護（サービス付き高齢者向け住宅） — Daily life care in specified facilities (serviced housing for the elderly)",
                "335 特定施設入居者生活介護（有料老人ホーム・外部サービス利用型） — Daily life care in specified facilities (fee-based homes, external services)",
                "336 特定施設入居者生活介護（軽費老人ホーム・外部サービス利用型） — Daily life care in specified facilities (low-cost homes, external services)",
                "337 特定施設入居者生活介護（サービス付き高齢者向け住宅・外部サービス利用型） — Daily life care in specified facilities (serviced housing, external services)",
                "361 地域密着型特定施設入居者生活介護（有料老人ホーム） — Community-based daily life care in specified facilities (fee-based homes)",
                "362 地域密着型特定施設入居者生活介護（軽費老人ホーム） — Community-based daily life care in specified facilities (low-cost homes)",
                "364 地域密着型特定施設入居者生活介護（サービス付き高齢者向け住宅） — Community-based daily life care in specified facilities (serviced housing)",
                "410 特定福祉用具販売 — Sale of specified assistive devices",
                "430 居宅介護支援 — In-home care support (care management)",
                "510 介護老人福祉施設 — Welfare facility for the elderly (special nursing home)",
                "520 介護老人保健施設 — Geriatric health services facility",
                "530 介護療養型医療施設 — Sanatorium-type medical care facility",
                "540 地域密着型介護老人福祉施設入所者生活介護 — Community-based welfare facility for the elderly",
                "550 介護医療院 — Long-term care medical facility (kaigo iryoin)",
                "551 短期入所療養介護（介護医療院） — Short-stay medical care (long-term care medical facility)",
                "710 夜間対応型訪問介護 — Night-time home-visit care",
                "720 認知症対応型通所介護 — Day care for people with dementia",
                "730 小規模多機能型居宅介護 — Small-scale multifunctional in-home care",
                "760 定期巡回・随時対応型訪問介護看護 — Regular-patrol / on-demand home-visit care and nursing",
                "770 看護小規模多機能型居宅介護 — Multifunctional in-home care with nursing",
                "780 地域密着型通所介護 — Community-based day care"
              ]
            },
            "default": [
              "510"
            ]
          },
          "prefecture": {
            "title": "Prefecture",
            "enum": [
              "",
              "Hokkaido",
              "Aomori",
              "Iwate",
              "Miyagi",
              "Akita",
              "Yamagata",
              "Fukushima",
              "Ibaraki",
              "Tochigi",
              "Gunma",
              "Saitama",
              "Chiba",
              "Tokyo",
              "Kanagawa",
              "Niigata",
              "Toyama",
              "Ishikawa",
              "Fukui",
              "Yamanashi",
              "Nagano",
              "Gifu",
              "Shizuoka",
              "Aichi",
              "Mie",
              "Shiga",
              "Kyoto",
              "Osaka",
              "Hyogo",
              "Nara",
              "Wakayama",
              "Tottori",
              "Shimane",
              "Okayama",
              "Hiroshima",
              "Yamaguchi",
              "Tokushima",
              "Kagawa",
              "Ehime",
              "Kochi",
              "Fukuoka",
              "Saga",
              "Nagasaki",
              "Kumamoto",
              "Oita",
              "Miyazaki",
              "Kagoshima",
              "Okinawa"
            ],
            "type": "string",
            "description": "Optional. Choose one of the 47 prefectures by its English name (e.g. \"Tokyo\", \"Osaka\", \"Kyoto\"). Via API/CLI pass the English name exactly as listed (e.g. \"Tokyo\", not \"東京都\" / \"13\" / \"tokyo-to\" — the platform validates the list before the run starts and rejects anything else with the list of valid values). Cities are NOT prefectures: use \"Kanagawa\" for Yokohama, \"Aichi\" for Nagoya, \"Osaka\" for Osaka-shi. Leave empty (the default) for all of Japan — each register CSV is downloaded whole either way; this only filters the output.",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Optional, default 100. Maximum number of records to output across all selected service types, in the order given (1..200000).",
            "default": 100
          },
          "openDataPageUrl": {
            "title": "Open-data page URL override",
            "type": "string",
            "description": "Advanced, normally EMPTY. The actor reads the official MHLW open-data page (https://www.mhlw.go.jp/stf/kaigo-kouhyou_opendata.html) and picks the newest snapshot automatically. Pass an https URL here only for testing against a mirrored copy of that page."
          },
          "maxApiRequests": {
            "title": "Max upstream requests per run",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Optional, default 40. Hard safety cap on upstream HTTP requests (politeness). A run needs 1 (page) + 1 per requested service type; when the cap is hit the run still SUCCEEDS with the registers fetched so far (a warning names the skipped ones).",
            "default": 40
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Apify proxy settings. Default: NO proxy (direct connection works). The actor backs off exponentially on 429/5xx and fails visibly on a persistent block — it never attempts rate-limit evasion.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}