{
  "openapi": "3.0.1",
  "info": {
    "title": "ShopeeFood Vietnam Scraper — Restaurants, Menus & Prices",
    "description": "Scrape ShopeeFood Vietnam: restaurants of any of 47 cities, by district, delivery point or search, with rating, cuisines, minimum order, open state and offers, or full menus with VND prices, discounts, availability and option groups. No proxy setup.",
    "version": "0.1",
    "x-build-id": "0lEclh1Xp5CUeVv5a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~shopeefood-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-shopeefood-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~shopeefood-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-shopeefood-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~shopeefood-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-shopeefood-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": "\"Full menus\" returns one row per dish with prices, discounts, availability and option groups (a typical restaurant has 20–150 dishes). \"Restaurant list\" returns one row per restaurant (rating, cuisines, minimum order, open state, offers, address, coordinates).",
            "default": "menus"
          },
          "city": {
            "title": "City",
            "enum": [
              "ho-chi-minh",
              "ha-noi",
              "da-nang",
              "can-tho",
              "hai-phong",
              "hue",
              "khanh-hoa",
              "dong-nai",
              "nghe-an",
              "vung-tau",
              "an-giang",
              "bac-lieu",
              "bac-giang",
              "bac-ninh",
              "ben-tre",
              "binh-duong",
              "binh-dinh",
              "binh-phuoc",
              "binh-thuan",
              "ca-mau",
              "dak-lak",
              "dien-bien",
              "dong-thap",
              "gia-lai",
              "hai-duong",
              "hau-giang",
              "hung-yen",
              "kien-giang",
              "lam-dong",
              "long-an",
              "nam-dinh",
              "ninh-thuan",
              "phu-tho",
              "phu-yen",
              "quang-binh",
              "quang-nam",
              "quang-ngai",
              "quang-ninh",
              "soc-trang",
              "tay-ninh",
              "thai-binh",
              "thai-nguyen",
              "thanh-hoa",
              "tien-giang",
              "tra-vinh",
              "vinh-long",
              "vinh-phuc"
            ],
            "type": "string",
            "description": "Choose a city. Without districts or delivery points the whole city is covered district by district (Ho Chi Minh City: about 8,000 restaurants), in ShopeeFood's own order."
          },
          "districts": {
            "title": "Districts",
            "type": "array",
            "description": "Limit the city to these districts, as ShopeeFood names them (\"Quận 1\", \"Bình Thạnh\", \"Thành Phố Thủ Đức\", \"Ba Đình\"). Accents and case are ignored; \"District 3\", \"Q3\" and \"3\" also work. Unknown names are listed with close matches.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Delivery points (latitude,longitude)",
            "type": "array",
            "description": "Instead of whole districts, enter delivery points in Vietnam as \"latitude,longitude\", e.g. \"10.7769,106.7009\" (Ho Chi Minh City, District 1). Each point returns the restaurants ShopeeFood lists for it (about 350–400).",
            "items": {
              "type": "string"
            }
          },
          "restaurantUrls": {
            "title": "Restaurant URLs",
            "type": "array",
            "description": "Paste ShopeeFood restaurant pages (https://shopeefood.vn/<city>/<restaurant>). They are scraped in addition to the city and always come first; a URL that no longer exists is reported and skipped.",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Use ShopeeFood's own search in the chosen city (or around your points), e.g. \"phở\", \"trà sữa\", \"pizza\". ShopeeFood returns at most the 200 best matches per city, so this is a quick sample, not a complete list."
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep only restaurants with one of these cuisine or venue-type labels, in Vietnamese as on the site (\"Món Việt\", \"Món Hàn\", \"Café/Dessert\", \"Ăn vặt/vỉa hè\") or in English (\"korean\", \"japanese\", \"coffee\", \"snacks\", \"vegetarian\"). A word in the restaurant name also matches (\"pizza\").",
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only restaurants open now",
            "type": "boolean",
            "description": "Keep only restaurants that take orders at the time of the run.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "4",
              "4.5",
              "4.8"
            ],
            "type": "string",
            "description": "Keep only restaurants rated at least this. Unrated restaurants are dropped when this is set."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "platform",
              "nearest",
              "rating"
            ],
            "type": "string",
            "description": "Order in which restaurants are taken before the limits apply. \"Best rated first\" reads the details of every restaurant of an area first (a few seconds more per area).",
            "default": "platform"
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit the restaurants for the whole run (restaurant rows, or menus read). Set 0 for no limit (a safety cap of 10,000 restaurants or 2,000 menus still applies). In menus mode, restaurants with an empty menu are skipped and do not count.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum dishes per restaurant",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "In menus mode, keep only the first N dishes of each menu, in menu order. Set 0 for complete menus.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Set a hard ceiling on billed rows for the whole run; the run stops as soon as it is reached. Set 0 for no ceiling (a safety cap of 50,000 rows still applies).",
            "default": 0
          },
          "includeModifiers": {
            "title": "Include option groups",
            "type": "boolean",
            "description": "In menus mode, add each dish's option groups (sizes, toppings, sugar and ice levels, extras) with option prices. They come with the menu at no extra cost; switch off for smaller, CSV-friendly rows.",
            "default": true
          },
          "includeDetails": {
            "title": "Include restaurant details",
            "type": "boolean",
            "description": "Also read each restaurant page for its full weekly opening hours (every shift of every day), average dish price and payment methods. About two seconds more per restaurant (300 restaurants: about 9 minutes). Restaurant URLs always get these details.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}