Beef Tacos
- userId
-
Kamryn Rogahn @kamryn_rogahn40
- name
- Beef Tacos
- kind
- dinner
- calories
- 432
- proteinGrams
- 15
- carbsGrams
- 74.8
- fatGrams
- 8.1
- eatenAt
- createdAt
Overview
meals / #702
Beef Tacos
#702
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/702" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/702" ); 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/702"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/702"
)
meal = res.json() Response
{
"id": 702,
"userId": 170,
"name": "Beef Tacos",
"kind": "dinner",
"calories": 432,
"proteinGrams": 15,
"carbsGrams": 74.8,
"fatGrams": 8.1,
"eatenAt": "2025-10-01T12:51:46.257Z",
"createdAt": "2025-10-01T13:10:53.147Z"
}