Lentil Soup
- userId
-
Aylin Sanford @aylin.sanford
- name
- Lentil Soup
- kind
- lunch
- calories
- 308
- proteinGrams
- 21.9
- carbsGrams
- 46.2
- fatGrams
- 4
- eatenAt
- createdAt
Overview
meals / #709
Lentil Soup
#709
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/709" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/709" ); 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/709"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/709"
)
meal = res.json() Response
{
"id": 709,
"userId": 173,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 308,
"proteinGrams": 21.9,
"carbsGrams": 46.2,
"fatGrams": 4,
"eatenAt": "2026-01-03T19:40:03.266Z",
"createdAt": "2026-01-03T19:59:21.495Z"
}