Tuna Wrap
- userId
-
Charlene Kuhic @charlene_kuhic
- name
- Tuna Wrap
- kind
- lunch
- calories
- 248
- proteinGrams
- 8
- carbsGrams
- 20.7
- fatGrams
- 14.8
- eatenAt
- createdAt
Overview
meals / #998
Tuna Wrap
#998
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/998" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/998" ); 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/998"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/998"
)
meal = res.json() Response
{
"id": 998,
"userId": 244,
"name": "Tuna Wrap",
"kind": "lunch",
"calories": 248,
"proteinGrams": 8,
"carbsGrams": 20.7,
"fatGrams": 14.8,
"eatenAt": "2025-06-12T08:38:05.911Z",
"createdAt": "2025-06-12T09:03:31.657Z"
}