example-data.com

meals / #93

userId
Guy Christiansen @guy.christiansen40
name
Smoothie Bowl
kind
breakfast
calories
376
proteinGrams
17.5
carbsGrams
28.7
fatGrams
21.2
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/93"
)
meal = res.json()
{
  "id": 93,
  "userId": 21,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 376,
  "proteinGrams": 17.5,
  "carbsGrams": 28.7,
  "fatGrams": 21.2,
  "eatenAt": "2025-09-02T21:26:56.063Z",
  "createdAt": "2025-09-02T21:28:33.244Z"
}
Draftbit