example-data.com

meals / #26

userId
Einar Volkman @einar_volkman69
name
Falafel Bowl
kind
lunch
calories
773
proteinGrams
51.8
carbsGrams
69
fatGrams
32.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/26"
)
meal = res.json()
{
  "id": 26,
  "userId": 7,
  "name": "Falafel Bowl",
  "kind": "lunch",
  "calories": 773,
  "proteinGrams": 51.8,
  "carbsGrams": 69,
  "fatGrams": 32.2,
  "eatenAt": "2025-09-13T01:50:43.853Z",
  "createdAt": "2025-09-13T01:53:42.696Z"
}
Draftbit