example-data.com
Menu
Browse docs and collections

Overview

meals / #669

Chicken Caesar Salad

userId
Roberta Mueller-Yundt @roberta_mueller-yundt
name
Chicken Caesar Salad
kind
lunch
calories
409
proteinGrams
15.4
carbsGrams
59.3
fatGrams
12.2
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 669,
  "userId": 162,
  "name": "Chicken Caesar Salad",
  "kind": "lunch",
  "calories": 409,
  "proteinGrams": 15.4,
  "carbsGrams": 59.3,
  "fatGrams": 12.2,
  "eatenAt": "2025-07-31T18:47:39.611Z",
  "createdAt": "2025-07-31T18:53:11.416Z"
}