example-data.com

meals / #177

userId
Everett Yundt @everett_yundt11
name
String Cheese
kind
snack
calories
351
proteinGrams
5.1
carbsGrams
17.8
fatGrams
28.8
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/177"
)
meal = res.json()
{
  "id": 177,
  "userId": 44,
  "name": "String Cheese",
  "kind": "snack",
  "calories": 351,
  "proteinGrams": 5.1,
  "carbsGrams": 17.8,
  "fatGrams": 28.8,
  "eatenAt": "2026-01-24T14:46:32.075Z",
  "createdAt": "2026-01-24T15:01:17.106Z"
}
Draftbit