example-data.com
Menu
Browse docs and collections

Overview

meals / #794

Brown Rice and Veggies

userId
Lavonne Schmidt @lavonne.schmidt95
name
Brown Rice and Veggies
kind
lunch
calories
369
proteinGrams
37.7
carbsGrams
8.8
fatGrams
20.3
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 794,
  "userId": 192,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 369,
  "proteinGrams": 37.7,
  "carbsGrams": 8.8,
  "fatGrams": 20.3,
  "eatenAt": "2026-03-14T22:56:11.561Z",
  "createdAt": "2026-03-14T23:01:38.477Z"
}