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

> Get full Yelp business details by alias, business id or business page URL: name, the owner's own description and history, rating, review count, price range, phone, postal address, coordinates, categories, weekly opening hours, open/closed state, amenity attributes and photos.

**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
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:
    post:
      tags:
        - /yelp
      summary: /yelp/businesses
      description: >-
        Get full Yelp business details by alias, business id or business page
        URL: name, the owner's own description and history, rating, review
        count, price range, phone, postal address, coordinates, categories,
        weekly opening hours, open/closed state, amenity attributes and photos.


        **Price:** 1 credit


        **⚠️ Common errors:** 412: Business not found (well-formed identifier
        but no such Yelp business)
      operationId: __api_yelp_businesses_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/YelpBusinessesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/YelpBusiness'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    YelpBusinessesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        business:
          type: string
          minLength: 1
        photo_count:
          type: integer
          minimum: 0
          default: 10
      type: object
      required:
        - business
    YelpBusiness:
      properties:
        '@type':
          type: string
          default: YelpBusiness
        id:
          type: string
        alias:
          type: string
        url:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        history:
          anyOf:
            - type: string
            - type: 'null'
        established_year:
          anyOf:
            - type: integer
            - type: 'null'
        owner_name:
          anyOf:
            - type: string
            - type: 'null'
        owner_bio:
          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: []
        is_closed:
          anyOf:
            - type: boolean
            - type: 'null'
        is_open_now:
          anyOf:
            - type: boolean
            - type: 'null'
        hours:
          items:
            $ref: '#/components/schemas/YelpBusinessHours'
          type: array
          default: []
        attributes:
          items:
            $ref: '#/components/schemas/YelpBusinessAttribute'
          type: array
          default: []
      type: object
      required:
        - id
        - alias
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    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
    YelpBusinessHours:
      properties:
        '@type':
          type: string
          default: YelpBusinessHours
        day_of_week:
          type: string
        hours:
          items:
            type: string
          type: array
          default: []
        has_special_hours:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - day_of_week
    YelpBusinessAttribute:
      properties:
        '@type':
          type: string
          default: YelpBusinessAttribute
        alias:
          type: string
        is_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
        values:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - alias
    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

````