{
  "openapi": "3.0.1",
  "info": {
    "title": "Yelp Scraper - Business Contacts and Reviews",
    "description": "Extract Yelp business names, ratings, phones, addresses, websites and optional reviews across the listed markets. Search by keyword or business URL and pay per delivered row, plus a start fee.",
    "version": "0.2",
    "x-build-id": "fXSeqoO59jo1Wvcmw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~yelp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~yelp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~yelp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "searchType": {
            "title": "Search type",
            "enum": [
              "auto",
              "search",
              "category",
              "detail",
              "phone",
              "about",
              "privacy",
              "support",
              "press",
              "ir",
              "contact",
              "photos",
              "map"
            ],
            "type": "string",
            "description": "Choose search, category, business details or a public Yelp company page. Auto infers a mode from your targets; select category explicitly when combining a category alias with a location.",
            "default": "auto"
          },
          "findDesc": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword or business name, such as pizza or plumbers. When a search has a location but no keyword, the Actor uses ramen."
          },
          "findLoc": {
            "title": "Location",
            "type": "string",
            "description": "City, neighborhood or address, such as New York, NY. When a search has a keyword but no location, the Actor uses Chicago, IL."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Yelp search or business page URLs. Each URL has its own maxResults allowance; search URL filters may not be reproduced exactly, so also specify the keyword and location.",
            "items": {
              "type": "string"
            }
          },
          "bizSlug": {
            "title": "Business slug",
            "type": "string",
            "description": "Business slug, such as joes-pizza-new-york, or a full Yelp business page URL. This target selects business details in Auto mode."
          },
          "cflt": {
            "title": "Category alias",
            "type": "string",
            "description": "Category alias such as restaurants, dentists or hotels; beauty maps to beautysvc. Category mode may use the fallback keyword ramen even when another keyword is supplied; use a keyword search for more predictable matching."
          },
          "maxResults": {
            "title": "Max rows per input",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum rows per URL, or per single search, detail or company input: default 70, maximum 200. Business and review rows share the allowance; the whole run is also limited by your maximum charge and the Free plan cap of 200 rows.",
            "default": 70
          },
          "market": {
            "title": "Market / host",
            "enum": [
              "us",
              "uk",
              "ca",
              "ie",
              "au",
              "de",
              "fr",
              "it",
              "es",
              "nl",
              "be",
              "ch",
              "at",
              "se",
              "no",
              "dk",
              "fi",
              "pl",
              "cz",
              "jp",
              "sg",
              "hk",
              "tw",
              "tr",
              "br",
              "cl",
              "mx"
            ],
            "type": "string",
            "description": "Country-site choice for the requested Yelp pages; United States is the default. Availability of businesses, pages and individual fields varies by location.",
            "default": "us"
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "recommended",
              "rating",
              "review_count"
            ],
            "type": "string",
            "description": "Requested result order: recommended, highest rated or most reviewed. The returned ordering may vary.",
            "default": "recommended"
          },
          "start": {
            "title": "Start offset",
            "minimum": 0,
            "maximum": 990,
            "type": "integer",
            "description": "Initial search offset; 0 starts at the beginning. The number of results available still depends on the search and page allowance.",
            "default": 0
          },
          "maxPages": {
            "title": "Max search pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Optional upper bound, from 1 to 20; by default pages follow maxResults. Collection may stop earlier when the row allowance is reached or no new businesses are found."
          },
          "enrichDetails": {
            "title": "Enrich rows with detail data",
            "type": "boolean",
            "description": "Add available business details such as opening hours and other business information. Enabled by default; missing details do not guarantee that the business row will be discarded.",
            "default": true
          },
          "includeReviews": {
            "title": "Emit guest review rows",
            "type": "boolean",
            "description": "Add available reviews as separate, equally priced rows. Disabled by default; business and review rows share maxResults for each input.",
            "default": false
          },
          "reviewTerm": {
            "title": "Review keyword filter (not available)",
            "type": "string",
            "description": "Not available in this Actor. Changing this field currently does not filter review text."
          },
          "reviewLimit": {
            "title": "Reviews per business (not available)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Not available in this Actor. Changing this field currently does not change the review allowance; use maxResults to limit all rows.",
            "default": 20
          },
          "reviewOffset": {
            "title": "Review pagination offset (not available)",
            "minimum": 0,
            "type": "integer",
            "description": "Not available in this Actor. Changing this field currently does not select a review offset.",
            "default": 0
          },
          "includePhotos": {
            "title": "Emit photo URLs on each business row (not available)",
            "type": "boolean",
            "description": "Not available in this Actor. Changing this field currently does not request additional photos.",
            "default": false
          },
          "photoLimit": {
            "title": "Photo URLs per business (not available)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Not available in this Actor. Changing this field currently does not change the number of photos.",
            "default": 10
          },
          "includePresentation": {
            "title": "Include presentation layout (not available)",
            "type": "boolean",
            "description": "Not available in this Actor. Changing this field currently does not request page layout information.",
            "default": false
          },
          "includeMobileSubsurfaces": {
            "title": "Include extra business sections",
            "type": "boolean",
            "description": "Adds extra per-business sections (offers, services, pricing, posts, portfolio, claim info, sponsored, call-to-action) under a mobile field on each business row. Off by default.",
            "default": false
          },
          "mobileSubsurfaces": {
            "title": "Extra business sections to include",
            "type": "array",
            "description": "Which extra sections to add when Include extra business sections is on. Leave empty for all. Allowed: offer_campaigns, service_offering, pricing, posts, business_portfolio, claim_info, sponsored_gems, objective_cta.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "communityQuestionsFirst": {
            "title": "Community Q&A page size (not available)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Not available in this Actor. Changing this field currently does not change the number of community questions.",
            "default": 5
          },
          "registerDevice": {
            "title": "Developer test setting",
            "type": "boolean",
            "description": "Leave unchanged. Used only by the developer for testing.",
            "default": false
          },
          "phoneNumber": {
            "title": "Phone for searchType=phone",
            "type": "string",
            "description": "Phone reverse lookup is not available in this Actor. Use a keyword, business slug or business URL instead."
          },
          "phoneCountry": {
            "title": "Phone country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Phone reverse lookup is not available in this Actor. This setting does not enable it.",
            "default": "US"
          },
          "provider": {
            "title": "Collection option",
            "enum": [
              "app_api",
              "patchright-base",
              "camoufox",
              "patchright",
              "brightdata_browser",
              "cloakbrowser_base"
            ],
            "type": "string",
            "description": "Leave unchanged. Used only by the developer for testing.",
            "default": "app_api"
          },
          "workerBaseUrl": {
            "title": "Developer test URL",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing.",
            "default": ""
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Continue a run that stopped at its time limit or was aborted gracefully: paste RUN_SUMMARY.nextCursor from that run and keep the rest of the input the same. A cursor works once and is valid for 6 hours. Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}