Scrambled Eggs
- userId
-
Esperanza Casper @esperanza_casper
- name
- Scrambled Eggs
- kind
- breakfast
- calories
- 479
- proteinGrams
- 49.5
- carbsGrams
- 38.6
- fatGrams
- 14.1
- eatenAt
- createdAt
Overview
meals / #400
Scrambled Eggs
#400
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/400" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/400" ); 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/400"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/400"
)
meal = res.json() Response
{
"id": 400,
"userId": 97,
"name": "Scrambled Eggs",
"kind": "breakfast",
"calories": 479,
"proteinGrams": 49.5,
"carbsGrams": 38.6,
"fatGrams": 14.1,
"eatenAt": "2026-04-24T22:18:03.890Z",
"createdAt": "2026-04-24T22:37:24.092Z"
}