Lentil Soup
- userId
-
Melvina Reilly @melvina_reilly83
- name
- Lentil Soup
- kind
- lunch
- calories
- 187
- proteinGrams
- 6.6
- carbsGrams
- 9.1
- fatGrams
- 13.8
- eatenAt
- createdAt
Overview
meals / #117
Lentil Soup
#117
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/117" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/117" ); 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/117"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/117"
)
meal = res.json() Response
{
"id": 117,
"userId": 26,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 187,
"proteinGrams": 6.6,
"carbsGrams": 9.1,
"fatGrams": 13.8,
"eatenAt": "2026-02-22T12:36:35.135Z",
"createdAt": "2026-02-22T13:04:20.048Z"
}