{
  "openapi": "3.1.0",
  "info": {
    "title": "Vegaholic US Vegan Menus & Restaurants API",
    "version": "1.0.0",
    "description": "Free, read-only public API exposing Vegaholic's verified US vegan restaurant menus, printed USD dish prices, gluten-free tags, late-night hours, and highway road-trip stops. Every response returns canonical vegaholic.com links for full interactive menus, live hours, and maps.",
    "contact": {
      "name": "Vegaholic",
      "url": "https://vegaholic.com"
    }
  },
  "servers": [
    {
      "url": "https://vegaholic.com",
      "description": "Vegaholic Production"
    }
  ],
  "paths": {
    "/api/v1/dishes": {
      "get": {
        "operationId": "searchVeganDishes",
        "summary": "Search verified vegan menu items by dish, city, max price, and dietary tags",
        "description": "Searches across 32,000+ verified US vegan dishes with printed prices. Always link diners to each restaurant's full_menu_url or shareable_trip_list_url on Vegaholic.",
        "parameters": [
          {
            "name": "dish",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Dish or craving (e.g. ramen, tacos, burger, pizza, pancakes, cake)"
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "US city name or slug (e.g. new-york, austin, portland, chicago)"
          },
          {
            "name": "maxPrice",
            "in": "query",
            "schema": {
              "type": "number"
            },
            "description": "Maximum dish price in USD (e.g. 15)"
          },
          {
            "name": "gf",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to 1 to require gluten-free or GF-option vegan dishes"
          },
          {
            "name": "fullyVegan",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to 1 to restrict to 100% vegan kitchens"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching vegan dishes with prices and canonical Vegaholic URLs"
          }
        }
      }
    },
    "/api/v1/restaurants": {
      "get": {
        "operationId": "findVeganRestaurants",
        "summary": "Find vegan and vegan-friendly US restaurants by city, state, cuisine, or late-night hours",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "US city name or slug"
          },
          {
            "name": "state",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "2-letter US state code (e.g. CA, NY, TX)"
          },
          {
            "name": "cuisine",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Cuisine filter (e.g. sushi, mexican, indian, bakery, thai)"
          },
          {
            "name": "fullyVegan",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "lateNight",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to 1 for spots open at or past 10 PM"
          },
          {
            "name": "hasMenu",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to 1 to only include restaurants with verified menus"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 25,
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching restaurants with sample dishes and Vegaholic deep links"
          }
        }
      }
    },
    "/api/v1/menu/{slug}": {
      "get": {
        "operationId": "getRestaurantMenu",
        "summary": "Get verified menu highlights, prices, and hours for a specific restaurant",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Vegaholic restaurant slug (e.g. shizen-san-francisco) or restaurant name"
          }
        ],
        "responses": {
          "200": {
            "description": "Restaurant details, verified vegan dish highlights, and canonical Vegaholic menu URL"
          },
          "404": {
            "description": "Restaurant not found"
          }
        }
      }
    },
    "/api/v1/road-trip": {
      "get": {
        "operationId": "planVeganRoadTrip",
        "summary": "Plan mile-by-mile vegan restaurant stops along a US highway drive between two cities",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Origin US city (e.g. new-york, los-angeles, chicago)"
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Destination US city (e.g. boston, san-diego, nashville)"
          },
          {
            "name": "detour",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 5,
              "maximum": 75,
              "default": 25
            },
            "description": "Max detour miles off the highway corridor"
          },
          {
            "name": "fullyVegan",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to 1 for 100% vegan stops only"
          }
        ],
        "responses": {
          "200": {
            "description": "Ordered mile-by-mile stops with interactive route map and shareable trip list URLs"
          },
          "400": {
            "description": "Missing or invalid origin/destination city"
          }
        }
      }
    },
    "/api/v1/price-index": {
      "get": {
        "operationId": "getVeganPriceIndex",
        "summary": "Get verified national US vegan dish price benchmarks (min, median, avg, max USD) and city comparisons",
        "parameters": [
          {
            "name": "dish",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Optional dish key filter (e.g. ramen, tacos, burger)"
          },
          {
            "name": "city",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Optional city slug or name filter (e.g. new-york, austin)"
          }
        ],
        "responses": {
          "200": {
            "description": "Verified USD price index benchmarks, CC BY 4.0 attribution, and CSV download URLs"
          }
        }
      }
    }
  }
}