Lentil Soup
- userId
-
Myrtie Daniel @myrtie_daniel33
- name
- Lentil Soup
- kind
- lunch
- calories
- 706
- proteinGrams
- 48.1
- carbsGrams
- 76.9
- fatGrams
- 22.9
- eatenAt
- createdAt
Overview
meals / #185
Lentil Soup
#185
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/185" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/185" ); 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/185"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/185"
)
meal = res.json() Response
{
"id": 185,
"userId": 45,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 706,
"proteinGrams": 48.1,
"carbsGrams": 76.9,
"fatGrams": 22.9,
"eatenAt": "2025-09-28T23:22:46.382Z",
"createdAt": "2025-09-28T23:40:45.602Z"
}