Apple and Peanut Butter
- userId
-
Queen Lubowitz @queen.lubowitz76
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 675
- proteinGrams
- 29.7
- carbsGrams
- 73.6
- fatGrams
- 29.1
- eatenAt
- createdAt
Overview
meals / #123
Apple and Peanut Butter
#123
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/123" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/123" ); 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/123"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/123"
)
meal = res.json() Response
{
"id": 123,
"userId": 28,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 675,
"proteinGrams": 29.7,
"carbsGrams": 73.6,
"fatGrams": 29.1,
"eatenAt": "2026-05-12T23:48:52.811Z",
"createdAt": "2026-05-12T23:57:25.239Z"
}