Hard Boiled Eggs
- userId
-
Roosevelt Ullrich @roosevelt.ullrich75
- name
- Hard Boiled Eggs
- kind
- snack
- calories
- 457
- proteinGrams
- 56.9
- carbsGrams
- 24.8
- fatGrams
- 14.5
- eatenAt
- createdAt
Overview
meals / #971
Hard Boiled Eggs
#971
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/971" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/971" ); 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/971"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/971"
)
meal = res.json() Response
{
"id": 971,
"userId": 237,
"name": "Hard Boiled Eggs",
"kind": "snack",
"calories": 457,
"proteinGrams": 56.9,
"carbsGrams": 24.8,
"fatGrams": 14.5,
"eatenAt": "2025-06-07T17:35:30.204Z",
"createdAt": "2025-06-07T18:04:47.962Z"
}