Avocado Toast
- userId
-
Jamil Mayer @jamil.mayer
- name
- Avocado Toast
- kind
- breakfast
- calories
- 398
- proteinGrams
- 26
- carbsGrams
- 48.2
- fatGrams
- 11.2
- eatenAt
- createdAt
Overview
meals / #955
Avocado Toast
#955
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/955" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/955" ); 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/955"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/955"
)
meal = res.json() Response
{
"id": 955,
"userId": 233,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 398,
"proteinGrams": 26,
"carbsGrams": 48.2,
"fatGrams": 11.2,
"eatenAt": "2025-10-24T09:54:11.931Z",
"createdAt": "2025-10-24T10:02:15.934Z"
}