Hard Boiled Eggs
- userId
-
Cruz Okuneva @cruz.okuneva
- name
- Hard Boiled Eggs
- kind
- snack
- calories
- 302
- proteinGrams
- 31
- carbsGrams
- 12.9
- fatGrams
- 14
- eatenAt
- createdAt
Overview
meals / #978
Hard Boiled Eggs
#978
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/978" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/978" ); 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/978"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/978"
)
meal = res.json() Response
{
"id": 978,
"userId": 239,
"name": "Hard Boiled Eggs",
"kind": "snack",
"calories": 302,
"proteinGrams": 31,
"carbsGrams": 12.9,
"fatGrams": 14,
"eatenAt": "2025-08-28T21:18:57.625Z",
"createdAt": "2025-08-28T21:41:25.706Z"
}