Avocado Toast
- userId
-
Gwendolyn Wyman @gwendolyn.wyman87
- name
- Avocado Toast
- kind
- breakfast
- calories
- 209
- proteinGrams
- 19.3
- carbsGrams
- 15.2
- fatGrams
- 7.9
- eatenAt
- createdAt
Overview
meals / #165
Avocado Toast
#165
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/165" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/165" ); 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/165"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/165"
)
meal = res.json() Response
{
"id": 165,
"userId": 40,
"name": "Avocado Toast",
"kind": "breakfast",
"calories": 209,
"proteinGrams": 19.3,
"carbsGrams": 15.2,
"fatGrams": 7.9,
"eatenAt": "2026-01-17T10:09:23.578Z",
"createdAt": "2026-01-17T10:38:19.676Z"
}