example-data.com

meals / #99

userId
Ericka DuBuque @ericka.dubuque
name
Cottage Cheese
kind
snack
calories
430
proteinGrams
34.7
carbsGrams
35
fatGrams
16.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/99"
)
meal = res.json()
{
  "id": 99,
  "userId": 23,
  "name": "Cottage Cheese",
  "kind": "snack",
  "calories": 430,
  "proteinGrams": 34.7,
  "carbsGrams": 35,
  "fatGrams": 16.8,
  "eatenAt": "2025-07-31T05:19:52.664Z",
  "createdAt": "2025-07-31T05:35:15.416Z"
}
Draftbit