{
  "openapi": "3.0.1",
  "info": {
    "title": "Treatwell Salon Scraper — Europe Beauty, Spa Leads & Prices",
    "description": "Extract hair salons, barbershops, nail studios, aesthetics clinics, massage and spa businesses from Treatwell across 11 European countries. Get direct salon phone numbers, emails, social profiles, treatment prices, staff counts, dimensional ratings, opening hours, and full addresses.",
    "version": "0.1",
    "x-build-id": "uQvzP0RtgQdmoRiwu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~treatwell-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-treatwell-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/haketa~treatwell-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-treatwell-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/haketa~treatwell-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-treatwell-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": {
          "country": {
            "title": "Country / Marketplace",
            "enum": [
              "all",
              "uk",
              "de",
              "fr",
              "es",
              "it",
              "nl",
              "be",
              "at",
              "ch",
              "ie",
              "pt"
            ],
            "type": "string",
            "description": "Select a European Treatwell marketplace country, or choose 'All Europe' for a balanced multi-country salon dataset. If you pick a specific city below, its marketplace country is matched automatically.",
            "default": "all"
          },
          "city": {
            "title": "City",
            "enum": [
              "all",
              "london",
              "manchester",
              "birmingham",
              "edinburgh",
              "glasgow",
              "leeds",
              "bristol",
              "berlin",
              "munich",
              "hamburg",
              "frankfurt",
              "cologne",
              "dusseldorf",
              "paris",
              "lyon",
              "marseille",
              "bordeaux",
              "madrid",
              "barcelona",
              "valencia",
              "milan",
              "rome",
              "turin",
              "amsterdam",
              "rotterdam",
              "the-hague",
              "brussels",
              "antwerp",
              "vienna",
              "zurich",
              "dublin",
              "lisbon",
              "porto"
            ],
            "type": "string",
            "description": "Choose a major European city, or leave on 'All Cities (Countrywide)' to collect salons across the selected country. Selecting any specific city automatically targets its corresponding Treatwell marketplace.",
            "default": "all"
          },
          "customLocation": {
            "title": "Custom City, Neighborhood or Postal Code (Optional)",
            "type": "string",
            "description": "Optional free-text town, district, or postcode not listed in the City dropdown (e.g. 'Stuttgart', 'Soho London', 'Nice', 'Sevilla', 'Bologna', 'Utrecht'). Uses the selected Country marketplace to find the exact area."
          },
          "treatmentCategory": {
            "title": "Treatment / Salon Category",
            "enum": [
              "all",
              "hair",
              "nails",
              "face",
              "massage",
              "hair-removal",
              "body",
              "medical-aesthetics",
              "barber"
            ],
            "type": "string",
            "description": "Filter salons by primary treatment specialty, or choose 'All Salon & Beauty Categories' to capture every business type.",
            "default": "all"
          },
          "enrichVenueDetails": {
            "title": "Enrich Full Salon Details (Phone, Email, Socials & Staff)",
            "type": "boolean",
            "description": "Fetches each salon's full business profile to extract direct phone numbers, business email addresses, Instagram & Facebook profiles, staff/practitioner counts, payment methods, amenities, and listing dates.",
            "default": true
          },
          "includeFullMenu": {
            "title": "Include Full Service Menu Catalog (Deep Pricing)",
            "type": "boolean",
            "description": "Optional deep mode: fetches every salon's complete treatment menu across all categories in addition to the featured treatments already included by default.",
            "default": false
          },
          "minRating": {
            "title": "Minimum Star Rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only salons with an average customer rating greater than or equal to this score (0 to 5, e.g. 4.5). Leave at 0 to include all salons.",
            "default": 0
          },
          "onlyWithEmail": {
            "title": "Only Salons With Email Address",
            "type": "boolean",
            "description": "When enabled (with Enrich Full Salon Details on), keeps only salons that publish a direct business email address.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs (Advanced Override)",
            "type": "array",
            "description": "Optional list of Treatwell search/browse URLs (e.g. https://www.treatwell.co.uk/places/..., https://www.treatwell.de/orte/...) or individual salon profile URLs (e.g. https://www.treatwell.co.uk/place/...) from any European Treatwell domain.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max Salons",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of unique salons to extract. Set to 0 for unlimited extraction on your selected location/URLs.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy configuration. Direct requests work out of the box without proxies; enable Apify Proxy if running very large multi-country crawls.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}