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

# /hotpepper/restaurants/courses

> Get Hot Pepper Gourmet (ホットペッパーグルメ) restaurant banquet/party course plans by id (strJ{id} or J{id}, or restaurant URL): title, image, description, price, dish count, minimum people, reservation deadline and labels (all-you-can-drink, etc).

**Price:** 5 credits

**💡 AI Hint:** Get the course plans (コース) of a Hot Pepper Gourmet restaurant by id ('J003433499' or 'strJ003433499') or a full restaurant URL. Each course has id, url, title, image, description, price (JPY, tax incl.), dish_count, min_people, reserve_deadline and labels.

**⚠️ Common errors:** 412: Restaurant not found (well-formed id but the restaurant page does not exist)



## OpenAPI

````yaml /openapi-filtered.json post /api/hotpepper/restaurants/courses
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/hotpepper/restaurants/courses:
    post:
      tags:
        - /hotpepper
      summary: /hotpepper/restaurants/courses
      description: >-
        Get Hot Pepper Gourmet (ホットペッパーグルメ) restaurant banquet/party course
        plans by id (strJ{id} or J{id}, or restaurant URL): title, image,
        description, price, dish count, minimum people, reservation deadline and
        labels (all-you-can-drink, etc).


        **Price:** 5 credits


        **💡 AI Hint:** Get the course plans (コース) of a Hot Pepper Gourmet
        restaurant by id ('J003433499' or 'strJ003433499') or a full restaurant
        URL. Each course has id, url, title, image, description, price (JPY, tax
        incl.), dish_count, min_people, reserve_deadline and labels.


        **⚠️ Common errors:** 412: Restaurant not found (well-formed id but the
        restaurant page does not exist)
      operationId: __api_hotpepper_restaurants_courses_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotpepperCoursesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/HotpepperCourse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HotpepperCoursesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        restaurant:
          type: string
          minLength: 1
          description: >-
            Hot Pepper restaurant id (strJ{id} or J{id}) or a full restaurant
            URL
          examples:
            - J003433499
            - strJ003433499
            - https://www.hotpepper.jp/strJ003433499/
        count:
          type: integer
          minimum: 1
          description: Max number of courses to return
      type: object
      required:
        - restaurant
        - count
    HotpepperCourse:
      properties:
        '@type':
          type: string
          default: HotpepperCourse
        id:
          type: string
        url:
          type: string
        image:
          anyOf:
            - type: string
            - type: 'null'
        description:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: integer
            - type: 'null'
        dish_count:
          anyOf:
            - type: integer
            - type: 'null'
        min_people:
          anyOf:
            - type: integer
            - type: 'null'
        reserve_deadline:
          anyOf:
            - type: string
            - type: 'null'
        labels:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - id
        - url
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      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

````