example-data.com

meals / #34

userId
Alvena Emmerich @alvena_emmerich52
name
Smoothie Bowl
kind
breakfast
calories
515
proteinGrams
15
carbsGrams
26.1
fatGrams
39
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/34"
)
meal = res.json()
{
  "id": 34,
  "userId": 8,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 515,
  "proteinGrams": 15,
  "carbsGrams": 26.1,
  "fatGrams": 39,
  "eatenAt": "2025-07-01T22:13:10.882Z",
  "createdAt": "2025-07-01T22:18:12.844Z"
}
Draftbit