Avocado Toast
- userId
-
Amina King @amina_king41
- name
- Avocado Toast
- kind
- breakfast
- calories
- 805
- proteinGrams
- 59.9
- carbsGrams
- 54.8
- fatGrams
- 38.5
- eatenAt
- createdAt
Overview
meals / #5
Avocado Toast
#5
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/5" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/5" ); 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/5"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/5"
)
meal = res.json() Response
{
"id": 5,
"userId": 2,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 805,
"proteinGrams": 59.9,
"carbsGrams": 54.8,
"fatGrams": 38.5,
"eatenAt": "2026-01-10T06:38:10.401Z",
"createdAt": "2026-01-10T06:54:07.309Z"
}