{
  "openapi": "3.0.1",
  "info": {
    "title": "Mindbody Scraper",
    "description": "Scrape Mindbody's fitness/wellness/beauty studio marketplace (mindbodyonline.com/explore). Search studios, bookable class schedules, virtual classes, or intro-offer deals by location and activity type. Get studio name, address, activity types, ratings, class schedule, and pricing.",
    "version": "1.0",
    "x-build-id": "gBB9o7GaadwJJHMfE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~mindbody-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-mindbody-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~mindbody-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-mindbody-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~mindbody-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-mindbody-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": [
              "studios",
              "classes",
              "virtualClasses",
              "deals"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "studios"
          },
          "location": {
            "title": "Location (city or address)",
            "type": "string",
            "description": "City, town, or address to search near, e.g. 'New York, NY', 'Los Angeles', 'London'. Ignored if latitude/longitude are set. Not used for mode=virtualClasses.",
            "default": "New York, NY"
          },
          "latitude": {
            "title": "Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "GPS latitude for location-based search. Overrides the Location field if provided (together with Longitude)."
          },
          "longitude": {
            "title": "Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "GPS longitude for location-based search. Overrides the Location field if provided (together with Latitude)."
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Radius in kilometres around the location to search.",
            "default": 40
          },
          "sortBy": {
            "title": "Sort by (mode=studios)",
            "enum": [
              "distance",
              "rating",
              "relevance"
            ],
            "type": "string",
            "description": "Order in which studios are returned. 'Distance' is closest-first (default), 'Rating' is highest-rated-first, 'Relevance' matches Mindbody's own marketplace ranking.",
            "default": "distance"
          },
          "businessType": {
            "title": "Business type",
            "enum": [
              "all",
              "Fitness",
              "Beauty",
              "Wellness"
            ],
            "type": "string",
            "description": "Top-level Mindbody marketplace category. 'All' searches Fitness, Beauty, and Wellness together.",
            "default": "all"
          },
          "keyword": {
            "title": "Keyword (free text)",
            "type": "string",
            "description": "Optional free-text search term (e.g. 'hot yoga', 'reformer', 'crossfit', a studio brand name). Applied server-side by Mindbody's own search alongside businessType/activityType — useful for niches not covered by the 43 curated activity types. Leave blank to search all matching businessType/activityType results."
          },
          "activityType": {
            "title": "Activity type",
            "enum": [
              "any",
              "Acupuncture",
              "Aerial",
              "Barber",
              "Barre",
              "Body treatments",
              "Bootcamp",
              "Boxing / kickboxing",
              "Braids",
              "Chiropractor",
              "Circuit training",
              "Coaching / healing",
              "Cryotherapy",
              "Cycling",
              "Dance",
              "Face treatments",
              "Gym classes",
              "Gymnastics",
              "Hair removal",
              "Hair salon",
              "Heated therapy",
              "Interval training",
              "Makeup / lashes / brows",
              "Martial arts",
              "Massage",
              "Med spa",
              "Meditation",
              "Nails",
              "Naturopathic medicine",
              "Nutrition",
              "Other",
              "Outdoor",
              "Personal training",
              "Physical therapy / physiotherapy",
              "Pilates",
              "Pole Fitness",
              "Reflexology",
              "Sports",
              "Strength training",
              "Tai chi",
              "Tanning",
              "Water therapy",
              "Weight training",
              "Yoga"
            ],
            "type": "string",
            "description": "Specific activity/service type to filter by, e.g. Yoga, Pilates, Massage, Hair salon. 'Any' returns every activity type within the selected business type.",
            "default": "any"
          },
          "daysAhead": {
            "title": "Days ahead (mode=classes/virtualClasses)",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "How many days ahead of today to search the class schedule.",
            "default": 3
          },
          "minRating": {
            "title": "Minimum studio rating (mode=studios)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only return studios rated at least this many stars (0-5). 0 means no minimum. Applied client-side; unrated studios are excluded once this is set above 0.",
            "default": 0
          },
          "onlineBookingOnly": {
            "title": "Online booking available only (mode=studios)",
            "type": "boolean",
            "description": "Only return studios that support booking directly through their Mindbody online store.",
            "default": false
          },
          "freeClassesOnly": {
            "title": "Free classes only (mode=classes/virtualClasses)",
            "type": "boolean",
            "description": "Only return classes Mindbody marks as free.",
            "default": false
          },
          "maxPrice": {
            "title": "Max drop-in price USD (mode=classes/virtualClasses)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Only return classes whose lowest drop-in price is at or below this amount. Applied client-side; classes with no visible price pass through."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on the number of records to return.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}