example-data.com

meals / #102

userId
Ericka DuBuque @ericka.dubuque
name
Chicken Caesar Salad
kind
lunch
calories
483
proteinGrams
12.9
carbsGrams
18.8
fatGrams
39.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/102"
)
meal = res.json()
{
  "id": 102,
  "userId": 23,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 483,
  "proteinGrams": 12.9,
  "carbsGrams": 18.8,
  "fatGrams": 39.6,
  "eatenAt": "2025-11-13T11:32:18.423Z",
  "createdAt": "2025-11-13T11:58:22.213Z"
}
Draftbit