example-data.com

meals / #208

userId
Hermina West @hermina.west3
name
Shrimp and Veggies
kind
dinner
calories
631
proteinGrams
5.8
carbsGrams
75
fatGrams
34.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/208"
)
meal = res.json()
{
  "id": 208,
  "userId": 51,
  "name": "Shrimp and Veggies",
  "kind": "dinner",
  "calories": 631,
  "proteinGrams": 5.8,
  "carbsGrams": 75,
  "fatGrams": 34.2,
  "eatenAt": "2025-07-15T09:06:21.503Z",
  "createdAt": "2025-07-15T09:24:15.099Z"
}
Draftbit