Lentil Soup
- userId
-
Berniece Medhurst @berniece_medhurst
- name
- Lentil Soup
- kind
- lunch
- calories
- 602
- proteinGrams
- 43.5
- carbsGrams
- 56.3
- fatGrams
- 22.5
- eatenAt
- createdAt
Overview
meals / #321
Lentil Soup
#321
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/321" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/321" ); 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/321"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/321"
)
meal = res.json() Response
{
"id": 321,
"userId": 77,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 602,
"proteinGrams": 43.5,
"carbsGrams": 56.3,
"fatGrams": 22.5,
"eatenAt": "2025-08-05T21:57:05.291Z",
"createdAt": "2025-08-05T22:09:17.446Z"
}