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

> Get the full filter catalog OpenRice uses for one regional market: districts with their coordinates, landmarks and malls with address and coordinates, cuisines and cuisine groups, dishes and dish groups, restaurant types, dining themes, features, accepted payment methods, and the review facets (meal times, special occasions, photo types, dining methods, dining offers). Every catalog is region-specific, so these ids are what the search, coupon and review endpoints expect.

**Price:** 1 credit



## OpenAPI

````yaml /openapi/local-places.json post /api/openrice/facets
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/facets:
    post:
      tags:
        - /openrice
      summary: /openrice/facets
      description: >-
        Get the full filter catalog OpenRice uses for one regional market:
        districts with their coordinates, landmarks and malls with address and
        coordinates, cuisines and cuisine groups, dishes and dish groups,
        restaurant types, dining themes, features, accepted payment methods, and
        the review facets (meal times, special occasions, photo types, dining
        methods, dining offers). Every catalog is region-specific, so these ids
        are what the search, coupon and review endpoints expect.


        **Price:** 1 credit
      operationId: __api_openrice_facets_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OpenriceFacetsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OpenriceFacets'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OpenriceFacetsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        region:
          $ref: '#/components/schemas/OpenriceRegion'
          default: hongkong
        lang:
          $ref: '#/components/schemas/OpenriceLang'
          default: en
        groups:
          anyOf:
            - items:
                $ref: '#/components/schemas/OpenriceFacetGroup'
              type: array
            - type: 'null'
      type: object
    OpenriceFacets:
      properties:
        '@type':
          type: string
          default: OpenriceFacets
        region:
          type: string
        region_id:
          type: integer
        lang:
          type: string
        districts:
          items:
            $ref: '#/components/schemas/OpenriceFacetDistrict'
          type: array
          default: []
        landmarks:
          items:
            $ref: '#/components/schemas/OpenriceFacetLandmark'
          type: array
          default: []
        cuisines:
          items:
            $ref: '#/components/schemas/OpenriceFacetCategory'
          type: array
          default: []
        cuisine_groups:
          items:
            $ref: '#/components/schemas/OpenriceFacetCategoryGroup'
          type: array
          default: []
        dishes:
          items:
            $ref: '#/components/schemas/OpenriceFacetCategory'
          type: array
          default: []
        dish_groups:
          items:
            $ref: '#/components/schemas/OpenriceFacetCategoryGroup'
          type: array
          default: []
        amenities:
          items:
            $ref: '#/components/schemas/OpenriceFacetCategory'
          type: array
          default: []
        themes:
          items:
            $ref: '#/components/schemas/OpenriceFacetTag'
          type: array
          default: []
        conditions:
          items:
            $ref: '#/components/schemas/OpenriceFacetTag'
          type: array
          default: []
        payments:
          items:
            $ref: '#/components/schemas/OpenriceFacetPayment'
          type: array
          default: []
        meal_times:
          items:
            $ref: '#/components/schemas/OpenriceFacetLabel'
          type: array
          default: []
        occasions:
          items:
            $ref: '#/components/schemas/OpenriceFacetLabel'
          type: array
          default: []
        photo_types:
          items:
            $ref: '#/components/schemas/OpenriceFacetLabel'
          type: array
          default: []
        dining_methods:
          items:
            $ref: '#/components/schemas/OpenriceFacetLabel'
          type: array
          default: []
        dining_offers:
          items:
            $ref: '#/components/schemas/OpenriceFacetLabel'
          type: array
          default: []
      type: object
      required:
        - region
        - region_id
        - lang
    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
    OpenriceFacetGroup:
      type: string
      enum:
        - districts
        - landmarks
        - cuisines
        - cuisine_groups
        - dishes
        - dish_groups
        - amenities
        - themes
        - conditions
        - payments
        - meal_times
        - occasions
        - photo_types
        - dining_methods
        - dining_offers
    OpenriceFacetDistrict:
      properties:
        '@type':
          type: string
          default: OpenriceFacetDistrict
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - id
        - name
    OpenriceFacetLandmark:
      properties:
        '@type':
          type: string
          default: OpenriceFacetLandmark
        id:
          type: integer
        name:
          type: string
        address:
          anyOf:
            - type: string
            - type: 'null'
        district_id:
          anyOf:
            - type: integer
            - type: 'null'
        landmark_type_id:
          anyOf:
            - type: integer
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - id
        - name
    OpenriceFacetCategory:
      properties:
        '@type':
          type: string
          default: OpenriceFacetCategory
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        group_ids:
          items:
            type: integer
          type: array
          default: []
      type: object
      required:
        - id
        - name
    OpenriceFacetCategoryGroup:
      properties:
        '@type':
          type: string
          default: OpenriceFacetCategoryGroup
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
        category_ids:
          items:
            type: integer
          type: array
          default: []
      type: object
      required:
        - id
        - name
    OpenriceFacetTag:
      properties:
        '@type':
          type: string
          default: OpenriceFacetTag
        id:
          type: integer
        name:
          type: string
        alias:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - name
    OpenriceFacetPayment:
      properties:
        '@type':
          type: string
          default: OpenriceFacetPayment
        id:
          type: integer
        name:
          type: string
        is_credit_card:
          type: boolean
          default: false
      type: object
      required:
        - id
        - name
    OpenriceFacetLabel:
      properties:
        '@type':
          type: string
          default: OpenriceFacetLabel
        id:
          type: integer
        name:
          type: string
      type: object
      required:
        - id
        - 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
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````