example-data.com

meals / #165

userId
Gwendolyn Wyman @gwendolyn.wyman87
name
Avocado Toast
kind
breakfast
calories
209
proteinGrams
19.3
carbsGrams
15.2
fatGrams
7.9
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/165"
)
meal = res.json()
{
  "id": 165,
  "userId": 40,
  "name": "Avocado Toast",
  "kind": "breakfast",
  "calories": 209,
  "proteinGrams": 19.3,
  "carbsGrams": 15.2,
  "fatGrams": 7.9,
  "eatenAt": "2026-01-17T10:09:23.578Z",
  "createdAt": "2026-01-17T10:38:19.676Z"
}
Draftbit