Apple and Peanut Butter
- userId
-
Oliver Mitchell @oliver_mitchell50
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 613
- proteinGrams
- 29.2
- carbsGrams
- 63
- fatGrams
- 27.1
- eatenAt
- createdAt
Overview
meals / #803
Apple and Peanut Butter
#803
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/803" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/803" ); 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/803"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/803"
)
meal = res.json() Response
{
"id": 803,
"userId": 194,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 613,
"proteinGrams": 29.2,
"carbsGrams": 63,
"fatGrams": 27.1,
"eatenAt": "2025-11-18T04:41:02.373Z",
"createdAt": "2025-11-18T05:03:15.073Z"
}