example-data.com

meals / #206

userId
Hermina West @hermina.west3
name
Turkey Sandwich
kind
lunch
calories
550
proteinGrams
30.9
carbsGrams
37.8
fatGrams
30.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/206"
)
meal = res.json()
{
  "id": 206,
  "userId": 51,
  "name": "Turkey Sandwich",
  "kind": "lunch",
  "calories": 550,
  "proteinGrams": 30.9,
  "carbsGrams": 37.8,
  "fatGrams": 30.6,
  "eatenAt": "2025-08-05T18:44:28.874Z",
  "createdAt": "2025-08-05T19:00:03.973Z"
}
Draftbit