example-data.com

meals / #188

userId
Della Labadie @della_labadie
name
String Cheese
kind
snack
calories
536
proteinGrams
57.5
carbsGrams
68.5
fatGrams
3.6
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/188"
)
meal = res.json()
{
  "id": 188,
  "userId": 46,
  "name": "String Cheese",
  "kind": "snack",
  "calories": 536,
  "proteinGrams": 57.5,
  "carbsGrams": 68.5,
  "fatGrams": 3.6,
  "eatenAt": "2026-02-14T23:14:49.494Z",
  "createdAt": "2026-02-14T23:35:03.001Z"
}
Draftbit