Lentil Soup
- userId
-
Norbert Jacobi @norbert_jacobi92
- name
- Lentil Soup
- kind
- lunch
- calories
- 225
- proteinGrams
- 37.7
- carbsGrams
- 9.4
- fatGrams
- 4.1
- eatenAt
- createdAt
Overview
meals / #418
Lentil Soup
#418
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/418" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/418" ); 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/418"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/418"
)
meal = res.json() Response
{
"id": 418,
"userId": 101,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 225,
"proteinGrams": 37.7,
"carbsGrams": 9.4,
"fatGrams": 4.1,
"eatenAt": "2025-07-11T12:28:53.412Z",
"createdAt": "2025-07-11T12:51:11.044Z"
}