{
  "openapi": "3.0.1",
  "info": {
    "title": "Fresha Scraper — Salon, Spa & Beauty Business Leads",
    "description": "Scrape Fresha salons, spas, barbers, nail & beauty/wellness businesses by category and city, or from venue URLs. Get name, phone, address, geo, rating & reviews, full service menu with prices, team, hours, amenities and a lead score. Monitoring, no login, no key, no browser.",
    "version": "0.1",
    "x-build-id": "kaY8DgUVCZB85K8yb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~fresha-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-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/scrapesage~fresha-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-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/scrapesage~fresha-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-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": {
          "businessTypes": {
            "title": "Business types / categories",
            "type": "array",
            "description": "Venue categories: hair-salons, barbershops, nail-salons, beauty-salons, eyebrows-and-lashes, waxing-salons, aesthetics, spas, massage, tattoo-and-piercing, gym-and-fitness, personal-trainers, tanning-studios, weight-loss, therapy-centers. Friendly words (barbers, nails, medspa) auto-map.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (City, Country or City, ST)",
            "type": "array",
            "description": "Where to search — `City, Country` (`London, UK`, `Toronto, Canada`, `Dubai, AE`) or US `City, ST` (`Austin, TX`); optional neighborhood (`New York, US, Manhattan`) or a raw geo slug (`us-new-york`). For non-US, use the country name. Empty = the type's global page, or Start-URLs-only.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (venue or landing pages)",
            "type": "array",
            "description": "Paste Fresha venue URLs (`https://www.fresha.com/a/...`) or category/landing URLs (`https://www.fresha.com/lp/en/bt/...`). Processed in addition to the business types + locations above.",
            "items": {
              "type": "string"
            }
          },
          "defaultCountry": {
            "title": "Default country (ISO-2)",
            "type": "string",
            "description": "Fallback country code used when a location has no country (e.g. just `Miami`). Two-letter ISO code such as `us`, `gb`, `ca`, `au`, `ae`.",
            "default": "us"
          },
          "maxVenuesPerSearch": {
            "title": "Max venues per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap the number of venues collected per business-type + location pair. A landing page yields roughly 40-130 venues.",
            "default": 60
          },
          "maxResults": {
            "title": "Max results (whole run)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Global cap on the total number of venue records emitted in this run, across all searches and Start URLs.",
            "default": 100
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep only venues with an average rating at or above this value (0 = no filter). Rated 1-5.",
            "default": 0
          },
          "withPhoneOnly": {
            "title": "Only venues with a phone number",
            "type": "boolean",
            "description": "Keep only venues that expose a contact phone number (best for cold-call / SMS lead lists). Requires venue details.",
            "default": false
          },
          "freshaVerifiedOnly": {
            "title": "Only Fresha-verified venues",
            "type": "boolean",
            "description": "Keep only venues with the Fresha-verified badge. Requires venue details.",
            "default": false
          },
          "includeVenueDetails": {
            "title": "Open each venue for full details",
            "type": "boolean",
            "description": "Visit each venue page to add the deep fields: phone, structured address + geo, star-rating distribution, currency & price range, full service menu with prices & durations, team members, opening hours, amenities, memberships/gift cards and embedded reviews. One extra request per venue.",
            "default": true
          },
          "includeServices": {
            "title": "Include service menu (with prices)",
            "type": "boolean",
            "description": "Include the categorised service menu with prices, durations and variants for each venue. Requires venue details.",
            "default": true
          },
          "maxServiceItems": {
            "title": "Max service items per venue",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap the number of individual services kept per venue to keep records lean (large venues list 100+).",
            "default": 100
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Also output review records (type `review`) shown on each venue page — star rating, text (when present), author, date and the owner's reply. Requires venue details.",
            "default": false
          },
          "maxReviewsPerVenue": {
            "title": "Max reviews per venue",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many reviews to emit per venue when 'Include reviews' is on (venue pages expose the most recent batch).",
            "default": 20
          },
          "includeNearbyVenues": {
            "title": "Include nearby venues",
            "type": "boolean",
            "description": "Attach a list of nearby venues (name, rating, type, area) found on each venue page — useful for discovering more businesses in the same area. Requires venue details.",
            "default": false
          },
          "enrichContactEmails": {
            "title": "Enrich contacts (crawl website for emails, phone, socials)",
            "type": "boolean",
            "description": "Opt-in lead enrichment: when a venue links its own website (common for unclaimed 'lite' listings), visit it (home + a contact/about page) and extract emails, phone numbers and social links. Only runs when a website exists. Requires venue details.",
            "default": false
          },
          "deduplicateVenues": {
            "title": "Deduplicate venues",
            "type": "boolean",
            "description": "Emit each venue only once per run (keyed by venue id / URL), even if it appears across multiple business types or locations.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new venues",
            "type": "boolean",
            "description": "Remember venues already returned and emit ONLY venues not seen in previous runs. Pairs with Apify Schedules to track newly listed salons/spas in an area over time.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the 'already seen' venue ids for monitoring mode. Use a different name per tracked search to keep their histories separate.",
            "default": "fresha-monitor"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum parallel requests. Lower it if you hit rate limits on very large runs.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Fresha serves clean pages globally, so the default Apify proxy is enough; switch to residential for very large or high-frequency runs.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}