example-data.com

meals / #210

userId
Hermina West @hermina.west3
name
Chicken Stir-Fry
kind
dinner
calories
350
proteinGrams
26
carbsGrams
56.2
fatGrams
2.3
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/210"
)
meal = res.json()
{
  "id": 210,
  "userId": 51,
  "name": "Chicken Stir-Fry",
  "kind": "dinner",
  "calories": 350,
  "proteinGrams": 26,
  "carbsGrams": 56.2,
  "fatGrams": 2.3,
  "eatenAt": "2025-06-30T18:31:31.260Z",
  "createdAt": "2025-06-30T18:58:43.033Z"
}
Draftbit