example-data.com

meals / #1

userId
Charlene Roberts @charlene_roberts
name
Baked Salmon
kind
dinner
calories
565
proteinGrams
53.6
carbsGrams
18.6
fatGrams
30.7
eatenAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/meals/1"
)
meal = res.json()
{
  "id": 1,
  "userId": 1,
  "name": "Baked Salmon",
  "kind": "dinner",
  "calories": 565,
  "proteinGrams": 53.6,
  "carbsGrams": 18.6,
  "fatGrams": 30.7,
  "eatenAt": "2025-09-09T20:25:35.188Z",
  "createdAt": "2025-09-09T20:49:18.988Z"
}
Draftbit