Avocado Toast
- userId
-
Gerald Lind @gerald_lind57
- name
- Avocado Toast
- kind
- breakfast
- calories
- 638
- proteinGrams
- 16.8
- carbsGrams
- 62.2
- fatGrams
- 35.8
- eatenAt
- createdAt
Overview
meals / #731
Avocado Toast
#731
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/731" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/731" ); 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/731"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/731"
)
meal = res.json() Response
{
"id": 731,
"userId": 179,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 638,
"proteinGrams": 16.8,
"carbsGrams": 62.2,
"fatGrams": 35.8,
"eatenAt": "2025-12-05T12:47:40.045Z",
"createdAt": "2025-12-05T12:56:19.349Z"
}