Apple and Peanut Butter
- userId
-
Kamryn Rogahn @kamryn_rogahn40
- name
- Apple and Peanut Butter
- kind
- snack
- calories
- 615
- proteinGrams
- 51.6
- carbsGrams
- 13.4
- fatGrams
- 39.4
- eatenAt
- createdAt
Overview
meals / #700
Apple and Peanut Butter
#700
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/700" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/700" ); 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/700"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/700"
)
meal = res.json() Response
{
"id": 700,
"userId": 170,
"name": "Apple and Peanut Butter",
"kind": "snack",
"calories": 615,
"proteinGrams": 51.6,
"carbsGrams": 13.4,
"fatGrams": 39.4,
"eatenAt": "2026-02-03T23:55:12.850Z",
"createdAt": "2026-02-04T00:20:39.861Z"
}