Beef Tacos
- userId
-
Mara Johnson @mara.johnson17
- name
- Beef Tacos
- kind
- dinner
- calories
- 680
- proteinGrams
- 53
- carbsGrams
- 45.9
- fatGrams
- 31.6
- eatenAt
- createdAt
Overview
meals / #51
Beef Tacos
#51
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/51" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/51" ); 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/51"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/51"
)
meal = res.json() Response
{
"id": 51,
"userId": 12,
"name": "Beef Tacos",
"kind": "dinner",
"calories": 680,
"proteinGrams": 53,
"carbsGrams": 45.9,
"fatGrams": 31.6,
"eatenAt": "2026-02-03T11:05:32.164Z",
"createdAt": "2026-02-03T11:18:32.043Z"
}