Pasta with Marinara
- userId
-
Carmel Schultz @carmel.schultz
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 453
- proteinGrams
- 29.3
- carbsGrams
- 24.8
- fatGrams
- 26.3
- eatenAt
- createdAt
Overview
meals / #645
Pasta with Marinara
#645
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/645" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/645" ); 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/645"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/645"
)
meal = res.json() Response
{
"id": 645,
"userId": 156,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 453,
"proteinGrams": 29.3,
"carbsGrams": 24.8,
"fatGrams": 26.3,
"eatenAt": "2025-07-04T06:19:34.819Z",
"createdAt": "2025-07-04T06:34:48.540Z"
}