example-data.com
Menu
Browse docs and collections

Overview

meals / #339

Rice Cakes

userId
Mateo Gerlach @mateo.gerlach
name
Rice Cakes
kind
snack
calories
460
proteinGrams
49.3
carbsGrams
12.1
fatGrams
23.8
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 339,
  "userId": 81,
  "name": "Rice Cakes",
  "kind": "snack",
  "calories": 460,
  "proteinGrams": 49.3,
  "carbsGrams": 12.1,
  "fatGrams": 23.8,
  "eatenAt": "2026-04-10T14:49:29.361Z",
  "createdAt": "2026-04-10T15:09:14.821Z"
}