{
  "openapi": "3.0.1",
  "info": {
    "title": "Fitmost Scraper",
    "description": "Scrape Fitmost (fitmost.ru): fitness studios with contacts, rating and location, plus their class timetable — times, coaches, prices and free spots — with change monitoring.",
    "version": "0.1",
    "x-build-id": "bQweNgTThB3u13hY5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sashaebashu~fitmost-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sashaebashu-fitmost-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/sashaebashu~fitmost-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sashaebashu-fitmost-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/sashaebashu~fitmost-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sashaebashu-fitmost-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",
        "properties": {
          "city": {
            "title": "City",
            "enum": [
              "msk",
              "spb",
              "ekb",
              "kzn",
              "nsk",
              "rostov",
              "ufa",
              "perm"
            ],
            "type": "string",
            "description": "Which city's catalogue to read. For any other Fitmost city, paste its catalogue link below instead.",
            "default": "msk"
          },
          "catalogUrls": {
            "title": "Catalogue links (any city)",
            "type": "array",
            "description": "Fitmost catalogue pages, e.g. https://www.fitmost.ru/spb/studios — open Fitmost in your city, go to «Места» and paste the link. Overrides «City».",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "studioUrls": {
            "title": "Specific places",
            "type": "array",
            "description": "Links to Fitmost place pages (https://www.fitmost.ru/studioinfo/154/…) or just their numbers. When set without catalogue links, only these places are read.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxStudios": {
            "title": "Places",
            "minimum": 0,
            "type": "integer",
            "description": "How many places to read from the catalogue. 0 = all (Moscow has about 2,800).",
            "default": 50
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 14,
            "type": "integer",
            "description": "Timetable for this many days starting today (up to 14): 1 = today only, 2 = today and tomorrow. 0 = places only, no timetable.",
            "default": 2
          },
          "categoryFilter": {
            "title": "Only these activities",
            "type": "array",
            "description": "Keep classes whose category, name or type contains one of these words, e.g. «йога», «пилатес», «бокс». Leave empty for everything.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyWithFreeSpots": {
            "title": "Only classes with free spots",
            "type": "boolean",
            "description": "Skip classes that are fully booked.",
            "default": false
          },
          "includeBeauty": {
            "title": "Include beauty services",
            "type": "boolean",
            "description": "The Fitmost catalogue also lists beauty salons (massage, brows & lashes, nails, epilation, face care) that sell 15-minute appointment slots. Off: they are left out. On: they are included as one row per service per day — number of slots, free slots, first/last slot, price range, masters.",
            "default": false
          },
          "includeStudioDetails": {
            "title": "Place details",
            "type": "boolean",
            "description": "Open each place page for phone, website, coordinates and the full list of activities. Off = faster, catalogue fields only.",
            "default": true
          },
          "outputStudios": {
            "title": "Add a row per place",
            "type": "boolean",
            "description": "Besides one row per class, add one row per place (contacts, address, rating, price from).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (track changes)",
            "type": "boolean",
            "description": "Compare with the previous run: new classes, price up/down, spots taken, sold out. Run it on a schedule to see how fast classes fill.",
            "default": false
          },
          "onlyChanges": {
            "title": "Output only changes",
            "type": "boolean",
            "description": "With Monitor mode on, skip classes where nothing changed (place rows are skipped too).",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel places",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many places are read at the same time.",
            "default": 6
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}