Pasta with Marinara
- userId
-
General Morissette @general_morissette47
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 424
- proteinGrams
- 19.2
- carbsGrams
- 75.9
- fatGrams
- 4.8
- eatenAt
- createdAt
Overview
meals / #759
Pasta with Marinara
#759
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/759" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/759" ); 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/759"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/759"
)
meal = res.json() Response
{
"id": 759,
"userId": 184,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 424,
"proteinGrams": 19.2,
"carbsGrams": 75.9,
"fatGrams": 4.8,
"eatenAt": "2026-03-30T12:39:26.836Z",
"createdAt": "2026-03-30T13:03:47.777Z"
}