example-data.com
Menu
Browse docs and collections

Overview

meals / #659

Falafel Bowl

userId
Amparo Dietrich @amparo.dietrich
name
Falafel Bowl
kind
lunch
calories
684
proteinGrams
30.3
carbsGrams
55.1
fatGrams
38
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 659,
  "userId": 159,
  "name": "Falafel Bowl",
  "kind": "lunch",
  "calories": 684,
  "proteinGrams": 30.3,
  "carbsGrams": 55.1,
  "fatGrams": 38,
  "eatenAt": "2025-10-15T14:48:22.006Z",
  "createdAt": "2025-10-15T14:57:03.461Z"
}