Avocado Toast
- userId
-
Cyril Frami @cyril_frami88
- name
- Avocado Toast
- kind
- breakfast
- calories
- 570
- proteinGrams
- 31.5
- carbsGrams
- 28.7
- fatGrams
- 36.6
- eatenAt
- createdAt
Overview
meals / #749
Avocado Toast
#749
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/749" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/749" ); 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/749"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/749"
)
meal = res.json() Response
{
"id": 749,
"userId": 182,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 570,
"proteinGrams": 31.5,
"carbsGrams": 28.7,
"fatGrams": 36.6,
"eatenAt": "2025-11-06T20:15:16.753Z",
"createdAt": "2025-11-06T20:21:49.307Z"
}