example-data.com
Menu
Browse docs and collections

Overview

meals / #996

Grilled Chicken Salad

userId
Era Mitchell @era.mitchell21
name
Grilled Chicken Salad
kind
lunch
calories
477
proteinGrams
30.3
carbsGrams
77
fatGrams
5.3
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 996,
  "userId": 243,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 477,
  "proteinGrams": 30.3,
  "carbsGrams": 77,
  "fatGrams": 5.3,
  "eatenAt": "2026-01-26T18:52:04.443Z",
  "createdAt": "2026-01-26T18:56:00.600Z"
}