Lentil Soup
- userId
-
Sam Hegmann-Jast @sam_hegmann-jast86
- name
- Lentil Soup
- kind
- lunch
- calories
- 445
- proteinGrams
- 25.3
- carbsGrams
- 53.5
- fatGrams
- 14.4
- eatenAt
- createdAt
Overview
meals / #475
Lentil Soup
#475
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/475" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/475" ); 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/475"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/475"
)
meal = res.json() Response
{
"id": 475,
"userId": 114,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 445,
"proteinGrams": 25.3,
"carbsGrams": 53.5,
"fatGrams": 14.4,
"eatenAt": "2025-11-05T18:58:01.691Z",
"createdAt": "2025-11-05T19:01:44.033Z"
}