example-data.com

meals / #117

userId
Melvina Reilly @melvina_reilly83
name
Lentil Soup
kind
lunch
calories
187
proteinGrams
6.6
carbsGrams
9.1
fatGrams
13.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/117"
)
meal = res.json()
{
  "id": 117,
  "userId": 26,
  "name": "Lentil Soup",
  "kind": "lunch",
  "calories": 187,
  "proteinGrams": 6.6,
  "carbsGrams": 9.1,
  "fatGrams": 13.8,
  "eatenAt": "2026-02-22T12:36:35.135Z",
  "createdAt": "2026-02-22T13:04:20.048Z"
}
Draftbit