Scrambled Eggs
- userId
-
Leora Doyle @leora_doyle
- name
- Scrambled Eggs
- kind
- breakfast
- calories
- 281
- proteinGrams
- 42.9
- carbsGrams
- 20.6
- fatGrams
- 3
- eatenAt
- createdAt
Overview
meals / #488
Scrambled Eggs
#488
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/488" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/488" ); 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/488"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/488"
)
meal = res.json() Response
{
"id": 488,
"userId": 117,
"name": "Scrambled Eggs",
"kind": "breakfast",
"calories": 281,
"proteinGrams": 42.9,
"carbsGrams": 20.6,
"fatGrams": 3,
"eatenAt": "2025-07-15T04:27:16.849Z",
"createdAt": "2025-07-15T04:42:51.117Z"
}