{
  "openapi": "3.0.1",
  "info": {
    "title": "LINE MAN Wongnai Restaurant & Menu Scraper - Thailand",
    "description": "Scrape LINE MAN food delivery in Thailand from Wongnai x LINE MAN pages: restaurants of Bangkok, Chiang Mai, Phuket, Pattaya and more with rating, cuisines, hours and address, or full delivery menus with THB prices, discounts, stock and option groups.",
    "version": "0.1",
    "x-build-id": "dpwA7eI8dsxcefTOK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~line-man-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-line-man-restaurant-menu-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/teodor_banea~line-man-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-line-man-restaurant-menu-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/teodor_banea~line-man-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-line-man-restaurant-menu-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "menus",
              "restaurants"
            ],
            "type": "string",
            "description": "Choose \"Full menus\" for one row per menu item with THB prices, discounts, in-store price, availability and option groups. Choose \"Restaurants\" for one row per restaurant (rating, cuisines, price range, opening and delivery hours, address, coordinates). A typical LINE MAN menu has 50–300 items, so menus multiply the result count.",
            "default": "menus"
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Select the Thai cities and provinces whose LINE MAN delivery restaurants you want, in the site's popularity order. \"Bangkok & metropolitan region\" also covers Nonthaburi, Pathum Thani, Samut Prakan, Nakhon Pathom and Samut Sakhon. Provinces cover the whole province, in popularity order (the first restaurants are often all in its most popular district).",
            "items": {
              "type": "string",
              "enum": [
                "bangkok-metro",
                "bangkok",
                "nonthaburi",
                "pathum-thani",
                "samut-prakan",
                "nakhon-pathom",
                "chiang-mai",
                "chiang-rai",
                "chon-buri",
                "pattaya",
                "rayong",
                "phuket",
                "krabi",
                "surat-thani",
                "songkhla",
                "hat-yai",
                "khon-kaen",
                "nakhon-ratchasima",
                "udon-thani",
                "ayutthaya",
                "phitsanulok",
                "prachuap-khiri-khan",
                "hua-hin"
              ],
              "enumTitles": [
                "Bangkok & metropolitan region",
                "Bangkok",
                "Nonthaburi",
                "Pathum Thani",
                "Samut Prakan",
                "Nakhon Pathom",
                "Chiang Mai",
                "Chiang Rai",
                "Chon Buri",
                "Pattaya (Bang Lamung)",
                "Rayong",
                "Phuket",
                "Krabi",
                "Surat Thani (incl. Koh Samui)",
                "Songkhla",
                "Hat Yai",
                "Khon Kaen",
                "Nakhon Ratchasima (Korat)",
                "Udon Thani",
                "Phra Nakhon Si Ayutthaya",
                "Phitsanulok",
                "Prachuap Khiri Khan",
                "Hua Hin"
              ]
            }
          },
          "regionIds": {
            "title": "Other region ids",
            "type": "array",
            "description": "Enter any other Wongnai region id — a Bangkok district or neighbourhood (e.g. \"142\" Chatuchak, \"220\" Siam, \"224\" Thonglor) or another province. The id is the number in a Wongnai region link (wongnai.com/regions/142-…).",
            "items": {
              "type": "string"
            }
          },
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "Enter Wongnai x LINE MAN restaurant pages (https://www.wongnai.com/restaurants/<id>-<name>), delivery order pages (https://www.wongnai.com/delivery/businesses/<id>/order) or short links (https://www.wongnai.com/r/<id>). They are scraped in addition to the regions; each costs one extra page read for the restaurant details.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep only restaurants of any of these categories (the site's own filter). Applies to regions, not to restaurant URLs.",
            "items": {
              "type": "string",
              "enum": [
                "À La Carte",
                "American",
                "Bakery/Cake",
                "Beverage/Juice",
                "Breakfast/Brunch",
                "Buffet",
                "Burger",
                "Cafe",
                "Chinese",
                "Clean Food/Salad",
                "Coffee Shop/Tea House",
                "Delivery Only",
                "Dessert",
                "Dim Sum",
                "Fast Food",
                "Food Truck",
                "French",
                "Fusion Food",
                "German Food",
                "Grill/BBQ",
                "Ice Cream",
                "Indian",
                "International Food",
                "Isan Food",
                "Italian",
                "Izakaya",
                "Japanese",
                "Korean",
                "Late Night Rice Porridge",
                "Mexican",
                "Muslim/Halal",
                "Noodles",
                "Northern Food",
                "Pearl Tea/Bubble Tea",
                "Pizza",
                "Pub & Restaurant",
                "Ramen",
                "Rice Dish",
                "Seafood",
                "Shabu/Sukiyaki/Hot Pot",
                "Southern Food",
                "Steak House",
                "Street Food",
                "Sushi",
                "Thai",
                "Thai BBQ",
                "Vegan",
                "Vegetarian",
                "Vietnamese",
                "Other"
              ]
            }
          },
          "onlyOpen": {
            "title": "Only restaurants open for delivery now",
            "type": "boolean",
            "description": "Keep only restaurants whose LINE MAN delivery is open at the time of the run (Thai time) — the rows' isDeliveryOpen. Applies to regions, not to restaurant URLs.",
            "default": false
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit the restaurants for the whole run: restaurant rows (restaurants mode) or restaurants whose menus are read (menus mode). It also limits how many restaurant URLs are read. Restaurants without a delivery menu are skipped without counting. 0 = no limit (restaurants: up to 10,000; menus: up to 2,000). The site lists at most 10,000 restaurants per region search.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum items per restaurant",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "In menus mode, keep only the first N menu items of each restaurant (in menu order). 0 = the whole menu.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Set a hard ceiling on returned rows for the whole run. 0 = no ceiling (still capped at 50,000 rows). The run stops as soon as it is reached.",
            "default": 0
          },
          "includeModifiers": {
            "title": "Include option groups",
            "type": "boolean",
            "description": "In menus mode, add each item's option groups (choices, sizes, add-ons) with extra prices and availability. They come with the menu at no extra cost; turn off for smaller rows.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}