example-data.com

meals / #109

userId
Jennifer Stoltenberg @jennifer_stoltenberg
name
Protein Shake
kind
breakfast
calories
690
proteinGrams
9.7
carbsGrams
77.3
fatGrams
38
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/109"
)
meal = res.json()
{
  "id": 109,
  "userId": 25,
  "name": "Protein Shake",
  "kind": "breakfast",
  "calories": 690,
  "proteinGrams": 9.7,
  "carbsGrams": 77.3,
  "fatGrams": 38,
  "eatenAt": "2025-06-24T15:18:48.137Z",
  "createdAt": "2025-06-24T15:47:07.580Z"
}
Draftbit