example-data.com

meals / #167

userId
Amely Daniel @amely_daniel
name
Roasted Chicken
kind
dinner
calories
289
proteinGrams
6.2
carbsGrams
43.9
fatGrams
9.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/167"
)
meal = res.json()
{
  "id": 167,
  "userId": 41,
  "name": "Roasted Chicken",
  "kind": "dinner",
  "calories": 289,
  "proteinGrams": 6.2,
  "carbsGrams": 43.9,
  "fatGrams": 9.8,
  "eatenAt": "2025-09-22T23:52:26.176Z",
  "createdAt": "2025-09-22T23:55:41.503Z"
}
Draftbit