example-data.com

meals / #90

userId
Alvina Koch @alvina.koch8
name
Lentil Soup
kind
lunch
calories
428
proteinGrams
49.4
carbsGrams
30.5
fatGrams
12
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/90"
)
meal = res.json()
{
  "id": 90,
  "userId": 20,
  "name": "Lentil Soup",
  "kind": "lunch",
  "calories": 428,
  "proteinGrams": 49.4,
  "carbsGrams": 30.5,
  "fatGrams": 12,
  "eatenAt": "2025-05-26T17:01:32.864Z",
  "createdAt": "2025-05-26T17:29:45.523Z"
}
Draftbit