> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape Yelp businesses (search + detail)

> Two modes. **Search** (`mode=search`): give `find_desc` (a keyword or category) and `find_loc` (a city/area) and get the businesses as JSON - `name`, `rating`, `reviewCount`, `priceRange`, `categories`, `address`, `neighborhoods`, `url`, `businessId`, `image` and `isAd`. Filter with `sort`, `price` (1-4) and `open_now`, and collect up to `max_results` across pages. **Detail** (`mode=detail`): give a business `url` and get a rich object - phone, full address, website, hours, attributes, categories, specialties, review highlights, photos and popular dishes.



## OpenAPI

````yaml /api-reference/openapi.json post /local/yelp
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /local/yelp:
    post:
      tags:
        - Plugins
      summary: Scrape Yelp businesses (search + detail)
      description: >-
        Two modes. **Search** (`mode=search`): give `find_desc` (a keyword or
        category) and `find_loc` (a city/area) and get the businesses as JSON -
        `name`, `rating`, `reviewCount`, `priceRange`, `categories`, `address`,
        `neighborhoods`, `url`, `businessId`, `image` and `isAd`. Filter with
        `sort`, `price` (1-4) and `open_now`, and collect up to `max_results`
        across pages. **Detail** (`mode=detail`): give a business `url` and get
        a rich object - phone, full address, website, hours, attributes,
        categories, specialties, review highlights, photos and popular dishes.
      operationId: yelp_scrape_local_yelp_post
      parameters:
        - name: mode
          in: query
          required: false
          schema:
            type: string
            description: '''search'' (find businesses) or ''detail'' (one business).'
            default: search
            title: Mode
          description: '''search'' (find businesses) or ''detail'' (one business).'
        - name: find_desc
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search keyword or category, e.g. 'coffee' or 'plumbers'.
            title: Find Desc
          description: Search keyword or category, e.g. 'coffee' or 'plumbers'.
        - name: find_loc
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Location to search, e.g. 'San Francisco, CA' or '94109'.
            title: Find Loc
          description: Location to search, e.g. 'San Francisco, CA' or '94109'.
        - name: url
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Detail mode: a Yelp business URL or /biz alias, e.g.
              'https://www.yelp.com/biz/gary-danko-san-francisco'.
            title: Url
          description: >-
            Detail mode: a Yelp business URL or /biz alias, e.g.
            'https://www.yelp.com/biz/gary-danko-san-francisco'.
        - name: sort
          in: query
          required: false
          schema:
            type: string
            description: 'Search ordering: recommended, rating, review_count, distance.'
            default: recommended
            title: Sort
          description: 'Search ordering: recommended, rating, review_count, distance.'
        - name: price
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Price filter 1-4 ($ to $$$$); combine like '1,2'.
            title: Price
          description: Price filter 1-4 ($ to $$$$); combine like '1,2'.
        - name: open_now
          in: query
          required: false
          schema:
            type: boolean
            description: 'Search: only businesses open now.'
            default: false
            title: Open Now
          description: 'Search: only businesses open now.'
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            maximum: 240
            minimum: 1
            description: 'Search: how many businesses to collect across pages (10 per page).'
            default: 30
            title: Max Results
          description: 'Search: how many businesses to collect across pages (10 per page).'
        - name: start
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: 'Search: result offset to start from.'
            default: 0
            title: Start
          description: 'Search: result offset to start from.'
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Exit-IP country (ISO-2). Defaults to a US exit for Yelp.
            title: Proxy Country
          description: Exit-IP country (ISO-2). Defaults to a US exit for Yelp.
      responses:
        '200':
          description: >-
            JSON with a `businesses` array (search) or a business object
            (detail).
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked by Yelp or no data returned.
        '504':
          description: Fetch timed out.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````