example-data.com
Menu
Browse docs and collections

menu-items

menu-items

Page 7 of 61.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/menu-items?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/menu-items?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/menu-items.d.ts https://example-data.com/types/menu-items.d.ts
import type { MenuItem, ListEnvelope } from "./types/menu-items";

const res = await fetch(
  "https://example-data.com/api/v1/menu-items?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<MenuItem>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/menu-items",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 145,
      "menuId": 15,
      "name": "Garden Crab Risotto",
      "slug": "garden-crab-risotto-145",
      "description": "Light and refreshing with a hint of citrus and herbs.",
      "price": 71.89,
      "currency": "USD",
      "foodCategoryId": 19,
      "spicyLevel": 0,
      "isVegetarian": false,
      "isVegan": false,
      "isGlutenFree": false,
      "imageUrl": "https://picsum.photos/seed/menu-item-145/640/480",
      "createdAt": "2025-01-11T07:58:19.399Z"
    },
    {
      "id": 146,
      "menuId": 15,
      "name": "Pan-Seared Cod Soup",
      "slug": "pan-seared-cod-soup-146",
      "description": "A light yet satisfying dish with vibrant flavors.",
      "price": 43.72,
      "currency": "USD",
      "foodCategoryId": 25,
      "spicyLevel": 2,
      "isVegetarian": false,
      "isVegan": false,
      "isGlutenFree": false,
      "imageUrl": "https://picsum.photos/seed/menu-item-146/640/480",
      "createdAt": "2024-11-08T02:39:47.395Z"
    },
    {
      "id": 147,
      "menuId": 15,
      "name": "House Mushroom Risotto",
      "slug": "house-mushroom-risotto-147",
      "description": "Rich flavors layered with care by our kitchen team.",
      "price": 55.71,
      "currency": "USD",
      "foodCategoryId": null,
      "spicyLevel": 0,
      "isVegetarian": true,
      "isVegan": false,
      "isGlutenFree": false,
      "imageUrl": "https://picsum.photos/seed/menu-item-147/640/480",
      "createdAt": "2024-09-22T18:52:10.393Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 1450,
    "totalPages": 61
  },
  "links": {
    "self": "/api/v1/menu-items?page=7&limit=24",
    "first": "/api/v1/menu-items?page=1&limit=24",
    "last": "/api/v1/menu-items?page=61&limit=24",
    "next": "/api/v1/menu-items?page=8&limit=24",
    "prev": "/api/v1/menu-items?page=6&limit=24"
  }
}