Apple and Peanut Butter
- userId
-
Jaycee Erdman @jaycee_erdman96
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 522
- proteinGrams
- 34.4
- carbsGrams
- 23.3
- fatGrams
- 32.4
- eatenAt
- createdAt
Overview
meals / #38
Apple and Peanut Butter
#38
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/38" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/38" ); 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/38"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/38"
)
meal = res.json() Response
{
"id": 38,
"userId": 10,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 522,
"proteinGrams": 34.4,
"carbsGrams": 23.3,
"fatGrams": 32.4,
"eatenAt": "2025-10-11T19:43:39.378Z",
"createdAt": "2025-10-11T20:11:37.976Z"
}