Baked Salmon
- userId
-
Lazaro Herzog @lazaro_herzog
- name
- Baked Salmon
- kind
- dinner
- calories
- 333
- proteinGrams
- 32.1
- carbsGrams
- 20.2
- fatGrams
- 13.7
- eatenAt
- createdAt
Overview
meals / #745
Baked Salmon
#745
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/745" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/745" ); 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/745"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/745"
)
meal = res.json() Response
{
"id": 745,
"userId": 181,
"name": "Baked Salmon",
"kind": "dinner",
"calories": 333,
"proteinGrams": 32.1,
"carbsGrams": 20.2,
"fatGrams": 13.7,
"eatenAt": "2025-10-20T20:03:29.913Z",
"createdAt": "2025-10-20T20:22:49.967Z"
}