example-data.com

meals / #78

userId
Kenya Abshire @kenya.abshire
name
Tuna Wrap
kind
lunch
calories
283
proteinGrams
6.4
carbsGrams
18.1
fatGrams
20.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/78"
)
meal = res.json()
{
  "id": 78,
  "userId": 18,
  "name": "Tuna Wrap",
  "kind": "lunch",
  "calories": 283,
  "proteinGrams": 6.4,
  "carbsGrams": 18.1,
  "fatGrams": 20.5,
  "eatenAt": "2025-07-26T02:25:01.236Z",
  "createdAt": "2025-07-26T02:46:09.437Z"
}
Draftbit