Beef Tacos
- userId
-
Oma Franecki-Johnson @oma.franecki-johnson
- name
- Beef Tacos
- kind
- dinner
- calories
- 512
- proteinGrams
- 50.7
- carbsGrams
- 27.3
- fatGrams
- 22.2
- eatenAt
- createdAt
Overview
meals / #989
Beef Tacos
#989
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/989" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/989" ); 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/989"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/989"
)
meal = res.json() Response
{
"id": 989,
"userId": 242,
"name": "Beef Tacos",
"kind": "dinner",
"calories": 512,
"proteinGrams": 50.7,
"carbsGrams": 27.3,
"fatGrams": 22.2,
"eatenAt": "2025-09-09T09:12:50.755Z",
"createdAt": "2025-09-09T09:31:22.607Z"
}