Pasta with Marinara
- userId
-
Wade Upton @wade_upton78
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 504
- proteinGrams
- 14.1
- carbsGrams
- 42.1
- fatGrams
- 31
- eatenAt
- createdAt
Overview
meals / #540
Pasta with Marinara
#540
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/540" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/540" ); 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/540"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/540"
)
meal = res.json() Response
{
"id": 540,
"userId": 129,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 504,
"proteinGrams": 14.1,
"carbsGrams": 42.1,
"fatGrams": 31,
"eatenAt": "2025-09-21T15:58:12.508Z",
"createdAt": "2025-09-21T16:13:22.477Z"
}