{
  "openapi": "3.0.1",
  "info": {
    "title": "Fresha Salon, Spa & Barber Leads Scraper — Phone & Socials",
    "description": "Extract local hair salons, barbershops, nail salons, med spas, and massage studios from Fresha worldwide. Get direct business phone numbers, websites, emails, Instagram & Facebook links, Google Place IDs, ratings, reviews, price ranges, services, staff counts, and full addresses.",
    "version": "0.1",
    "x-build-id": "PC0VIiOCT4obviYJj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~fresha-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-fresha-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~fresha-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-fresha-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~fresha-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-fresha-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": {
          "categories": {
            "title": "Business categories",
            "uniqueItems": true,
            "type": "array",
            "description": "Select one or more beauty, barber, spa, or aesthetics categories to extract. Leave empty to default to Hair Salons (unless custom Start URLs are provided).",
            "items": {
              "type": "string",
              "enum": [
                "hair-salons",
                "barbershops",
                "nail-salons",
                "beauty-salons",
                "spas",
                "massage",
                "eyebrows-and-lashes",
                "waxing-salons",
                "aesthetics"
              ],
              "enumTitles": [
                "Hair Salons",
                "Barbershops",
                "Nail Salons",
                "Beauty Salons",
                "Spas & Wellness",
                "Massage Studios",
                "Brows & Lashes",
                "Waxing Salons",
                "Med Spas & Aesthetics"
              ]
            }
          },
          "cities": {
            "title": "Cities & metro areas",
            "uniqueItems": true,
            "type": "array",
            "description": "Select one or more global cities across the US, UK, Canada, Australia, UAE, Europe, and Asia. For any city, neighborhood, or country not listed here, paste a Fresha listing URL into Start URLs below.",
            "items": {
              "type": "string",
              "enum": [
                "us-new-york",
                "us-los-angeles",
                "us-miami",
                "us-chicago",
                "us-houston",
                "us-dallas",
                "us-atlanta",
                "us-boston",
                "us-san-francisco",
                "us-seattle",
                "us-austin",
                "us-phoenix",
                "us-denver",
                "us-las-vegas",
                "gb-london",
                "gb-manchester",
                "ca-toronto",
                "ca-vancouver",
                "au-sydney",
                "au-melbourne",
                "ae-dubai",
                "ie-dublin",
                "fr-paris",
                "de-berlin",
                "es-madrid",
                "nl-amsterdam",
                "sg-singapore"
              ],
              "enumTitles": [
                "New York, NY (US)",
                "Los Angeles, CA (US)",
                "Miami, FL (US)",
                "Chicago, IL (US)",
                "Houston, TX (US)",
                "Dallas, TX (US)",
                "Atlanta, GA (US)",
                "Boston, MA (US)",
                "San Francisco, CA (US)",
                "Seattle, WA (US)",
                "Austin, TX (US)",
                "Phoenix, AZ (US)",
                "Denver, CO (US)",
                "Las Vegas, NV (US)",
                "London (UK)",
                "Manchester (UK)",
                "Toronto (Canada)",
                "Vancouver (Canada)",
                "Sydney (Australia)",
                "Melbourne (Australia)",
                "Dubai (UAE)",
                "Dublin (Ireland)",
                "Paris (France)",
                "Berlin (Germany)",
                "Madrid (Spain)",
                "Amsterdam (Netherlands)",
                "Singapore"
              ]
            }
          },
          "searchKeyword": {
            "title": "Keyword filter (optional)",
            "type": "string",
            "description": "Optional keyword to filter venues by name, service specialty, neighborhood, or address (e.g. \"balayage\", \"keratin\", \"botox\", \"brooklyn\", \"fade\"). Leave empty to keep all matching venues."
          },
          "minRating": {
            "title": "Minimum rating (optional)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only include businesses rated at or above this star score (e.g. 4.5 or 4.8). Leave empty for all ratings."
          },
          "hasWebsiteOnly": {
            "title": "Only businesses with an external website",
            "type": "boolean",
            "description": "When enabled, keeps only salons and spas that publish their own external business website URL.",
            "default": false
          },
          "includeVenueDetails": {
            "title": "Enrich venue phone, services, prices & staff",
            "type": "boolean",
            "description": "Fetches each venue profile concurrently to extract direct local phone numbers, full price ranges, accepted currencies & payment methods, service categories, top services, staff counts, amenities, and opening hours.",
            "default": true
          },
          "extractWebsiteEmails": {
            "title": "Extract emails from external business websites",
            "type": "boolean",
            "description": "Optional enrichment: visits each salon's external website (and /contact page) to extract public business email addresses. Adds extra run time depending on external site responsiveness.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs (advanced — any city, neighborhood, or venue)",
            "type": "array",
            "description": "Optional list of custom Fresha listing URLs (e.g. https://www.fresha.com/lp/en/bt/hair-salons/in/it-milan) or direct venue URLs (https://www.fresha.com/a/...). Leave empty to use the category and city dropdowns above.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max businesses to collect",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum unique businesses to extract across all selected categories, cities, and URLs. Set to 0 for unlimited automatic pagination and neighborhood expansion.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Standard datacenter proxies deliver fast, low-cost extraction.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}