Turkey Sandwich
- userId
-
Talon Turner @talon.turner59
- name
- Turkey Sandwich
- kind
- lunch
- calories
- 408
- proteinGrams
- 53.8
- carbsGrams
- 40.8
- fatGrams
- 3.3
- eatenAt
- createdAt
Overview
meals / #682
Turkey Sandwich
#682
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/682" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/682" ); 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/682"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/682"
)
meal = res.json() Response
{
"id": 682,
"userId": 166,
"name": "Turkey Sandwich",
"kind": "lunch",
"calories": 408,
"proteinGrams": 53.8,
"carbsGrams": 40.8,
"fatGrams": 3.3,
"eatenAt": "2026-04-23T16:20:40.910Z",
"createdAt": "2026-04-23T16:30:54.233Z"
}