example-data.com
Menu
Browse docs and collections

Overview

meals / #900

Falafel Bowl

userId
Dasia Volkman @dasia_volkman65
name
Falafel Bowl
kind
lunch
calories
585
proteinGrams
48.8
carbsGrams
15.2
fatGrams
36.5
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 900,
  "userId": 219,
  "name": "Falafel Bowl",
  "kind": "lunch",
  "calories": 585,
  "proteinGrams": 48.8,
  "carbsGrams": 15.2,
  "fatGrams": 36.5,
  "eatenAt": "2026-02-23T09:29:56.240Z",
  "createdAt": "2026-02-23T09:51:26.643Z"
}