example-data.com

meals / #207

userId
Hermina West @hermina.west3
name
Turkey Sandwich
kind
lunch
calories
557
proteinGrams
33.7
carbsGrams
30.7
fatGrams
33.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/207"
)
meal = res.json()
{
  "id": 207,
  "userId": 51,
  "name": "Turkey Sandwich",
  "kind": "lunch",
  "calories": 557,
  "proteinGrams": 33.7,
  "carbsGrams": 30.7,
  "fatGrams": 33.3,
  "eatenAt": "2026-05-13T18:53:46.520Z",
  "createdAt": "2026-05-13T19:14:15.219Z"
}
Draftbit