Turkey Sandwich
- userId
-
Marta Harvey @marta.harvey68
- name
- Turkey Sandwich
- kind
- lunch
- calories
- 377
- proteinGrams
- 47.2
- carbsGrams
- 19
- fatGrams
- 12.5
- eatenAt
- createdAt
Overview
meals / #468
Turkey Sandwich
#468
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/468" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/468" ); 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/468"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/468"
)
meal = res.json() Response
{
"id": 468,
"userId": 112,
"name": "Turkey Sandwich",
"kind": "lunch",
"calories": 377,
"proteinGrams": 47.2,
"carbsGrams": 19,
"fatGrams": 12.5,
"eatenAt": "2025-10-11T11:14:19.279Z",
"createdAt": "2025-10-11T11:38:51.096Z"
}