Turkey Sandwich
- userId
-
Tiara Wilderman @tiara_wilderman
- name
- Turkey Sandwich
- kind
- lunch
- calories
- 354
- proteinGrams
- 17.2
- carbsGrams
- 32.1
- fatGrams
- 17.4
- eatenAt
- createdAt
Overview
meals / #273
Turkey Sandwich
#273
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/273" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/273" ); 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/273"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/273"
)
meal = res.json() Response
{
"id": 273,
"userId": 66,
"name": "Turkey Sandwich",
"kind": "lunch",
"calories": 354,
"proteinGrams": 17.2,
"carbsGrams": 32.1,
"fatGrams": 17.4,
"eatenAt": "2025-06-21T01:21:53.657Z",
"createdAt": "2025-06-21T01:31:32.885Z"
}