Pasta with Marinara
- userId
-
Aaron Fritsch @aaron.fritsch
- name
- Pasta with Marinara
- kind
- dinner
- calories
- 459
- proteinGrams
- 47.1
- carbsGrams
- 35.5
- fatGrams
- 14.3
- eatenAt
- createdAt
Overview
meals / #517
Pasta with Marinara
#517
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/517" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/517" ); 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/517"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/517"
)
meal = res.json() Response
{
"id": 517,
"userId": 124,
"name": "Pasta with Marinara",
"kind": "dinner",
"calories": 459,
"proteinGrams": 47.1,
"carbsGrams": 35.5,
"fatGrams": 14.3,
"eatenAt": "2025-12-31T17:36:22.929Z",
"createdAt": "2025-12-31T17:53:07.898Z"
}