example-data.com

meals / #130

userId
Conrad Connelly @conrad.connelly22
name
Egg White Omelette
kind
breakfast
calories
558
proteinGrams
13.4
carbsGrams
79.2
fatGrams
20.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/130"
)
meal = res.json()
{
  "id": 130,
  "userId": 30,
  "name": "Egg White Omelette",
  "kind": "breakfast",
  "calories": 558,
  "proteinGrams": 13.4,
  "carbsGrams": 79.2,
  "fatGrams": 20.8,
  "eatenAt": "2025-09-28T14:05:11.188Z",
  "createdAt": "2025-09-28T14:34:11.038Z"
}
Draftbit