Apple and Peanut Butter
- userId
-
Jo Haag-Mayer @jo_haag-mayer
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 451
- proteinGrams
- 14
- carbsGrams
- 10.1
- fatGrams
- 39.4
- eatenAt
- createdAt
Overview
meals / #223
Apple and Peanut Butter
#223
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/223" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/223" ); 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/223"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/223"
)
meal = res.json() Response
{
"id": 223,
"userId": 54,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 451,
"proteinGrams": 14,
"carbsGrams": 10.1,
"fatGrams": 39.4,
"eatenAt": "2026-04-13T04:37:57.815Z",
"createdAt": "2026-04-13T05:04:11.443Z"
}