# LINE MAN Wongnai Restaurant & Menu Scraper - Thailand (`teodor_banea/line-man-restaurant-menu-scraper`) Actor

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.

- **URL**: https://apify.com/teodor_banea/line-man-restaurant-menu-scraper.md
- **Developed by:** [Banea Teodor](https://apify.com/teodor_banea) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## LINE MAN Restaurant & Menu Scraper (Thailand)

### What does LINE MAN Restaurant & Menu Scraper do?

This Actor reads **LINE MAN food delivery in Thailand** as it is published on the public **Wongnai x LINE MAN**
pages (LINE MAN's web ordering front, run by Wongnai) and returns clean, flat data you can drop into a spreadsheet or
a database:

- **Full delivery menus** — one row per menu item with the LINE MAN delivery price in Thai baht, the full price and
  discount when an item is discounted, the restaurant's in-store price, stock (out-of-stock items and options),
  description, photo, category in menu order, and every option group (choices, sizes, add-ons) with extra prices.
- **Restaurants** from 23 region choices — Bangkok, the Bangkok metropolitan region, Chiang Mai, Phuket, Pattaya, Hat
  Yai, Khon Kaen and more provinces and cities (or any Wongnai region id, such as a Bangkok district): name in Thai and English, branch, chain, cuisines, rating and number
  of ratings and reviews, price range, open-now and delivery status, weekly opening hours, delivery hours, address,
  district, coordinates, website and Facebook page.

Pick regions from a list or paste restaurant URLs. No login or extra setup is needed.

The menus are the LINE MAN delivery menus exactly as Wongnai's public pages show them. Prices are the prices of
LINE MAN delivery orders placed on the web; app-only promotions or vouchers are not part of the menu.

### Why use this Actor?

- **Thai food-delivery price monitoring** — track what dishes cost on LINE MAN in each city, which items are
  discounted, out of stock or recommended, and how delivery prices compare with in-store prices.
- **Menu and assortment research** — chains and independents, every category and option group, in Thai as published.
- **Restaurant lead lists** — business name, cuisine, rating, price range, hours, address and coordinates for any
  city or district.
- **Compare delivery apps** — field names follow our other delivery Actors (Yemeksepeti, BOX, efood, Foodhub…), so
  rows from several countries stack in one table.
- **Clean output** — every row has every key, numbers are numbers, prices are baht, Thai text stays as published.

### How much does it cost?

You pay per result (one row) plus a small start fee per run, as shown on the Actor's pricing tab. Typical sizes:

| Run | Rows |
|---|---|
| One restaurant menu | usually 30–300 items (about 120 on average for popular Bangkok restaurants; the largest seen ≈ 1,000) |
| Restaurants of a region | up to 10,000 per region search (Bangkok lists 154,000+, Chiang Mai ≈ 9,000, Phuket ≈ 6,000) |
| Prefilled example (2 restaurants × 20 items) | 40 |

Keep first runs small with **Maximum restaurants**, **Maximum items per restaurant** and **Maximum results**.

### Input

| Field | Description | Example |
|---|---|---|
| What to scrape | Full menus (one row per item) or Restaurants (one row per restaurant) | `menus` |
| Regions | Cities and provinces from the list | `["bangkok", "chiang-mai"]` |
| Other region ids | Any Wongnai region id: a Bangkok district or neighbourhood, another province | `["142"]` (Chatuchak) |
| Restaurant URLs | Wongnai restaurant pages, delivery order pages or short links | `https://www.wongnai.com/delivery/businesses/123456Ab/order` |
| Cuisines | The site's categories (any of them) | `["Thai", "Noodles"]` |
| Only restaurants open for delivery now | Keep restaurants whose LINE MAN delivery is open at run time (`isDeliveryOpen`) | `false` |
| Maximum restaurants | Restaurants for the whole run (also caps the restaurant URL list); restaurants without a delivery menu do not count | `50` |
| Maximum items per restaurant | First N items of each menu | `20` |
| Maximum results | Ceiling on rows for the whole run | `1000` |
| Include option groups | Choices and add-ons with prices (no extra cost) | `true` |

### Output

Menu item row (menus mode; fictitious example, option list shortened):

```json
{
    "rowType": "menuItem",
    "storeId": "123456Ab",
    "storeName": "ร้านตัวอย่าง สาขาสยาม",
    "storeSlug": "123456Ab-example-kitchen-siam",
    "storeUrl": "https://www.wongnai.com/restaurants/123456Ab-example-kitchen-siam",
    "storeOrderUrl": "https://www.wongnai.com/delivery/businesses/123456Ab/order",
    "storeCity": "กรุงเทพมหานคร",
    "storeDistrict": "ปทุมวัน",
    "storeCuisine": ["Thai", "Noodles"],
    "storeRating": 4.25,
    "storeIsOpen": true,
    "searchRegion": "Bangkok",
    "currency": "THB",
    "categoryId": "6425089",
    "categoryName": "ก๋วยเตี๋ยว",
    "categoryPosition": 2,
    "categoryItemCount": 12,
    "productId": null,
    "name": "ก๋วยเตี๋ยวหมู",
    "description": "เส้นเล็ก น้ำใส หมูสับ ลูกชิ้น",
    "price": 60,
    "priceOriginal": 75,
    "priceDiscounted": 60,
    "discountPercent": 20,
    "priceText": "THB 60",
    "priceInStore": 55,
    "isPopular": false,
    "orderCount": null,
    "favouriteCount": null,
    "isAvailable": true,
    "isDeliveryAllowed": true,
    "hasOptions": true,
    "modifierGroups": [
        {
            "id": "MOD1|CAT1", "name": "เลือกเส้น", "type": "single", "minSelection": 1, "maxSelection": 1,
            "options": [
                { "id": "MOD1-1|1|MOD1|CAT1", "name": "เส้นเล็ก", "price": 0, "isAvailable": true },
                { "id": "MOD1-2|2|MOD1|CAT1", "name": "บะหมี่", "price": 5, "isAvailable": true }
            ]
        }
    ],
    "imageUrl": "https://img.wongnai.com/p/_-x_/2026/01/01/example.jpg",
    "position": 5,
    "scrapedAt": "2026-11-19T10:30:00.000Z",
    "runId": "aBcDeFgHiJkLmNoPq"
}
```

Restaurant row (restaurants mode; fictitious example):

```json
{
    "rowType": "restaurant",
    "storeId": "123456Ab",
    "storeNumericId": 123456,
    "name": "ร้านตัวอย่าง สาขาสยาม",
    "nameThai": "ร้านตัวอย่าง",
    "nameEnglish": "Example Kitchen",
    "branchName": "Siam",
    "slug": "123456Ab-example-kitchen-siam",
    "url": "https://www.wongnai.com/restaurants/123456Ab-example-kitchen-siam",
    "orderUrl": "https://www.wongnai.com/delivery/businesses/123456Ab/order",
    "sourceUrl": null,
    "searchRegion": "Bangkok",
    "regionId": 1,
    "city": "กรุงเทพมหานคร",
    "district": "ปทุมวัน",
    "subDistrict": "ปทุมวัน",
    "neighborhoods": ["สยาม"],
    "countryCode": "TH",
    "currency": "THB",
    "chainName": null,
    "chainId": null,
    "rating": 4.25,
    "ratingCount": 120,
    "reviewCount": 85,
    "cuisine": ["Thai", "Noodles"],
    "cuisineThai": ["อาหารไทย", "ก๋วยเตี๋ยว"],
    "primaryCuisine": "Thai",
    "priceLevel": 2,
    "priceRangeText": "101 - 250 บาท",
    "deliveryFee": 0,
    "deliveryFeeText": "ค่าส่งเริ่มต้น 0 บาท *ภายในระยะทางที่กำหนด",
    "hasDelivery": true,
    "hasPickup": false,
    "acceptsOnlinePayment": true,
    "isOpen": true,
    "openStatus": "จนถึง 21:00",
    "isAcceptingOrders": true,
    "isTemporarilyClosed": false,
    "isDeliveryOpen": true,
    "openingHours": [{ "day": "monday", "hours": "09:00-21:00" }, { "day": "sunday", "hours": null }],
    "openingHoursText": "Mon 09:00-21:00; …; Sun closed",
    "deliveryHoursText": "จันทร์ - เสาร์ 09:00 - 20:30",
    "isNew": false,
    "isOfficial": true,
    "isCloudKitchen": false,
    "rankText": "อันดับ #5 จาก 120 ร้านอาหารไทย ในเขตปทุมวัน",
    "menuItemCount": 120,
    "menuUpdatedAt": "2026-11-18T08:30:00.000Z",
    "address": "99 ถนนตัวอย่าง ปทุมวัน กรุงเทพมหานคร 10330",
    "street": "99 ถนนตัวอย่าง",
    "postcode": "10330",
    "latitude": 13.7456,
    "longitude": 100.5341,
    "website": null,
    "facebookUrl": "https://www.facebook.com/example",
    "logoUrl": null,
    "imageUrl": "https://img.wongnai.com/p/_-x_/2026/01/01/example.jpg",
    "listPosition": 3,
    "hasDetails": false,
    "scrapedAt": "2026-11-19T10:30:00.000Z",
    "runId": "aBcDeFgHiJkLmNoPq"
}
```

How to read prices:

- `price` is the LINE MAN delivery price in baht (the discounted price when a discount runs; `priceOriginal` is the
  full, struck-through price). `priceInStore` is the price the restaurant charges in its shop, as the menu lists it.
- `price` can be 0 for free items (cutlery, sauces, gifts).
- Option prices are added to the item price. `isAvailable: false` marks items and options that are out of stock.
- There is no stable item id on the site: identify items by `storeId` + `categoryName` + `name`. `productId` is the
  restaurant's own item code when the item name carries one (common for chains), otherwise null.
- `orderCount` and `favouriteCount` are null when the site shows no number (it does not tell zero from not shown).
- `deliveryFee` is the starting delivery fee the restaurant card shows ("from 0 baht within a set distance"); the
  real fee depends on the delivery distance.

In menus mode the restaurant records are stored in the run's key-value store under `RESTAURANTS`; anything that could
not be read is listed under `ERRORS`.

### Tips and tricks

- **Complete vs sample**: a region list is in the site's popularity order, and the site shows at most **10,000
  restaurants per region search**. Bangkok (150,000+ delivery restaurants) is therefore a sample of its most popular
  restaurants; for complete coverage run Bangkok districts (Other region ids, e.g. "142" Chatuchak) or add cuisine
  filters, each of which has its own 10,000 limit. Most provinces outside Bangkok are below the limit.
- **Provinces** cover the whole province, listed in popularity order — so the first restaurants are often all in the most
  popular district (Chiang Mai city, Hua Hin for Prachuap Khiri Khan, Hat Yai for Songkhla, Koh Samui for Surat Thani).
- **Full lists are almost, not exactly, complete**: the site reorders its list while it is being read page by page, so
  a small share of restaurants (about 1 % in Phuket) is never served, and restaurants without LINE MAN delivery are
  left out. The final status says it: "the site listed N; M had no delivery; K were not served while paging".
- **Restaurants without a delivery menu** are skipped and replaced by the next restaurant of the list.
- **Restaurant URLs** also read the restaurant page for rating, address and hours. Unknown or closed restaurants are
  listed under `ERRORS` after one request; if none of the first 40 links has a delivery menu, the run stops early.
  The list is cut at **Maximum restaurants** (noted in the status and under `ERRORS`).
- **Maximum charge per run**: when your maximum charge is reached, the run stops cleanly and says so in its status.
- **Scheduling**: run daily or weekly with the same input and compare rows by `storeId` + `categoryId` + `name`.
- **Open now**: `isOpen` and `openStatus` follow the site's own status at the time of the run (Thai time).

### Integrations

Export the dataset as JSON, CSV or Excel, or connect it to Google Sheets, Make, Zapier, Airbyte or your own code with
the Apify API and webhooks. Each run's rows are available at the dataset URL shown on the run page.

### Privacy

The Actor returns business information that Wongnai x LINE MAN publishes about restaurants. Phone numbers are left
out (many small restaurants list a personal mobile number): phone numbers, e-mail addresses and LINE ids that
restaurants type into their name, branch or address are removed from those texts. Owner names, reviewer names and
review texts are not collected, nor is any customer data. Page names and URLs are kept exactly as the site publishes
them.

# Changelog

This Actor's version history is a separate document: https://apify.com/teodor_banea/line-man-restaurant-menu-scraper/changelog.md

# Actor input Schema

## `mode` (type: `string`):

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.

## `regions` (type: `array`):

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

## `regionIds` (type: `array`):

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-…).

## `restaurantUrls` (type: `array`):

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.

## `cuisines` (type: `array`):

Keep only restaurants of any of these categories (the site's own filter). Applies to regions, not to restaurant URLs.

## `onlyOpen` (type: `boolean`):

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.

## `maxRestaurants` (type: `integer`):

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.

## `maxItemsPerRestaurant` (type: `integer`):

In menus mode, keep only the first N menu items of each restaurant (in menu order). 0 = the whole menu.

## `maxItemsTotal` (type: `integer`):

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.

## `includeModifiers` (type: `boolean`):

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.

## Actor input object example

```json
{
  "mode": "menus",
  "regions": [
    "bangkok"
  ],
  "regionIds": [
    "142",
    "220"
  ],
  "restaurantUrls": [
    {
      "url": "https://www.wongnai.com/delivery/businesses/123456Ab/order"
    }
  ],
  "onlyOpen": false,
  "maxRestaurants": 2,
  "maxItemsPerRestaurant": 20,
  "maxItemsTotal": 0,
  "includeModifiers": true
}
```

# Actor output Schema

## `results` (type: `string`):

Every row of the run as JSON.

## `menu` (type: `string`):

Menus mode: restaurant, category, item, price, discount, in-store price, availability.

## `restaurants` (type: `string`):

Restaurants mode: position, name, cuisines, rating, price range, hours, district, address.

## `resultsCsv` (type: `string`):

The same rows as a CSV download.

## `restaurantRecords` (type: `string`):

One full restaurant record per scraped menu (rating, hours, address, coordinates), joinable on storeId.

## `errors` (type: `string`):

Restaurants not found or without a delivery menu, regions without restaurants, and requests that failed. Only present when something went wrong.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "menus",
    "regions": [
        "bangkok"
    ],
    "maxRestaurants": 2,
    "maxItemsPerRestaurant": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("teodor_banea/line-man-restaurant-menu-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "menus",
    "regions": ["bangkok"],
    "maxRestaurants": 2,
    "maxItemsPerRestaurant": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("teodor_banea/line-man-restaurant-menu-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "menus",
  "regions": [
    "bangkok"
  ],
  "maxRestaurants": 2,
  "maxItemsPerRestaurant": 20
}' |
apify call teodor_banea/line-man-restaurant-menu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,teodor_banea/line-man-restaurant-menu-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lFfZPuLJfITqTrgrq/builds/dpwA7eI8dsxcefTOK/openapi.json
