{
  "openapi": "3.0.1",
  "info": {
    "title": "Fresha Scraper: Salons, Services, Prices & Reviews",
    "description": "Find Fresha salons and unclaimed listings by city. Export service menus and prices, enrich public website contacts, monitor new salons and filter paginated reviews by date. Source-linked JSON/CSV; no login required.",
    "version": "1.1",
    "x-build-id": "4cDaNjGfHvxLE6qvz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/softprodlabs~fresha-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-softprodlabs-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/softprodlabs~fresha-scraper/runs": {
      "post": {
        "operationId": "runs-sync-softprodlabs-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/softprodlabs~fresha-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-softprodlabs-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": {
          "mode": {
            "title": "Result type",
            "enum": [
              "businesses",
              "reviews"
            ],
            "type": "string",
            "description": "Businesses: one salon per result, including its embedded service menu. Reviews: one public review per result, paginated across the supplied salons.",
            "default": "businesses"
          },
          "urls": {
            "title": "Fresha URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Salon URLs (/a/...), unclaimed directory profiles (/lvp/...) or category/city landing pages (/lp/...). Reviews require /a/ URLs. Up to 50 URLs.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City name, for example London or Dubai. Use a Fresha landing-page URL when its city slug differs from the city name."
          },
          "countryCode": {
            "title": "Country code",
            "type": "string",
            "description": "Two-letter country code: GB, US, AE, AU, etc. Used with city.",
            "default": "GB"
          },
          "category": {
            "title": "Category or treatment",
            "type": "string",
            "description": "Fresha URL slug: hair-salons, nail-salons, beauty-salons; treatment example balayage-hair-colouring. Use the matching search type.",
            "default": "hair-salons"
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "business",
              "treatment"
            ],
            "type": "string",
            "description": "Business category or specific treatment. Used with city and category.",
            "default": "business"
          },
          "serviceKeyword": {
            "title": "Filter by service name",
            "type": "string",
            "description": "Optional case-insensitive text filter on service names/categories. Nonmatching businesses are not charged. matchingServices lists the matches."
          },
          "expandNeighborhoods": {
            "title": "Expand to linked neighborhoods",
            "type": "boolean",
            "description": "Visit neighborhood pages linked from the supplied city/category page. Deduplicates salons. Bounded by maxSearchPages and maxRequests; not a city-wide completeness guarantee.",
            "default": false
          },
          "includeUnclaimed": {
            "title": "Include unclaimed directory listings",
            "type": "boolean",
            "description": "Also discover Fresha /lvp/ listings that cannot be booked on Fresha. These often publish an external website. Their offered treatment names are included; service prices are not published.",
            "default": false
          },
          "enrichContacts": {
            "title": "Find contacts on salon websites",
            "type": "boolean",
            "description": "Visit the public website linked by Fresha and up to two contact/about pages. Extract published emails, telephone links and socials with source URLs. Included in the salon price; website failures are reported without dropping salon data.",
            "default": false
          },
          "maxContactPages": {
            "title": "Website pages per salon",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Total website pages per salon including its homepage, within maxRequests. Only relevant same-origin contact/about links are followed.",
            "default": 2
          },
          "minRating": {
            "title": "Minimum salon rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Zero disables the filter. Otherwise unrated and lower-rated salons are excluded before charging.",
            "default": 0
          },
          "withPhoneOnly": {
            "title": "Only salons with a published phone",
            "type": "boolean",
            "description": "Keep salons with a phone published on Fresha. Applied before optional website enrichment.",
            "default": false
          },
          "reviewsSince": {
            "title": "Reviews since calendar date",
            "type": "string",
            "description": "Reviews mode: include dates on or after YYYY-MM-DD. Uses the displayed review calendar date; no timezone is inferred. Fresha returns relevance order, so old reviews do not stop pagination. maxRequests may prevent scanning every review; SUMMARY reports coverage."
          },
          "monitorMode": {
            "title": "Return only newly seen salons",
            "type": "boolean",
            "description": "Businesses mode: remember successfully saved salon URLs in persistent storage under your account. First run emits a baseline; later runs skip known salons without result charges. Use the same monitorKey and do not overlap runs.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name for this persistent prospecting list. Reuse it on scheduled runs. Choose a new name to start a fresh baseline. Previously emitted salons remain known even if filters change. Do not overlap runs using this name.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum businesses or reviews saved across the entire run.",
            "default": 20
          },
          "maxRequests": {
            "title": "Maximum page requests",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum salon, landing-page, review-page and contact-enrichment requests. robots.txt checks and one transient retry per page are additional.",
            "default": 100
          },
          "maxSearchPages": {
            "title": "Maximum search pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum city/category/neighborhood landing pages visited in business mode.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}