example-data.com

meals / #16

userId
Cayla Farrell @cayla_farrell
name
Sushi Roll
kind
lunch
calories
695
proteinGrams
52.4
carbsGrams
56.3
fatGrams
28.9
eatenAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/meals/16" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/meals/16"
);
const meal = await res.json();
import type { Meal } from "https://example-data.com/types/meals.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/meals/16"
);
const meal = (await res.json()) as Meal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/meals/16"
)
meal = res.json()
{
  "id": 16,
  "userId": 4,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 695,
  "proteinGrams": 52.4,
  "carbsGrams": 56.3,
  "fatGrams": 28.9,
  "eatenAt": "2025-10-03T03:23:49.376Z",
  "createdAt": "2025-10-03T03:51:47.081Z"
}
Draftbit