example-data.com
Menu
Browse docs and collections

Overview

meals / #121

Brown Rice and Veggies

userId
Rosella Homenick @rosella.homenick
name
Brown Rice and Veggies
kind
lunch
calories
519
proteinGrams
21.6
carbsGrams
32.9
fatGrams
33.4
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 121,
  "userId": 27,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 519,
  "proteinGrams": 21.6,
  "carbsGrams": 32.9,
  "fatGrams": 33.4,
  "eatenAt": "2025-12-30T23:05:53.830Z",
  "createdAt": "2025-12-30T23:10:00.007Z"
}