example-data.com
Menu
Browse docs and collections

Overview

meals / #903

Veggie Burger

userId
Dasia Volkman @dasia_volkman65
name
Veggie Burger
kind
lunch
calories
632
proteinGrams
31.3
carbsGrams
62.4
fatGrams
28.6
eatenAt
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/meals/903" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/meals/903"
);
const meal = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/meals.d.ts https://example-data.com/types/meals.d.ts
import type { Meal } from "./types/meals";

const res = await fetch(
  "https://example-data.com/api/v1/meals/903"
);
const meal = (await res.json()) as Meal;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/meals/903"
)
meal = res.json()

Response

{
  "id": 903,
  "userId": 219,
  "name": "Veggie Burger",
  "kind": "lunch",
  "calories": 632,
  "proteinGrams": 31.3,
  "carbsGrams": 62.4,
  "fatGrams": 28.6,
  "eatenAt": "2026-01-03T14:40:54.688Z",
  "createdAt": "2026-01-03T14:48:09.630Z"
}