Apple and Peanut Butter
- userId
-
Arnaldo Friesen @arnaldo_friesen78
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 595
- proteinGrams
- 43.9
- carbsGrams
- 32.2
- fatGrams
- 32.3
- eatenAt
- createdAt
Overview
meals / #471
Apple and Peanut Butter
#471
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/471" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/471" ); 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/471"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/471"
)
meal = res.json() Response
{
"id": 471,
"userId": 113,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 595,
"proteinGrams": 43.9,
"carbsGrams": 32.2,
"fatGrams": 32.3,
"eatenAt": "2025-06-23T23:13:02.674Z",
"createdAt": "2025-06-23T23:40:08.249Z"
}