{
  "openapi": "3.0.1",
  "info": {
    "title": "elmenus Restaurant & Menu Scraper (Egypt)",
    "description": "Scrape elmenus, Egypt's food-delivery and restaurant guide: restaurants by city and area (rating, cuisines, offers, open now, address, delivery fee, hours) and flat menu rows per item size with prices and old prices in EGP, likes and extras. English or Arabic. No proxy setup.",
    "version": "0.1",
    "x-build-id": "EI36h6RYXLax14kIh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~elmenus-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-elmenus-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~elmenus-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-elmenus-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~elmenus-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-elmenus-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 extract",
            "enum": [
              "restaurants",
              "menus"
            ],
            "type": "string",
            "description": "\"Restaurants\" returns one row per restaurant from the area lists (rating, cuisines, open now, offers, featured dishes; add details below for address, coordinates, delivery fee and hours). \"Menus\" opens each restaurant and returns one row per menu item size (category, name, description, price and old price in EGP, likes, availability, image) with the restaurant's columns on every row — a menu has 50–250 such rows, so menus multiply the row count.",
            "default": "restaurants"
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Enter Egyptian city names in English or Arabic, any case (e.g. \"Cairo\", \"alexandria\", \"القاهرة\"). elmenus covers 25 cities. Unknown names are reported with close matches.",
            "items": {
              "type": "string"
            }
          },
          "areas": {
            "title": "Areas",
            "type": "array",
            "description": "Optionally enter delivery areas within the cities above, in English or Arabic (e.g. \"Zamalek\", \"maadi\", \"الزمالك\"). Leave empty to take the first areas of each city in elmenus's order (see Areas per city).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "elmenus URLs",
            "type": "array",
            "description": "Optionally paste elmenus area lists (https://www.elmenus.com/cairo/delivery/zamalek), city delivery pages (https://www.elmenus.com/cairo/delivery) or restaurant pages (https://www.elmenus.com/cairo/example-koshary-house-ab12, also with a branch at the end). English and Arabic addresses both work.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxAreasPerCity": {
            "title": "Areas per city",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "When no areas are entered, read this many areas of each city, in elmenus's order. Set to 0 for every area of the city (Cairo has 50+ areas; restaurants repeat across areas and are returned once; the restaurant limit still stops the run).",
            "default": 1
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many restaurants for the whole run (restaurant rows, or restaurants whose menus are returned). Restaurants without a menu are skipped and not counted. Set to 0 for the run maximum of 5,000.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum menu rows per restaurant",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Menus only: keep the first N rows of each menu (one row per item size), in menu order. Set to 0 for complete menus.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Set a hard ceiling on rows (billed results) for the whole run; the run stops as soon as it is reached. Set to 0 for the run maximum of 50,000.",
            "default": 0
          },
          "onlyOpen": {
            "title": "Only restaurants open now",
            "type": "boolean",
            "description": "Keep only restaurants that elmenus shows as open at the time of the run.",
            "default": false
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep only restaurants tagged with at least one of these cuisines, in English or Arabic, any case (e.g. \"Pizza\", \"Koshary\", \"Burger\", \"بيتزا\").",
            "items": {
              "type": "string"
            }
          },
          "searchQuery": {
            "title": "Restaurant name contains",
            "type": "string",
            "description": "Keep only restaurants whose name contains this text, any case, English or Arabic (e.g. \"pizza\", \"كشري\")."
          },
          "includeDetails": {
            "title": "Include restaurant details",
            "type": "boolean",
            "description": "Restaurants mode: open each restaurant page for the branch serving the area — branch, address, coordinates, business phone, delivery fee, delivery time, minimum order, payment methods and delivery hours. One extra page per restaurant (slower). Menus mode always includes them in the restaurant records.",
            "default": false
          },
          "includeModifiers": {
            "title": "Include item extras",
            "type": "boolean",
            "description": "Menus mode: add each item's choice groups and extras (e.g. \"Choose your sauce\", \"Add-ons\") with option prices for the row's size. One extra request per customizable item — about half of a menu — so runs take several times longer.",
            "default": false
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ar"
            ],
            "type": "string",
            "description": "Language of names, descriptions, categories, cuisines, cities and areas in the output. Slugs stay in English where elmenus has them; prices are in EGP either way.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}