example-data.com

meals / #160

userId
Margaretta Barrows @margaretta_barrows41
name
Sushi Roll
kind
lunch
calories
391
proteinGrams
37.4
carbsGrams
9.1
fatGrams
22.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/160"
)
meal = res.json()
{
  "id": 160,
  "userId": 39,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 391,
  "proteinGrams": 37.4,
  "carbsGrams": 9.1,
  "fatGrams": 22.8,
  "eatenAt": "2026-04-20T22:57:48.770Z",
  "createdAt": "2026-04-20T23:08:50.753Z"
}
Draftbit