example-data.com
Menu
Browse docs and collections

Overview

meals / #782

Greek Yogurt Parfait

userId
Wilton Dietrich @wilton.dietrich23
name
Greek Yogurt Parfait
kind
breakfast
calories
357
proteinGrams
22.7
carbsGrams
6.9
fatGrams
26.5
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/meals/782"
);
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/782"
);
const meal = (await res.json()) as Meal;

Python example

import requests

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

Response

{
  "id": 782,
  "userId": 190,
  "name": "Greek Yogurt Parfait",
  "kind": "breakfast",
  "calories": 357,
  "proteinGrams": 22.7,
  "carbsGrams": 6.9,
  "fatGrams": 26.5,
  "eatenAt": "2025-11-18T18:17:43.086Z",
  "createdAt": "2025-11-18T18:29:04.631Z"
}