Avocado Toast
- userId
-
Jarrell Flatley @jarrell_flatley39
- name
- Avocado Toast
- kind
- breakfast
- calories
- 444
- proteinGrams
- 47.3
- carbsGrams
- 27.3
- fatGrams
- 16.2
- eatenAt
- createdAt
Overview
meals / #253
Avocado Toast
#253
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/253" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/253" ); 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/253"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/253"
)
meal = res.json() Response
{
"id": 253,
"userId": 61,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 444,
"proteinGrams": 47.3,
"carbsGrams": 27.3,
"fatGrams": 16.2,
"eatenAt": "2025-11-16T19:13:38.068Z",
"createdAt": "2025-11-16T19:34:47.064Z"
}