Lentil Soup
- userId
-
Florencio Mohr @florencio_mohr
- name
- Lentil Soup
- kind
- lunch
- calories
- 582
- proteinGrams
- 41.7
- carbsGrams
- 56.3
- fatGrams
- 21.1
- eatenAt
- createdAt
Overview
meals / #290
Lentil Soup
#290
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/290" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/290" ); 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/290"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/290"
)
meal = res.json() Response
{
"id": 290,
"userId": 71,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 582,
"proteinGrams": 41.7,
"carbsGrams": 56.3,
"fatGrams": 21.1,
"eatenAt": "2026-02-24T08:40:45.861Z",
"createdAt": "2026-02-24T08:53:44.298Z"
}