Pasta with Marinara
- userId
-
Zachariah Herzog @zachariah_herzog42
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 722
- proteinGrams
- 58
- carbsGrams
- 65.3
- fatGrams
- 25.4
- eatenAt
- createdAt
Overview
meals / #62
Pasta with Marinara
#62
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/62" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/62" ); 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/62"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/62"
)
meal = res.json() Response
{
"id": 62,
"userId": 15,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 722,
"proteinGrams": 58,
"carbsGrams": 65.3,
"fatGrams": 25.4,
"eatenAt": "2025-06-21T07:06:33.837Z",
"createdAt": "2025-06-21T07:08:03.954Z"
}