{
  "openapi": "3.0.1",
  "info": {
    "title": "Hungry Hub Scraper | บุฟเฟต์โรงแรม ร้านอาหาร & Dining Deals",
    "description": "ดึงข้อมูล Hungry Hub บุฟเฟต์โรงแรม ร้านอาหาร รูฟท็อป ราคาและเงื่อนไขแพ็กเกจ | Thailand dining packages, buffet & rooftop deals. $3/1,000 fresh packages.",
    "version": "0.1",
    "x-build-id": "1HzUJ0yjJsmdsBtIy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mai_amm~hungryhub-thailand-packages-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mai_amm-hungryhub-thailand-packages-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/mai_amm~hungryhub-thailand-packages-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mai_amm-hungryhub-thailand-packages-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/mai_amm~hungryhub-thailand-packages-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mai_amm-hungryhub-thailand-packages-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keyword": {
            "title": "คำค้นร้าน / Restaurant keyword",
            "type": "string",
            "description": "ชื่อร้าน ประเภทอาหาร หรือคำค้น เช่น บุฟเฟต์, rooftop, omakase, Copper. ใช้ startUrls เพื่อเลือกสาขาโดยตรงได้",
            "default": "บุฟเฟต์"
          },
          "startUrls": {
            "title": "ลิงก์ร้านโดยตรง / Restaurant URLs",
            "type": "array",
            "description": "ลิงก์หน้าร้าน Hungry Hub รายสาขา สูงสุด 200 ลิงก์ หากใส่ลิงก์จะใช้แทนการค้นหา ไม่รองรับลิงก์หน้า group/search",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "city": {
            "title": "เมือง / City",
            "enum": [
              "1",
              "4",
              "6",
              "5",
              "3",
              "2",
              "9",
              "8"
            ],
            "type": "string",
            "description": "เมืองสำหรับโหมดค้นหา / Search city. Bangkok=1, Chiang Mai=2, Phuket=3, Pattaya=4, Khao Yai=5, Hua Hin=6, Chonburi=8, Rayong=9. Direct URLs use the restaurant actual city.",
            "default": "1"
          },
          "language": {
            "title": "ภาษาข้อมูล / Language",
            "enum": [
              "th",
              "en"
            ],
            "type": "string",
            "description": "ภาษาที่ต้องการ Some source fields may remain in their original language.",
            "default": "th"
          },
          "packageType": {
            "title": "ประเภทแพ็กเกจ / Package type",
            "enum": [
              "all",
              "ayce",
              "pp",
              "xp",
              "hs",
              "bfp",
              "sm",
              "hah",
              "diy"
            ],
            "type": "string",
            "description": "เลือกประเภทแพ็กเกจที่ต้องการ / Filter returned packages by source package type.",
            "default": "all"
          },
          "maxItems": {
            "title": "จำนวนแพ็กเกจสูงสุด / Max packages (0 = all)",
            "minimum": 0,
            "type": "integer",
            "description": "บัญชีจ่ายเงินใส่ 0 เพื่อตัดเพดานจำนวนผลลัพธ์ภายในงบและขีดจำกัดงาน บัญชีฟรีทดลองสดครั้งเดียวสูงสุด 10 แพ็กเกจ",
            "default": 50
          },
          "maxRestaurants": {
            "title": "จำนวนร้านสูงสุด / Max restaurant attempts",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "จำนวนร้านที่พยายามอ่าน รวมร้านที่อ่านไม่ได้ / Restaurant attempts, including failed reads.",
            "default": 20
          },
          "maxPages": {
            "title": "หน้าค้นหาสูงสุด / Max search pages",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "เพดานหน้าผลค้นหา / Search page budget.",
            "default": 10
          },
          "pageSize": {
            "title": "ร้านต่อหน้า / Restaurants per page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "จำนวนร้านที่ขอต่อหน้าค้นหา ไม่ใช่จำนวนแพ็กเกจ / Restaurant search page size.",
            "default": 10
          },
          "includeExpired": {
            "title": "รวมโปรหมดอายุ / Include expired packages",
            "type": "boolean",
            "description": "โดยปกติไม่คืนแพ็กเกจที่วันสิ้นสุดผ่านไปแล้วตามเวลาไทย Does not verify actual date/time booking availability.",
            "default": false
          },
          "maxRequests": {
            "title": "จำนวนอ่านข้อมูลสูงสุด / Read budget",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "รวมการค้นหา อ่านร้าน และการลองใหม่ / Includes search, restaurant reads and retries.",
            "default": 100
          },
          "maxDownloadMB": {
            "title": "งบดาวน์โหลด MB / Download budget",
            "minimum": 1,
            "maximum": 1024,
            "type": "integer",
            "description": "หยุดเริ่มอ่านเพิ่มเมื่อถึงงบ การตอบกลับสุดท้ายอาจเกินงบเล็กน้อย / Stop further reads after this budget.",
            "default": 50
          },
          "requestTimeoutSecs": {
            "title": "เวลารอต่อครั้ง / Read timeout seconds",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "เวลารอสูงสุดต่อการอ่านข้อมูล / Timeout per source read.",
            "default": 15
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}