example-data.com

meals / #134

userId
Kariane Schmitt @kariane.schmitt97
name
Sushi Roll
kind
lunch
calories
297
proteinGrams
10.3
carbsGrams
18
fatGrams
20.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/134"
)
meal = res.json()
{
  "id": 134,
  "userId": 32,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 297,
  "proteinGrams": 10.3,
  "carbsGrams": 18,
  "fatGrams": 20.4,
  "eatenAt": "2026-02-17T23:49:45.654Z",
  "createdAt": "2026-02-17T23:55:37.929Z"
}
Draftbit