example-data.com
Menu
Browse docs and collections

Overview

meals / #806

Brown Rice and Veggies

userId
Maryam Kunze @maryam_kunze
name
Brown Rice and Veggies
kind
lunch
calories
376
proteinGrams
21.2
carbsGrams
36.2
fatGrams
16.3
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 806,
  "userId": 195,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 376,
  "proteinGrams": 21.2,
  "carbsGrams": 36.2,
  "fatGrams": 16.3,
  "eatenAt": "2026-04-01T04:02:21.327Z",
  "createdAt": "2026-04-01T04:02:43.221Z"
}