example-data.com
Menu
Browse docs and collections

Overview

meals / #969

Brown Rice and Veggies

userId
Roosevelt Ullrich @roosevelt.ullrich75
name
Brown Rice and Veggies
kind
lunch
calories
297
proteinGrams
12.9
carbsGrams
45.1
fatGrams
7.2
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 969,
  "userId": 237,
  "name": "Brown Rice and Veggies",
  "kind": "lunch",
  "calories": 297,
  "proteinGrams": 12.9,
  "carbsGrams": 45.1,
  "fatGrams": 7.2,
  "eatenAt": "2025-11-21T07:32:31.414Z",
  "createdAt": "2025-11-21T07:37:20.844Z"
}