{
  "openapi": "3.0.1",
  "info": {
    "title": "Yemeksepeti Scraper — Restaurants, Menus & Prices (Turkey)",
    "description": "Scrape Yemeksepeti (Turkey): restaurants delivering to any point with rating, delivery time, fees, minimum order, offers and opening hours, or full menus with one row per item size, prices in TRY, discounts and option groups.",
    "version": "0.1",
    "x-build-id": "q5mYIjP3IgjlAzXnh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~yemeksepeti-restaurant-menu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-yemeksepeti-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~yemeksepeti-restaurant-menu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-yemeksepeti-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~yemeksepeti-restaurant-menu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-yemeksepeti-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": "\"Restaurant list\" returns one row per restaurant that delivers to your point (rating, delivery time, fees, minimum order, offers, open state). \"Full menus with prices\" opens each restaurant and returns one row per menu item size, with option groups and option prices — a typical restaurant has 30–300 rows.",
            "default": "restaurants"
          },
          "locations": {
            "title": "Delivery points (latitude,longitude)",
            "type": "array",
            "description": "Enter delivery points in Turkey as \"latitude,longitude\", e.g. \"41.0082,28.9784\" (Istanbul, Sultanahmet) or \"39.9208,32.8541\" (Ankara). Each point returns the restaurants that deliver there, in the platform's order.",
            "items": {
              "type": "string"
            }
          },
          "restaurantUrls": {
            "title": "Restaurant URLs or codes",
            "type": "array",
            "description": "Enter Yemeksepeti restaurant pages (https://www.yemeksepeti.com/restaurant/cii9/papa-johns-pizza-cii9) or just their codes (cii9). These are scraped directly, in addition to any delivery points.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "Language",
            "enum": [
              "tr",
              "en"
            ],
            "type": "string",
            "description": "Pick the language of cuisine names, deal titles and (where the restaurant provides translations) menu texts.",
            "default": "tr"
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Keep only restaurants whose name, chain or cuisine contains this text. Case- and Turkish-letter-insensitive: \"doner\" matches \"Döner\"."
          },
          "cuisines": {
            "title": "Cuisines",
            "type": "array",
            "description": "Keep only restaurants with one of these cuisines, e.g. \"Pizza\", \"Döner\", \"Burger\" (same matching as the search text).",
            "items": {
              "type": "string"
            }
          },
          "onlyOpen": {
            "title": "Only restaurants open now",
            "type": "boolean",
            "description": "Keep only restaurants that take delivery orders at the time of the run.",
            "default": false
          },
          "minRating": {
            "title": "Minimum rating",
            "pattern": "^\\s*$|^[0-5]([.,][0-9]+)?$",
            "type": "string",
            "description": "Keep only restaurants rated at least this (1–5), e.g. \"4.2\". Unrated restaurants are dropped when this is set."
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "platform",
              "distance",
              "rating",
              "deliveryFee",
              "minimumOrder"
            ],
            "type": "string",
            "description": "Order of the restaurants before the limit applies. Any order other than the platform's reads the full restaurant list of every point first (one or two extra seconds per point).",
            "default": "platform"
          },
          "maxRestaurants": {
            "title": "Maximum restaurants",
            "minimum": 0,
            "maximum": 3000,
            "type": "integer",
            "description": "Limit the restaurants scraped in the whole run (restaurant rows, or menus opened). Set 0 for all restaurants of your points (up to 3,000). In menus mode, restaurants with an empty menu are skipped and do not count.",
            "default": 50
          },
          "maxItemsPerRestaurant": {
            "title": "Maximum menu rows per restaurant",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "In menus mode, keep only the first N rows (item sizes) of each menu, in menu order. Set 0 for complete menus.",
            "default": 0
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 50000,
            "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 guard of 50,000 rows still applies).",
            "default": 0
          },
          "includeModifiers": {
            "title": "Include option groups",
            "type": "boolean",
            "description": "In menus mode, attach each item size's option groups (toppings, sides, drink choices) with option prices. Switch off for smaller, CSV-friendly rows.",
            "default": true
          },
          "includeDetails": {
            "title": "Include restaurant details",
            "type": "boolean",
            "description": "In restaurants mode, open each restaurant once more for opening hours, deals, topic ratings, legal entity and description. Slower (one more request per restaurant); 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}