example-data.com

meals / #10

userId
Conner Bernhard @conner.bernhard33
name
String Cheese
kind
snack
calories
464
proteinGrams
12
carbsGrams
40.8
fatGrams
28.1
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/10"
)
meal = res.json()
{
  "id": 10,
  "userId": 3,
  "name": "String Cheese",
  "kind": "snack",
  "calories": 464,
  "proteinGrams": 12,
  "carbsGrams": 40.8,
  "fatGrams": 28.1,
  "eatenAt": "2025-10-28T15:52:31.611Z",
  "createdAt": "2025-10-28T15:59:45.500Z"
}
Draftbit