{
  "openapi": "3.0.1",
  "info": {
    "title": "MPSV Social Services Registry Exporter",
    "description": "Fetches social service listings from the Czech MPSV (Ministry of Labour and Social Affairs) public registry. Returns structured data about providers, services, and facilities.",
    "version": "0.1",
    "x-build-id": "u0eQxLd5sOhRuIgxM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/janbuchar~mpsv-social-services-exporter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-janbuchar-mpsv-social-services-exporter",
        "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/janbuchar~mpsv-social-services-exporter/runs": {
      "post": {
        "operationId": "runs-sync-janbuchar-mpsv-social-services-exporter",
        "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/janbuchar~mpsv-social-services-exporter/run-sync": {
      "post": {
        "operationId": "run-sync-janbuchar-mpsv-social-services-exporter",
        "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 (Druh služby)",
            "type": "array",
            "description": "Which social service types to query. If empty, all 34 types are fetched.",
            "items": {
              "type": "string",
              "enum": [
                "ODBORNE_SOCIALNI_PORADENSTVI",
                "OSOBNI_ASISTENCE",
                "PECOVATELSKA_SLUZBA",
                "TISNOVA_PECE",
                "PRUVODCOVSKE_A_PREDCITATELSKE_SLUZBY",
                "PODPORA_SAMOSTATNEHO_BYDLENI",
                "ODLEHCOVACI_SLUZBY",
                "CENTRA_DENNICH_SLUZEB",
                "DENNI_STACIONARE",
                "TYDENNI_STACIONARE",
                "DOMOVY_PRO_OSOBY_SE_ZDRAVOTNIM_POSTIZENIM",
                "DOMOVY_PRO_SENIORY",
                "DOMOVY_SE_ZVLASTNIM_REZIMEM",
                "CHRANENE_BYDLENI",
                "SOCIALNI_SLUZBY_VE_ZDRAVOTNICKYCH_ZARIZENICH",
                "RANA_PECE",
                "TELEFONICKA_KRIZOVA_POMOC",
                "TLUMOCNICKE_SLUZBY",
                "AZYLOVE_DOMY",
                "DOMY_NA_PUL_CESTY",
                "KONTAKTNI_CENTRA",
                "KRIZOVA_POMOC",
                "NIZKOPRAHOVA_DENNI_CENTRA",
                "NIZKOPRAHOVA_ZARIZENI_PRO_DETI_A_MLADEZ",
                "NOCLEHARNY",
                "SLUZBY_NASLEDNE_PECE",
                "SOCIALNE_AKTIVIZACNI_SLUZBY_PRO_RODINY_S_DETMI",
                "SOCIALNE_AKTIVIZACNI_SLUZBY_PRO_SENIORY_A_OZP",
                "SOCIALNE_TERAPEUTICKE_DILNY",
                "TERAPEUTICKE_KOMUNITY",
                "TERENNI_PROGRAMY",
                "SOCIALNI_REHABILITACE",
                "INTERVENCNI_CENTRA",
                "CENTRUM_DUSEVNIHO_ZDRAVI"
              ],
              "enumTitles": [
                "Odborné sociální poradenství",
                "Osobní asistence",
                "Pečovatelská služba",
                "Tísňová péče",
                "Průvodcovské a předčitatelské služby",
                "Podpora samostatného bydlení",
                "Odlehčovací služby",
                "Centra denních služeb",
                "Denní stacionáře",
                "Týdenní stacionáře",
                "Domovy pro osoby se zdravotním postižením",
                "Domovy pro seniory",
                "Domovy se zvláštním režimem",
                "Chráněné bydlení",
                "Sociální služby ve zdravotnických zařízeních lůžkové péče",
                "Raná péče",
                "Telefonická krizová pomoc",
                "Tlumočnické služby",
                "Azylové domy",
                "Domy na půl cesty",
                "Kontaktní centra",
                "Krizová pomoc",
                "Nízkoprahová denní centra",
                "Nízkoprahová zařízení pro děti a mládež",
                "Noclehárny",
                "Služby následné péče",
                "Sociálně aktivizační služby pro rodiny s dětmi",
                "Sociálně aktivizační služby pro seniory a osoby se zdravotním postižením",
                "Sociálně terapeutické dílny",
                "Terapeutické komunity",
                "Terénní programy",
                "Sociální rehabilitace",
                "Intervenční centra",
                "Centrum duševního zdraví"
              ]
            },
            "default": []
          },
          "serviceForms": {
            "title": "Service Forms (Forma poskytování)",
            "type": "array",
            "description": "Filter by service delivery form. If empty, all forms are included.",
            "items": {
              "type": "string",
              "enum": [
                "AMBULANTNI",
                "POBYTOVA",
                "TERENNI"
              ],
              "enumTitles": [
                "Ambulantní",
                "Pobytová",
                "Terénní"
              ]
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}