example-data.com

meals / #54

userId
Judy Hackett @judy_hackett49
name
Sushi Roll
kind
lunch
calories
409
proteinGrams
26.7
carbsGrams
57.7
fatGrams
7.9
eatenAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/meals/54" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/meals/54"
);
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/54"
);
const meal = (await res.json()) as Meal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/meals/54"
)
meal = res.json()
{
  "id": 54,
  "userId": 13,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 409,
  "proteinGrams": 26.7,
  "carbsGrams": 57.7,
  "fatGrams": 7.9,
  "eatenAt": "2025-12-27T12:10:08.188Z",
  "createdAt": "2025-12-27T12:21:33.137Z"
}
Draftbit