{
  "openapi": "3.0.1",
  "info": {
    "title": "Yelp Scraper | $1 per 1k | Emails, Phones & Rating Monitor",
    "description": "Scrape Yelp businesses by keyword or category in any cities or ZIP codes: rating, review count, price, categories, address, hours. Optional phone, website, emails and social profiles from the business website. Past Yelp's 240-result limit. Rating and review monitoring. Never a silent empty run.",
    "version": "0.1",
    "x-build-id": "IRHcLiBNajcmqsWxd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidrows~yelp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidrows-yelp-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/solidrows~yelp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidrows-yelp-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/solidrows~yelp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidrows-yelp-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": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "What to search for on Yelp, for example \"pizza\", \"plumbers\" or \"coffee\". Each term is searched in every location below. Leave empty (and leave Categories empty) to list the top businesses of each location.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional. Yelp category aliases for category-only searches, for example \"plumbing\", \"dentists\", \"pizza\", \"hair\", \"autorepair\", \"realestateagents\". This is the cflt=… value in a Yelp category URL. Each category is searched in every location and returns only businesses listed in that category (cleaner than a keyword search).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search: a city, neighborhood, address or ZIP code, the same way you type it on Yelp, for example \"New York, NY\", \"Chelsea, Manhattan, NY\" or \"94103\". Paste a list of ZIP codes or neighborhoods to cover a big city: Yelp shows at most 240 businesses per search.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Yelp URLs",
            "type": "array",
            "description": "Optional. Yelp search result URLs (yelp.com/search?find_desc=...&find_loc=..., with any filters you set on Yelp, including the map area) or business page URLs (yelp.com/biz/...). Filters below are added to search URLs where the URL does not set them. A business page URL always opens the business page, so it is charged as a business plus a business page ($0.005).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max businesses in total",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of businesses to save across all searches and URLs. Yelp shows at most 240 results (24 pages of 10) per search. Use 0 for no limit.",
            "default": 100
          },
          "maxItemsPerSearch": {
            "title": "Max businesses per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional cap for each term + location (or category + location, or search URL) separately. 0 means no separate cap.",
            "default": 0
          },
          "splitLargeSearches": {
            "title": "Go past Yelp's 240 results per search",
            "type": "boolean",
            "description": "Yelp shows at most 240 results for one search. When a search fills all 240 results and your limits ask for more, also read it in Yelp's other sort orders (Recommended, Highest rated, Most reviewed) and price levels ($ to $$$$), keeping only businesses not seen yet. Each extra order stops after two pages in a row with nothing new. Usually gives a few hundred more businesses for a big search, not every business in the area. Off by default; for full coverage also split the area into ZIP codes or neighborhoods in Locations.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "rating",
              "review_count"
            ],
            "type": "string",
            "description": "Order of the search results, the same as the \"Sort\" menu on Yelp.",
            "default": "recommended"
          },
          "priceLevels": {
            "title": "Price",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only businesses in these price ranges. Leave empty for any price.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "$",
                "$$",
                "$$$",
                "$$$$"
              ]
            },
            "default": []
          },
          "openNow": {
            "title": "Open now",
            "type": "boolean",
            "description": "Only businesses that are open at the moment of the run (Yelp's \"Open Now\" filter).",
            "default": false
          },
          "features": {
            "title": "Features",
            "type": "array",
            "description": "Yelp feature filters by their code, one per line. Examples: RestaurantsDelivery (offers delivery), RestaurantsTakeOut (takeout), OnlineReservations (reservations), OutdoorSeating, WiFi.free, GoodForKids, DogsAllowed, WheelchairAccessible, Open24Hours, hottest_new_opening (Hot and New), BusinessAcceptsCreditCards, BusinessParking.street. The code is the attrs=… value Yelp puts in the URL when you tick the filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSponsored": {
            "title": "Include sponsored results",
            "type": "boolean",
            "description": "Also save businesses shown as ads (\"Sponsored\") on the search pages, marked with isSponsored = true. Off by default: sponsored results are often less relevant to the search.",
            "default": false
          },
          "includeDetails": {
            "title": "Open business pages (required for phone and website)",
            "type": "boolean",
            "description": "Phone and website are NOT in Yelp search results: without this option they are empty. Turn it on to open each business page and add the business phone, website, full address with ZIP code, latitude and longitude, claimed flag, menu URL, amenities, review highlights, popular dishes, about text, up to ~40 photo URLs and whether the business is closed. Costs $4.00 per 1,000 business pages on top of $1.00 per 1,000 businesses ($5.00 per 1,000 in total). Slower: one extra page per business.",
            "default": false
          },
          "includeContacts": {
            "title": "Add emails and social profiles from the business website",
            "type": "boolean",
            "description": "Opens the website each business lists on Yelp and adds its public contact email(s) and links to its Facebook, Instagram, LinkedIn, X, YouTube and TikTok profiles. Reads the home page and, when it shows no email, up to two contact or about pages. Turns on business pages automatically (the website address is only there). Free until 8 December 2026; after that $2.00 per 1,000 businesses on top, charged only for businesses where an email or a social profile was found. Businesses without a website, or with a website that shows no contacts, are not charged for this.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new businesses",
            "type": "boolean",
            "description": "For scheduled runs. The scraper remembers the businesses it already delivered in a named key-value store in your account and saves only businesses it has not seen before, so you pay only for new ones. The first run saves everything. Yelp has no \"newest first\" order, so every run reads all pages of each search (up to 24); pages with nothing new are free but take time. Combine with the feature hottest_new_opening to watch for new openings.",
            "default": false
          },
          "trackChanges": {
            "title": "Track rating and review count",
            "type": "boolean",
            "description": "For scheduled runs. The scraper remembers the rating and the number of reviews of every business it delivered (in a key-value store in your account). On the next run every row shows changeType (new, changed or unchanged), the previous rating and review count, and the change: reviewCountChange = 3 means three new reviews since the previous run.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only new and changed businesses",
            "type": "boolean",
            "description": "Save and pay only for businesses that are new or whose rating or review count changed since the previous run. Unchanged businesses are skipped for free and their business pages are not opened. The first run saves everything. Turns on tracking automatically and replaces \"Only new businesses\".",
            "default": false
          },
          "monitorName": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Optional name of the memory used by \"Only new businesses\" and by rating and review tracking, e.g. \"nyc-pizza-watch\". Runs with the same name share one memory. Leave empty to keep a separate memory for each distinct set of terms, locations and filters.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}