Greek Yogurt Parfait
- userId
-
Mckenna Hegmann-Price @mckenna.hegmann-price77
- name
- Greek Yogurt Parfait
- kind
- breakfast
- calories
- 344
- proteinGrams
- 20.3
- carbsGrams
- 39
- fatGrams
- 11.9
- eatenAt
- createdAt
Overview
meals / #255
Greek Yogurt Parfait
#255
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/255" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/255" ); 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/255"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/255"
)
meal = res.json() Response
{
"id": 255,
"userId": 62,
"name": "Greek Yogurt Parfait",
"kind": "breakfast",
"calories": 344,
"proteinGrams": 20.3,
"carbsGrams": 39,
"fatGrams": 11.9,
"eatenAt": "2025-05-22T16:03:58.137Z",
"createdAt": "2025-05-22T16:06:17.878Z"
}