example-data.com

meals / #138

userId
Kariane Schmitt @kariane.schmitt97
name
Protein Shake
kind
breakfast
calories
692
proteinGrams
50.8
carbsGrams
70.8
fatGrams
22.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/138"
)
meal = res.json()
{
  "id": 138,
  "userId": 32,
  "name": "Protein Shake",
  "kind": "breakfast",
  "calories": 692,
  "proteinGrams": 50.8,
  "carbsGrams": 70.8,
  "fatGrams": 22.8,
  "eatenAt": "2025-05-25T11:12:32.658Z",
  "createdAt": "2025-05-25T11:27:17.787Z"
}
Draftbit