Apple and Peanut Butter
- userId
-
Mable West @mable_west
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 208
- proteinGrams
- 21.2
- carbsGrams
- 5.7
- fatGrams
- 11.2
- eatenAt
- createdAt
Overview
meals / #363
Apple and Peanut Butter
#363
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/363" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/363" ); 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/363"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/363"
)
meal = res.json() Response
{
"id": 363,
"userId": 86,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 208,
"proteinGrams": 21.2,
"carbsGrams": 5.7,
"fatGrams": 11.2,
"eatenAt": "2025-10-07T00:49:26.845Z",
"createdAt": "2025-10-07T00:54:11.287Z"
}