example-data.com

meals / #79

userId
Kenya Abshire @kenya.abshire
name
Trail Mix
kind
snack
calories
349
proteinGrams
7.8
carbsGrams
21.8
fatGrams
25.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/79"
)
meal = res.json()
{
  "id": 79,
  "userId": 18,
  "name": "Trail Mix",
  "kind": "snack",
  "calories": 349,
  "proteinGrams": 7.8,
  "carbsGrams": 21.8,
  "fatGrams": 25.6,
  "eatenAt": "2025-09-08T10:26:10.972Z",
  "createdAt": "2025-09-08T10:38:35.085Z"
}
Draftbit