example-data.com
Menu
Browse docs and collections

Overview

meals / #393

Hard Boiled Eggs

userId
Camron O'Conner @camron.oconner54
name
Hard Boiled Eggs
kind
snack
calories
337
proteinGrams
9.9
carbsGrams
64.8
fatGrams
4.2
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 393,
  "userId": 94,
  "name": "Hard Boiled Eggs",
  "kind": "snack",
  "calories": 337,
  "proteinGrams": 9.9,
  "carbsGrams": 64.8,
  "fatGrams": 4.2,
  "eatenAt": "2026-03-19T18:09:05.792Z",
  "createdAt": "2026-03-19T18:11:56.749Z"
}