example-data.com
Menu
Browse docs and collections

Overview

meals / #64

Scrambled Eggs

userId
Zachariah Herzog @zachariah_herzog42
name
Scrambled Eggs
kind
breakfast
calories
652
proteinGrams
43.9
carbsGrams
33.5
fatGrams
38
eatenAt
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/meals/64" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/meals/64"
);
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/64"
);
const meal = (await res.json()) as Meal;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/meals/64"
)
meal = res.json()

Response

{
  "id": 64,
  "userId": 15,
  "name": "Scrambled Eggs",
  "kind": "breakfast",
  "calories": 652,
  "proteinGrams": 43.9,
  "carbsGrams": 33.5,
  "fatGrams": 38,
  "eatenAt": "2025-12-15T23:48:17.500Z",
  "createdAt": "2025-12-16T00:06:31.008Z"
}