Avocado Toast
- userId
-
Zachariah Herzog @zachariah_herzog42
- name
- Avocado Toast
- kind
- breakfast
- calories
- 393
- proteinGrams
- 6.9
- carbsGrams
- 35.7
- fatGrams
- 24.7
- eatenAt
- createdAt
Overview
meals / #65
Avocado Toast
#65
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/65" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/65" ); 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/65"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/65"
)
meal = res.json() Response
{
"id": 65,
"userId": 15,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 393,
"proteinGrams": 6.9,
"carbsGrams": 35.7,
"fatGrams": 24.7,
"eatenAt": "2025-08-26T11:47:38.024Z",
"createdAt": "2025-08-26T11:56:44.126Z"
}