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

# /yelp/businesses/search

> Search Yelp businesses by location and term or category, with the full on-site filter surface: price level, business features, dietary restrictions, open now or open at a given time, search radius and result ordering. Returns businesses with name, rating, review count, price range, phone, address, coordinates, categories, business highlights, verified trade licences and a matching review snippet.

**Price:** 1 credit



## OpenAPI

````yaml /openapi/local-places.json post /api/yelp/businesses/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/yelp/businesses/search:
    post:
      tags:
        - /yelp
      summary: /yelp/businesses/search
      description: >-
        Search Yelp businesses by location and term or category, with the full
        on-site filter surface: price level, business features, dietary
        restrictions, open now or open at a given time, search radius and result
        ordering. Returns businesses with name, rating, review count, price
        range, phone, address, coordinates, categories, business highlights,
        verified trade licences and a matching review snippet.


        **Price:** 1 credit
      operationId: __api_yelp_businesses_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YelpBusinessesSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/YelpSearchBusiness'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    YelpBusinessesSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        location:
          type: string
          minLength: 1
        term:
          anyOf:
            - type: string
            - type: 'null'
        category:
          anyOf:
            - type: string
            - type: 'null'
        sort_by:
          $ref: '#/components/schemas/YelpSearchSort'
          default: recommended
        price:
          items:
            $ref: '#/components/schemas/YelpPriceLevel'
          type: array
          default: []
        features:
          items:
            $ref: '#/components/schemas/YelpBusinessFeature'
          type: array
          default: []
        dietary_restrictions:
          items:
            $ref: '#/components/schemas/YelpDietaryRestriction'
          type: array
          default: []
        open_now:
          type: boolean
          default: false
        open_time:
          anyOf:
            - type: string
              pattern: ^([01]\d|2[0-3]):[0-5]\d$
            - type: 'null'
        radius:
          anyOf:
            - $ref: '#/components/schemas/YelpSearchRadius'
            - type: 'null'
        include_ads:
          type: boolean
          default: false
        count:
          type: integer
          maximum: 240
          minimum: 1
      type: object
      required:
        - location
        - count
    YelpSearchBusiness:
      properties:
        '@type':
          type: string
          default: YelpSearchBusiness
        id:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        rating:
          anyOf:
            - type: number
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        price_range:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - $ref: '#/components/schemas/YelpBusinessAddress'
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        categories:
          items:
            $ref: '#/components/schemas/YelpBusinessCategory'
          type: array
          default: []
        highlights:
          items:
            $ref: '#/components/schemas/YelpBusinessHighlight'
          type: array
          default: []
        licenses:
          items:
            $ref: '#/components/schemas/YelpBusinessLicense'
          type: array
          default: []
        review_snippet:
          anyOf:
            - type: string
            - type: 'null'
        ranking:
          anyOf:
            - type: integer
            - type: 'null'
        is_ad:
          type: boolean
          default: false
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    YelpSearchSort:
      type: string
      enum:
        - recommended
        - rating
        - review_count
    YelpPriceLevel:
      type: string
      enum:
        - '1'
        - '2'
        - '3'
        - '4'
    YelpBusinessFeature:
      type: string
      enum:
        - accepts_credit_cards
        - accepts_apple_pay
        - accepts_cryptocurrency
        - open_to_all
        - by_appointment_only
        - dogs_allowed
        - good_for_kids
        - good_for_groups
        - gender_neutral_restrooms
        - wheelchair_accessible
        - outdoor_seating
        - open_24_hours
        - hot_and_new
        - happy_hour
        - has_tv
        - coat_check
        - waiter_service
        - takes_reservations
        - online_reservations
        - online_waitlist
        - online_booking
        - spa_booking
        - service_booking
        - request_a_quote
        - offers_delivery
        - offers_takeout
        - free_delivery
        - cheap_delivery
        - fast_delivery
        - flower_delivery
        - offers_military_discount
        - full_bar
        - beer_and_wine
        - good_for_breakfast
        - good_for_brunch
        - good_for_lunch
        - good_for_dinner
        - good_for_dessert
        - good_for_late_night
        - garage_parking
        - lot_parking
        - street_parking
        - valet_parking
        - validated_parking
        - music_dj
        - music_jukebox
        - music_karaoke
        - music_live
        - smoking_no
        - smoking_outdoor
        - smoking_yes
        - free_wifi
        - paid_wifi
        - liked_by_twenties
        - liked_by_thirties
        - liked_by_forties
        - liked_by_vegetarians
    YelpDietaryRestriction:
      type: string
      enum:
        - halal
        - vegan
        - vegetarian
    YelpSearchRadius:
      type: string
      enum:
        - four_blocks
        - one_mile
        - two_miles
        - five_miles
        - birds_eye
    YelpBusinessAddress:
      properties:
        '@type':
          type: string
          default: YelpBusinessAddress
        line1:
          anyOf:
            - type: string
            - type: 'null'
        line2:
          anyOf:
            - type: string
            - type: 'null'
        line3:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        region_code:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        country_code:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    YelpBusinessCategory:
      properties:
        '@type':
          type: string
          default: YelpBusinessCategory
        id:
          type: string
        alias:
          type: string
        category_title:
          anyOf:
            - type: string
            - type: 'null'
        root_alias:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - alias
    YelpBusinessHighlight:
      properties:
        '@type':
          type: string
          default: YelpBusinessHighlight
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    YelpBusinessLicense:
      properties:
        '@type':
          type: string
          default: YelpBusinessLicense
        number:
          anyOf:
            - type: string
            - type: 'null'
        issued_by:
          anyOf:
            - type: string
            - type: 'null'
        trade:
          anyOf:
            - type: string
            - type: 'null'
        licensee:
          anyOf:
            - type: string
            - type: 'null'
        expiry_date:
          anyOf:
            - type: string
            - type: 'null'
        verified_date:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````