{
  "openapi": "3.0.1",
  "info": {
    "title": "Yelp UK Reviews Scraper — yelp.co.uk Businesses",
    "description": "Export public reviews from UK Yelp (yelp.co.uk) business pages: full text, stars, dates, reviewers, photos and owner replies, one row per review. Filter by date, rating, keyword or language. $0.30 per 1,000 reviews. US/Canada pages not supported.",
    "version": "0.6",
    "x-build-id": "3XT3lDiq4SO1DjfCr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/peerless_columbine~yelp-public-reviews-independent/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-peerless_columbine-yelp-public-reviews-independent",
        "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/peerless_columbine~yelp-public-reviews-independent/runs": {
      "post": {
        "operationId": "runs-sync-peerless_columbine-yelp-public-reviews-independent",
        "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/peerless_columbine~yelp-public-reviews-independent/run-sync": {
      "post": {
        "operationId": "run-sync-peerless_columbine-yelp-public-reviews-independent",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Yelp business pages to export reviews from (required, 1–100 items). Each item is an object {\"url\": \"https://www.yelp.co.uk/biz/<business-alias>\"}, e.g. {\"url\": \"https://www.yelp.co.uk/biz/dishoom-london\"}. Only direct /biz/ business URLs; search pages, business IDs and URL-list files are rejected. Built and tested for UK yelp.co.uk pages; US yelp.com and Canadian yelp.ca pages currently return HTTP 403 and yield no rows (and no review fee).",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "Business URL",
                  "description": "Direct public HTTPS Yelp business URL, e.g. https://www.yelp.co.uk/biz/dishoom-london."
                },
                "userData": {
                  "type": "object",
                  "title": "Request user data",
                  "description": "Optional request metadata; ignored by the Actor. Leave empty."
                },
                "method": {
                  "type": "string",
                  "title": "Request method",
                  "description": "Only GET is accepted; omitted values default to GET.",
                  "pattern": "^GET$"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "maxReviewsPerUrl": {
            "title": "Max reviews per business.",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of review rows saved per business (each row is billed). Leave empty for no row cap; the run is then still bounded by maxPagesPerBusiness and runTimeoutSecs (about 10 reviews per page), so it may not reach full history. Use a small value such as 5 for a test. Allowed range: 1–1,000,000."
          },
          "language": {
            "title": "Language",
            "enum": [
              "",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "nl",
              "pt",
              "ru",
              "ja",
              "zh",
              "zh_TW",
              "ko",
              "tr",
              "ar",
              "da",
              "fi",
              "no",
              "sv",
              "he",
              "th",
              "pl",
              "cs",
              "hu",
              "el"
            ],
            "type": "string",
            "description": "Only return reviews written in this source language (not a translation; see reviews_translate). Empty string = all languages. Must be set to a specific code when sort=`recommended`, and must be empty when reviewSource=`not-recommended`. Accepted values: `` (all), en, es, fr, de, it, nl, pt, ru, ja, zh (Simplified Chinese), zh_TW (Traditional Chinese), ko, tr, ar, da, fi, no, sv, he, th, pl, cs, hu, el.",
            "default": ""
          },
          "dateFrom": {
            "title": "Start Date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Optional. Only include reviews posted on or after this date (inclusive, UTC), format YYYY-MM-DD. Must not be later than dateTo. With sort=`newest` the scan stops once older reviews are reached. Leave empty for no lower bound. Example: `2026-01-01`."
          },
          "dateTo": {
            "title": "End Date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Optional. Only include reviews posted on or before this date (inclusive, UTC), format YYYY-MM-DD. Must not be earlier than dateFrom. With sort=`oldest` the scan stops once newer reviews are reached. Leave empty for no upper bound. Example: `2026-06-30`."
          },
          "sort": {
            "title": "Review sort",
            "enum": [
              "newest",
              "oldest",
              "recommended",
              "highest_rating",
              "lowest_rating"
            ],
            "type": "string",
            "description": "Review order, applied per business. Accepted values: `newest` (default), `oldest`, `highest_rating`, `lowest_rating`, `recommended` (Yelp's ranking; requires an explicit language, otherwise the run fails). With an empty language, per-language streams are merged in date/rating order. reviewSource=`not-recommended` requires `lowest_rating`.",
            "default": "newest"
          },
          "ratings": {
            "title": "Star filter",
            "type": "array",
            "description": "Optional star filter: only return reviews with these star ratings, as an array of integers 1–5, e.g. [1, 2] for negative reviews only. Empty array (default) = all ratings.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 5
            },
            "default": []
          },
          "keyword": {
            "title": "Literal text filter",
            "maxLength": 200,
            "type": "string",
            "description": "Optional text filter: only return reviews whose full original text contains this exact phrase (case-insensitive substring, not a search query; max 200 characters), e.g. `service`. Non-matching reviews are skipped but still paged through, so a rare keyword can use many pages. Empty = no filter.",
            "default": ""
          },
          "includePersonalData": {
            "title": "Public reviewer fields",
            "type": "boolean",
            "description": "Default true: rows include the reviewer's public display name, profile URL, location and review count. Set false to return those four fields as null (privacy mode). Never collects private data. In reviewSource=`not-recommended` mode these fields are always null.",
            "default": true
          },
          "maxPagesPerBusiness": {
            "title": "Page safety limit",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Safety limit on review feed pages fetched per business (Yelp returns about 10 reviews per page). Raise it to export more than ~1,000 reviews per business. When reached, that business is reported as incomplete (PAGE_LIMIT) in the SUMMARY record. Allowed range: 1–1000.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Concurrent businesses",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Advanced, leave at default unless tuning. Number of businesses processed in parallel; rows from different businesses may interleave. Allowed range: 1–4.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 3,
            "maximum": 20,
            "type": "integer",
            "description": "Advanced, leave at default unless tuning. Timeout for each HTTP request to Yelp, in seconds. Allowed range: 3–20.",
            "default": 15
          },
          "maxRetries": {
            "title": "Transient retries",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Advanced, leave at default unless tuning. Number of retries for transient request failures (e.g. timeouts, temporary server errors). Allowed range: 0–2.",
            "default": 1
          },
          "runTimeoutSecs": {
            "title": "Internal time limit",
            "minimum": 10,
            "maximum": 105,
            "type": "integer",
            "description": "Internal time budget for collection, in seconds; when reached, collection stops, already saved rows are kept and unfinished businesses are reported as RUN_TIME_LIMIT in SUMMARY. Kept under the default 120-second Actor timeout so diagnostics can be saved. This bounds how many reviews one run can collect. Allowed range: 10–105.",
            "default": 100
          },
          "dnsResolver": {
            "title": "DNS resolver",
            "enum": [
              "system",
              "google-doh"
            ],
            "type": "string",
            "description": "Advanced, leave as `system`. `google-doh` resolves Yelp hostnames via Google DNS-over-HTTPS; only useful when local DNS returns private/synthetic addresses (e.g. some local networks). TLS and public-IP checks stay on in both modes. Accepted values: `system`, `google-doh`.",
            "default": "system"
          },
          "useProxy": {
            "title": "Use your own proxy configuration",
            "type": "boolean",
            "description": "Default false (direct connection). Set true only if you also supply proxyConfiguration; proxy traffic can incur extra cost and proxy use is not live-verified. Must be false when reviewSource=`not-recommended`. Configuration errors fail the run.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "User proxy configuration",
            "type": "object",
            "description": "Only used when useProxy=true (setting it while useProxy is false fails the run). Apify proxy groups/country or custom proxyUrls. Example: {\"useApifyProxy\": true, \"apifyProxyGroups\": [\"RESIDENTIAL\"], \"apifyProxyCountry\": \"GB\"}. Leave empty otherwise."
          },
          "includePreviousReviews": {
            "title": "Include source-attached previous reviews",
            "type": "boolean",
            "description": "Set true to add older versions of each review (when Yelp attaches them) as a nested `previousReviews` array on the parent row, with `previousReviewsSourceStatus`. No extra rows or charges; filters, sort and cap apply to parent reviews only. Full edit history is not guaranteed. Not available with reviewSource=`not-recommended`.",
            "default": false
          },
          "reviews_translate": {
            "title": "Translate reviews",
            "enum": [
              "",
              "en",
              "es",
              "fr",
              "de",
              "it",
              "nl",
              "pt",
              "ru",
              "ja",
              "zh",
              "zh_TW",
              "ko",
              "tr",
              "ar",
              "da",
              "fi",
              "no",
              "sv",
              "he",
              "th",
              "pl",
              "cs",
              "hu",
              "el"
            ],
            "type": "string",
            "description": "Optional. Language code to request Yelp's own translation of each review into; adds `translatedText` (null if Yelp has no translation), `translationLanguage` and `translationSourceStatus`. Original `text` is kept and filters still use the original text. Empty (default) = no translation. Verified for French→English only. Not available with reviewSource=`not-recommended`. Accepted values: same codes as language, e.g. `en`.",
            "default": ""
          },
          "reviewSource": {
            "title": "Review source",
            "enum": [
              "recommended",
              "not-recommended"
            ],
            "type": "string",
            "description": "Which review population to export. `recommended` (default): Yelp's normal review feed, all options available. `not-recommended`: Yelp's separate 'not currently recommended' reviews archive; only www.yelp.co.uk/biz/ URLs, requires language empty, sort=`lowest_rating`, no translation, no previous reviews, useProxy=false; reviewer fields are always null and business rating/address/photos are null. Accepted values: `recommended`, `not-recommended`.",
            "default": "recommended"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}