example-data.com

meals / #38

userId
Jaycee Erdman @jaycee_erdman96
name
Apple and Peanut Butter
kind
snack
calories
522
proteinGrams
34.4
carbsGrams
23.3
fatGrams
32.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/38"
)
meal = res.json()
{
  "id": 38,
  "userId": 10,
  "name": "Apple and Peanut Butter",
  "kind": "snack",
  "calories": 522,
  "proteinGrams": 34.4,
  "carbsGrams": 23.3,
  "fatGrams": 32.4,
  "eatenAt": "2025-10-11T19:43:39.378Z",
  "createdAt": "2025-10-11T20:11:37.976Z"
}
Draftbit