Pasta with Marinara
- userId
-
Americo Hoppe @americo_hoppe57
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 307
- proteinGrams
- 9
- carbsGrams
- 20.6
- fatGrams
- 20.9
- eatenAt
- createdAt
Overview
meals / #726
Pasta with Marinara
#726
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/726" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/726" ); 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/726"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/726"
)
meal = res.json() Response
{
"id": 726,
"userId": 177,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 307,
"proteinGrams": 9,
"carbsGrams": 20.6,
"fatGrams": 20.9,
"eatenAt": "2026-01-06T00:24:46.016Z",
"createdAt": "2026-01-06T00:41:33.703Z"
}