example-data.com

meals / #127

userId
Jensen Bashirian @jensen_bashirian
name
Apple and Peanut Butter
kind
snack
calories
270
proteinGrams
37.1
carbsGrams
7.8
fatGrams
10
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/127"
)
meal = res.json()
{
  "id": 127,
  "userId": 29,
  "name": "Apple and Peanut Butter",
  "kind": "snack",
  "calories": 270,
  "proteinGrams": 37.1,
  "carbsGrams": 7.8,
  "fatGrams": 10,
  "eatenAt": "2026-04-11T14:40:48.743Z",
  "createdAt": "2026-04-11T14:56:42.911Z"
}
Draftbit