{
  "openapi": "3.0.1",
  "info": {
    "title": "Yemeksepeti Scraper: Restaurants, Menus & Prices",
    "description": "Yemeksepeti restaurants by city or coordinates: rating, review count, delivery fee, minimum order, offers, opening hours. Menus mode adds one row per item size with TRY price, pre-discount price and options. No login. $1.50 per 1,000 restaurants, full menus +$1.00 per 1,000.",
    "version": "0.1",
    "x-build-id": "N5DiRpQUKvZ2c6tgS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subimpact~yemeksepeti-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subimpact-yemeksepeti-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/subimpact~yemeksepeti-scraper/runs": {
      "post": {
        "operationId": "runs-sync-subimpact-yemeksepeti-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/subimpact~yemeksepeti-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-subimpact-yemeksepeti-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": {
          "restaurantUrls": {
            "title": "Restaurant URLs or codes",
            "type": "array",
            "description": "Restaurants to scrape directly, one per line. Paste restaurant URLs such as https://www.yemeksepeti.com/restaurant/awhi/eyup-sultan-sofrasi-awhi or bare codes such as awhi. Leave empty to discover restaurants from `locations` instead. An entry that is neither a restaurant URL nor a code becomes its own error row and the run continues.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (discovery)",
            "type": "array",
            "description": "Find restaurants near a place instead of pasting codes. Each entry is a city preset name (Istanbul, Ankara, Izmir, Antalya, Bursa) or a \"lat,lng\" pair such as 41.0082,28.9784. Ignored when restaurant URLs or codes are given. Empty input falls back to Istanbul.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "restaurants",
              "menus"
            ],
            "type": "string",
            "description": "restaurants: one row per restaurant with rating, reviews, fees, minimum order, offers and hours. menus: that same restaurant row plus one row per menu item size (each orderable size is its own row) with TRY prices.",
            "default": "restaurants"
          },
          "maxRestaurants": {
            "title": "Max restaurants",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Total number of restaurants to collect across all locations in discovery mode (1-3000). Restaurants are taken in the platform's listing order, so the cheapest runs are the smallest caps. When you pass restaurant URLs or codes, every entry you give is scraped.",
            "default": 20
          },
          "gridRadiusKm": {
            "title": "Grid radius (km)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Optional square geo-grid around each location: 0 uses only the location point (one listing request per 50 restaurants). Set 3-10 to cover more of a city, with `gridStepKm` controlling the point spacing. Duplicates are removed by restaurant code.",
            "default": 0
          },
          "gridStepKm": {
            "title": "Grid step (km)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Spacing between grid points when `gridRadiusKm` is greater than 0 (1-10 km). Smaller steps cover a city more densely and cost more listing requests.",
            "default": 3
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Optional. Keep only restaurants whose name or cuisine contains this text, accent and case-insensitive (doner matches Döner). Applied to the listing in discovery mode."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional. Keep only restaurants rated at least this (0-5), for example 4.5. Restaurants without a rating are dropped when this is set."
          },
          "maxMenuItemsPerRestaurant": {
            "title": "Max menu item rows per restaurant",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Menus mode only. Cap the number of menu item rows per restaurant (0 = the complete menu). Menu item rows are not billed per row, so 0 is fine for most runs.",
            "default": 0
          },
          "includeOptions": {
            "title": "Include option groups (toppings)",
            "type": "boolean",
            "description": "Menus mode only. Attach the option groups of each item (extras, dough, size choices...) with their prices to the item row as `optionGroups`.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (menus and restaurant details)",
            "type": "object",
            "description": "Used only for restaurant detail and menu requests; restaurant discovery from a location needs no proxy. The default, Apify residential proxy in Turkey, is the tested setting: the menu API blocks repeated requests from one datacentre IP after a few calls. Proxy traffic is included in the price. Turn Apify Proxy off only for a quick test, the menu API will answer 403 to this machine.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "TR"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}