Lentil Soup
- userId
-
Jameson Considine @jameson.considine1
- name
- Lentil Soup
- kind
- lunch
- calories
- 569
- proteinGrams
- 56.3
- carbsGrams
- 63.8
- fatGrams
- 9.8
- eatenAt
- createdAt
Overview
meals / #965
Lentil Soup
#965
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/965" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/965" ); 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/965"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/965"
)
meal = res.json() Response
{
"id": 965,
"userId": 236,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 569,
"proteinGrams": 56.3,
"carbsGrams": 63.8,
"fatGrams": 9.8,
"eatenAt": "2026-04-23T12:35:58.904Z",
"createdAt": "2026-04-23T12:56:13.316Z"
}