example-data.com

meals / #112

userId
Jennifer Stoltenberg @jennifer_stoltenberg
name
Protein Bar
kind
snack
calories
433
proteinGrams
6.8
carbsGrams
24.8
fatGrams
34.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/112"
)
meal = res.json()
{
  "id": 112,
  "userId": 25,
  "name": "Protein Bar",
  "kind": "snack",
  "calories": 433,
  "proteinGrams": 6.8,
  "carbsGrams": 24.8,
  "fatGrams": 34.1,
  "eatenAt": "2026-03-31T16:08:04.480Z",
  "createdAt": "2026-03-31T16:22:18.513Z"
}
Draftbit