Apple and Peanut Butter
- userId
-
Jensen Bashirian @jensen_bashirian
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 270
- proteinGrams
- 37.1
- carbsGrams
- 7.8
- fatGrams
- 10
- eatenAt
- createdAt
Overview
meals / #127
Apple and Peanut Butter
#127
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/127" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/127" ); 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/127"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/127"
)
meal = res.json() Response
{
"id": 127,
"userId": 29,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 270,
"proteinGrams": 37.1,
"carbsGrams": 7.8,
"fatGrams": 10,
"eatenAt": "2026-04-11T14:40:48.743Z",
"createdAt": "2026-04-11T14:56:42.911Z"
}