example-data.com
Menu
Browse docs and collections

Overview

meals / #756

Grilled Chicken Salad

userId
Minerva Hettinger @minerva_hettinger
name
Grilled Chicken Salad
kind
lunch
calories
477
proteinGrams
37.5
carbsGrams
37.9
fatGrams
19.5
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 756,
  "userId": 183,
  "name": "Grilled Chicken Salad",
  "kind": "lunch",
  "calories": 477,
  "proteinGrams": 37.5,
  "carbsGrams": 37.9,
  "fatGrams": 19.5,
  "eatenAt": "2026-05-07T20:07:39.628Z",
  "createdAt": "2026-05-07T20:17:00.369Z"
}