Apple and Peanut Butter
- userId
-
Myrtie Daniel @myrtie_daniel33
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 705
- proteinGrams
- 22
- carbsGrams
- 74.8
- fatGrams
- 35.3
- eatenAt
- createdAt
Overview
meals / #181
Apple and Peanut Butter
#181
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/181" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/181" ); 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/181"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/181"
)
meal = res.json() Response
{
"id": 181,
"userId": 45,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 705,
"proteinGrams": 22,
"carbsGrams": 74.8,
"fatGrams": 35.3,
"eatenAt": "2026-05-05T21:38:16.576Z",
"createdAt": "2026-05-05T21:56:29.012Z"
}