Turkey Sandwich
- userId
-
Jennifer Hoeger @jennifer.hoeger
- name
- Turkey Sandwich
- kind
- lunch
- calories
- 273
- proteinGrams
- 29.8
- carbsGrams
- 26.9
- fatGrams
- 5.1
- eatenAt
- createdAt
Overview
meals / #493
Turkey Sandwich
#493
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/493" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/493" ); 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/493"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/493"
)
meal = res.json() Response
{
"id": 493,
"userId": 119,
"name": "Turkey Sandwich",
"kind": "lunch",
"calories": 273,
"proteinGrams": 29.8,
"carbsGrams": 26.9,
"fatGrams": 5.1,
"eatenAt": "2025-09-09T12:10:59.839Z",
"createdAt": "2025-09-09T12:28:36.227Z"
}