Lentil Soup
- userId
-
Cruz Okuneva @cruz.okuneva
- name
- Lentil Soup
- kind
- lunch
- calories
- 576
- proteinGrams
- 18.5
- carbsGrams
- 63.8
- fatGrams
- 27.4
- eatenAt
- createdAt
Overview
meals / #977
Lentil Soup
#977
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/977" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/977" ); 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/977"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/977"
)
meal = res.json() Response
{
"id": 977,
"userId": 239,
"name": "Lentil Soup",
"kind": "lunch",
"calories": 576,
"proteinGrams": 18.5,
"carbsGrams": 63.8,
"fatGrams": 27.4,
"eatenAt": "2025-05-23T07:40:42.587Z",
"createdAt": "2025-05-23T07:49:16.153Z"
}