> ## 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/reviews

> Get Yelp reviews for a business by alias, business id or business page URL, ordered by relevance, date or rating and optionally narrowed to given star ratings or a text query. Returns review text, rating, timestamp, reviewer profile, attached photos, reaction counts and the business owner reply.

**Price:** 1 credit

**⚠️ Common errors:** 412: Business not found (well-formed identifier but no such Yelp business)



## OpenAPI

````yaml /openapi/local-places.json post /api/yelp/businesses/reviews
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/reviews:
    post:
      tags:
        - /yelp
      summary: /yelp/businesses/reviews
      description: >-
        Get Yelp reviews for a business by alias, business id or business page
        URL, ordered by relevance, date or rating and optionally narrowed to
        given star ratings or a text query. Returns review text, rating,
        timestamp, reviewer profile, attached photos, reaction counts and the
        business owner reply.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Business not found (well-formed identifier
        but no such Yelp business)
      operationId: __api_yelp_businesses_reviews_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YelpBusinessesReviewsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/YelpReview'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    YelpBusinessesReviewsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        business:
          type: string
          minLength: 1
        sort_by:
          $ref: '#/components/schemas/YelpReviewSort'
          default: relevance
        ratings:
          items:
            type: integer
            maximum: 5
            minimum: 1
          type: array
          default: []
        query:
          anyOf:
            - type: string
            - type: 'null'
        language:
          type: string
          maxLength: 5
          minLength: 2
          default: en
        count:
          type: integer
          minimum: 1
      type: object
      required:
        - business
        - count
    YelpReview:
      properties:
        '@type':
          type: string
          default: YelpReview
        id:
          type: string
        text:
          anyOf:
            - type: string
            - type: 'null'
        language:
          anyOf:
            - type: string
            - type: 'null'
        rating:
          anyOf:
            - type: integer
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - type: 'null'
        author:
          anyOf:
            - $ref: '#/components/schemas/YelpReviewAuthor'
            - type: 'null'
        photos:
          items:
            type: string
          type: array
          default: []
        helpful_count:
          anyOf:
            - type: integer
            - type: 'null'
        thanks_count:
          anyOf:
            - type: integer
            - type: 'null'
        love_count:
          anyOf:
            - type: integer
            - type: 'null'
        oh_no_count:
          anyOf:
            - type: integer
            - type: 'null'
        check_in_count:
          anyOf:
            - type: integer
            - type: 'null'
        is_first_review:
          anyOf:
            - type: boolean
            - type: 'null'
        expert_recognition:
          anyOf:
            - type: string
            - type: 'null'
        reply:
          anyOf:
            - $ref: '#/components/schemas/YelpReviewReply'
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    YelpReviewSort:
      type: string
      enum:
        - relevance
        - newest
        - oldest
        - highest_rated
        - lowest_rated
        - elites
    YelpReviewAuthor:
      properties:
        '@type':
          type: string
          default: YelpReviewAuthor
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        location:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        friend_count:
          anyOf:
            - type: integer
            - type: 'null'
        photo_count:
          anyOf:
            - type: integer
            - type: 'null'
        elite_year:
          anyOf:
            - type: string
            - type: 'null'
        is_elite_all_star:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - id
    YelpReviewReply:
      properties:
        '@type':
          type: string
          default: YelpReviewReply
        text:
          anyOf:
            - type: string
            - type: 'null'
        author_name:
          anyOf:
            - type: string
            - type: 'null'
        author_role:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: integer
            - 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

````