Pasta with Marinara
- userId
-
Lilla Koss @lilla.koss
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 529
- proteinGrams
- 35.5
- carbsGrams
- 53
- fatGrams
- 19.4
- eatenAt
- createdAt
Overview
meals / #242
Pasta with Marinara
#242
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/242" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/242" ); 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/242"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/242"
)
meal = res.json() Response
{
"id": 242,
"userId": 59,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 529,
"proteinGrams": 35.5,
"carbsGrams": 53,
"fatGrams": 19.4,
"eatenAt": "2025-09-26T10:42:11.473Z",
"createdAt": "2025-09-26T10:45:42.805Z"
}