Turkey Sandwich
- userId
-
Theresia Collins @theresia_collins86
- name
- Turkey Sandwich
- kind
- lunch
- calories
- 580
- proteinGrams
- 23.1
- carbsGrams
- 65.6
- fatGrams
- 25
- eatenAt
- createdAt
Overview
meals / #259
Turkey Sandwich
#259
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/259" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/259" ); 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/259"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/259"
)
meal = res.json() Response
{
"id": 259,
"userId": 63,
"name": "Turkey Sandwich",
"kind": "lunch",
"calories": 580,
"proteinGrams": 23.1,
"carbsGrams": 65.6,
"fatGrams": 25,
"eatenAt": "2025-05-22T00:02:46.531Z",
"createdAt": "2025-05-22T00:20:14.570Z"
}