Baked Salmon
- userId
-
Theresia Collins @theresia_collins86
- name
- Baked Salmon
- kind
- dinner
- calories
- 352
- proteinGrams
- 25.7
- carbsGrams
- 56.9
- fatGrams
- 2.4
- eatenAt
- createdAt
Overview
meals / #261
Baked Salmon
#261
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/261" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/261" ); 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/261"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/261"
)
meal = res.json() Response
{
"id": 261,
"userId": 63,
"name": "Baked Salmon",
"kind": "dinner",
"calories": 352,
"proteinGrams": 25.7,
"carbsGrams": 56.9,
"fatGrams": 2.4,
"eatenAt": "2025-11-11T05:27:27.064Z",
"createdAt": "2025-11-11T05:43:54.183Z"
}