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

# /openrice/restaurants/chart

> Read an OpenRice restaurant ranking for a regional market: best rated, most popular, best dessert or most bookmarked. Each entry carries the current rank, previous rank, movement on the chart, weeks on chart and the full restaurant card (name, district, rating, smile/ok/cry counts, cuisines, photos, counters).

**Price:** 1 credit



## OpenAPI

````yaml /openapi/local-places.json post /api/openrice/restaurants/chart
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/openrice/restaurants/chart:
    post:
      tags:
        - /openrice
      summary: /openrice/restaurants/chart
      description: >-
        Read an OpenRice restaurant ranking for a regional market: best rated,
        most popular, best dessert or most bookmarked. Each entry carries the
        current rank, previous rank, movement on the chart, weeks on chart and
        the full restaurant card (name, district, rating, smile/ok/cry counts,
        cuisines, photos, counters).


        **Price:** 1 credit
      operationId: __api_openrice_restaurants_chart_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenriceRestaurantsChartPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OpenriceChartEntry'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OpenriceRestaurantsChartPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        region:
          $ref: '#/components/schemas/OpenriceRegion'
          default: hongkong
        lang:
          $ref: '#/components/schemas/OpenriceLang'
          default: en
        chart:
          $ref: '#/components/schemas/OpenriceChart'
          default: best_rating
        count:
          type: integer
          maximum: 500
          minimum: 1
      type: object
      required:
        - count
    OpenriceChartEntry:
      properties:
        '@type':
          type: string
          default: OpenriceChartEntry
        rank:
          type: integer
        previous_rank:
          anyOf:
            - type: integer
            - type: 'null'
        trend:
          anyOf:
            - type: string
            - type: 'null'
        weeks_on_chart:
          anyOf:
            - type: integer
            - type: 'null'
        chart_updated_at:
          anyOf:
            - type: integer
            - type: 'null'
        restaurant:
          $ref: '#/components/schemas/OpenriceRestaurantCard'
      type: object
      required:
        - rank
        - restaurant
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OpenriceRegion:
      type: string
      enum:
        - hongkong
        - macau
        - shenzhen
        - guangzhou
        - zhuhai
        - dongguan
        - foshan
        - zhongshan
        - taipei
        - newtaipei-keelung
        - taoyuan
        - hsinchu-miaoli
        - taichung
        - changhua-nantou
        - yunlin-chiayi
        - tainan
        - kaohsiung-pingtung
        - eastern
        - tokyo-kanto
        - osaka-kobe
        - kyoto-kinki
        - nagoya-chubu
        - hokkaido
        - tohoku
        - hiroshima-chugoku
        - shikoku
        - fukuoka-kyushu
        - okinawa
        - bangkok
        - chonburi
        - phuket
        - prachuapkhirikhan
        - chiangmai
        - suratthani
        - nakhonratchasima
        - chiangrai
        - others
        - singapore
        - manila
    OpenriceLang:
      type: string
      enum:
        - en
        - tc
        - sc
        - tc-tw
        - ja
        - th
        - id
    OpenriceChart:
      type: string
      enum:
        - best_rating
        - most_popular
        - best_dessert
        - most_bookmarked
    OpenriceRestaurantCard:
      properties:
        '@type':
          type: string
          default: OpenriceRestaurantCard
        id:
          type: integer
        url:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        name:
          type: string
        name_other_lang:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        address_other_lang:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        district:
          anyOf:
            - $ref: '#/components/schemas/OpenriceDistrict'
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        mall_name:
          anyOf:
            - type: string
            - type: 'null'
        floor:
          anyOf:
            - type: string
            - type: 'null'
        unit:
          anyOf:
            - type: string
            - type: 'null'
        phones:
          items:
            type: string
          type: array
          default: []
        phone_remarks:
          items:
            type: string
          type: array
          default: []
        website:
          anyOf:
            - type: string
            - type: 'null'
        opened_at:
          anyOf:
            - type: integer
            - type: 'null'
        opening_hours:
          items:
            $ref: '#/components/schemas/OpenriceWeekHours'
          type: array
          default: []
        rating:
          anyOf:
            - type: number
            - type: 'null'
        or_score:
          anyOf:
            - type: number
            - type: 'null'
        smile_count:
          anyOf:
            - type: integer
            - type: 'null'
        cry_count:
          anyOf:
            - type: integer
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        photo_count:
          anyOf:
            - type: integer
            - type: 'null'
        restaurant_photo_count:
          anyOf:
            - type: integer
            - type: 'null'
        media_count:
          anyOf:
            - type: integer
            - type: 'null'
        bookmark_count:
          anyOf:
            - type: integer
            - type: 'null'
        price_range_id:
          anyOf:
            - type: integer
            - type: 'null'
        cuisines:
          items:
            $ref: '#/components/schemas/OpenriceCategory'
          type: array
          default: []
        dishes:
          items:
            $ref: '#/components/schemas/OpenriceCategory'
          type: array
          default: []
        recommended_dishes:
          items:
            type: string
          type: array
          default: []
        promotions:
          items:
            $ref: '#/components/schemas/OpenricePromotion'
          type: array
          default: []
        badges:
          items:
            type: string
          type: array
          default: []
        payment_ids:
          items:
            type: integer
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        videos:
          items:
            $ref: '#/components/schemas/OpenriceVideo'
          type: array
          default: []
        status:
          anyOf:
            - type: integer
            - type: 'null'
        status_text:
          anyOf:
            - type: string
            - type: 'null'
        moved_to_restaurant_id:
          anyOf:
            - type: integer
            - type: 'null'
        is_open_now:
          type: boolean
          default: false
        is_new:
          type: boolean
          default: false
        is_queuing_enabled:
          type: boolean
          default: false
        has_offer:
          type: boolean
          default: false
        has_premium_menu:
          type: boolean
          default: false
        distance:
          anyOf:
            - type: number
            - type: 'null'
        short_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - url
        - name
    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
    OpenriceDistrict:
      properties:
        '@type':
          type: string
          default: OpenriceDistrict
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        group_id:
          anyOf:
            - type: integer
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - id
        - name
    OpenriceWeekHours:
      properties:
        '@type':
          type: string
          default: OpenriceWeekHours
        day_of_week:
          anyOf:
            - type: integer
            - type: 'null'
        times:
          items:
            type: string
          type: array
          default: []
        is_open_24h:
          type: boolean
          default: false
        is_closed:
          type: boolean
          default: false
        is_holiday:
          type: boolean
          default: false
        is_holiday_eve:
          type: boolean
          default: false
      type: object
    OpenriceCategory:
      properties:
        '@type':
          type: string
          default: OpenriceCategory
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
    OpenricePromotion:
      properties:
        '@type':
          type: string
          default: OpenricePromotion
        id:
          type: integer
        name:
          type: string
        terms:
          anyOf:
            - type: string
            - type: 'null'
        is_credit_card:
          type: boolean
          default: false
      type: object
      required:
        - id
        - name
    OpenriceVideo:
      properties:
        '@type':
          type: string
          default: OpenriceVideo
        id:
          type: integer
        video_url:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        caption:
          anyOf:
            - type: string
            - type: 'null'
        width:
          anyOf:
            - type: integer
            - type: 'null'
        height:
          anyOf:
            - type: integer
            - type: 'null'
        view_count:
          anyOf:
            - type: integer
            - type: 'null'
        like_count:
          anyOf:
            - type: integer
            - type: 'null'
        comment_count:
          anyOf:
            - type: integer
            - type: 'null'
        submitted_at:
          anyOf:
            - type: integer
            - type: 'null'
      type: object
      required:
        - id
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````