Avocado Toast
- userId
-
Lilly Rosenbaum @lilly.rosenbaum
- name
- Avocado Toast
- kind
- breakfast
- calories
- 361
- proteinGrams
- 38.6
- carbsGrams
- 34.2
- fatGrams
- 7.8
- eatenAt
- createdAt
Overview
meals / #914
Avocado Toast
#914
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/914" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/914" ); 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/914"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/914"
)
meal = res.json() Response
{
"id": 914,
"userId": 223,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 361,
"proteinGrams": 38.6,
"carbsGrams": 34.2,
"fatGrams": 7.8,
"eatenAt": "2025-07-20T19:43:56.493Z",
"createdAt": "2025-07-20T20:11:32.926Z"
}