Apple and Peanut Butter
- userId
-
Selina Flatley @selina_flatley
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 464
- proteinGrams
- 17.2
- carbsGrams
- 64.6
- fatGrams
- 15.2
- eatenAt
- createdAt
Overview
meals / #798
Apple and Peanut Butter
#798
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/798" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/798" ); 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/798"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/798"
)
meal = res.json() Response
{
"id": 798,
"userId": 193,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 464,
"proteinGrams": 17.2,
"carbsGrams": 64.6,
"fatGrams": 15.2,
"eatenAt": "2025-05-28T01:57:01.565Z",
"createdAt": "2025-05-28T02:00:31.720Z"
}