Brown Rice and Veggies
- userId
-
Mara Johnson @mara.johnson17
- name
- Brown Rice and Veggies
- kind
- lunch
- calories
- 326
- proteinGrams
- 40.6
- carbsGrams
- 9.5
- fatGrams
- 13.9
- eatenAt
- createdAt
Overview
meals / #49
Brown Rice and Veggies
#49
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/49" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/49" ); 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/49"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/49"
)
meal = res.json() Response
{
"id": 49,
"userId": 12,
"name": "Brown Rice and Veggies",
"kind": "lunch",
"calories": 326,
"proteinGrams": 40.6,
"carbsGrams": 9.5,
"fatGrams": 13.9,
"eatenAt": "2025-12-10T15:57:12.468Z",
"createdAt": "2025-12-10T16:03:56.285Z"
}