example-data.com

meals / #76

userId
Gavin Lowe @gavin_lowe
name
Hummus and Veggies
kind
snack
calories
299
proteinGrams
6.8
carbsGrams
19.6
fatGrams
21.5
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/76"
)
meal = res.json()
{
  "id": 76,
  "userId": 17,
  "name": "Hummus and Veggies",
  "kind": "snack",
  "calories": 299,
  "proteinGrams": 6.8,
  "carbsGrams": 19.6,
  "fatGrams": 21.5,
  "eatenAt": "2025-06-29T16:42:37.537Z",
  "createdAt": "2025-06-29T16:44:38.092Z"
}
Draftbit