Grilled Steak
- userId
-
Kevon Dickinson @kevon.dickinson
- name
- Grilled Steak
- kind
- dinner
- calories
- 501
- proteinGrams
- 25
- carbsGrams
- 12.1
- fatGrams
- 39.2
- eatenAt
- createdAt
Overview
meals / #894
Grilled Steak
#894
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/894" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/894" ); 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/894"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/894"
)
meal = res.json() Response
{
"id": 894,
"userId": 218,
"name": "Grilled Steak",
"kind": "dinner",
"calories": 501,
"proteinGrams": 25,
"carbsGrams": 12.1,
"fatGrams": 39.2,
"eatenAt": "2026-02-08T12:55:21.792Z",
"createdAt": "2026-02-08T13:02:07.104Z"
}