example-data.com

meals / #126

userId
Jensen Bashirian @jensen_bashirian
name
Chicken Caesar Salad
kind
lunch
calories
595
proteinGrams
18.4
carbsGrams
53
fatGrams
34.4
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/126"
)
meal = res.json()
{
  "id": 126,
  "userId": 29,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 595,
  "proteinGrams": 18.4,
  "carbsGrams": 53,
  "fatGrams": 34.4,
  "eatenAt": "2026-04-09T06:42:49.042Z",
  "createdAt": "2026-04-09T06:57:02.863Z"
}
Draftbit