example-data.com
Menu
Browse docs and collections

Overview

meals / #268

Brown Rice and Veggies

userId
Beau Stiedemann @beau.stiedemann
name
Brown Rice and Veggies
kind
lunch
calories
442
proteinGrams
7.6
carbsGrams
70.6
fatGrams
14.3
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 268,
  "userId": 64,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 442,
  "proteinGrams": 7.6,
  "carbsGrams": 70.6,
  "fatGrams": 14.3,
  "eatenAt": "2025-12-08T21:52:11.816Z",
  "createdAt": "2025-12-08T22:10:41.968Z"
}