Beef Tacos
- userId
-
Jadon Nicolas @jadon.nicolas
- name
- Beef Tacos
- kind
- dinner
- calories
- 309
- proteinGrams
- 20.2
- carbsGrams
- 47.2
- fatGrams
- 4.4
- eatenAt
- createdAt
Overview
meals / #878
Beef Tacos
#878
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/878" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/878" ); 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/878"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/878"
)
meal = res.json() Response
{
"id": 878,
"userId": 213,
"name": "Beef Tacos",
"kind": "dinner",
"calories": 309,
"proteinGrams": 20.2,
"carbsGrams": 47.2,
"fatGrams": 4.4,
"eatenAt": "2026-03-10T06:00:22.508Z",
"createdAt": "2026-03-10T06:01:05.801Z"
}