Pasta with Marinara
- userId
-
Conrad Connelly @conrad.connelly22
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 438
- proteinGrams
- 15.9
- carbsGrams
- 73
- fatGrams
- 9.2
- eatenAt
- createdAt
Overview
meals / #129
Pasta with Marinara
#129
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/129" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/129" ); 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/129"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/129"
)
meal = res.json() Response
{
"id": 129,
"userId": 30,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 438,
"proteinGrams": 15.9,
"carbsGrams": 73,
"fatGrams": 9.2,
"eatenAt": "2025-07-21T13:58:14.344Z",
"createdAt": "2025-07-21T14:16:57.298Z"
}