example-data.com
Menu
Browse docs and collections

Overview

meals / #922

Grilled Turkey Breast

userId
Rubye Emmerich @rubye.emmerich
name
Grilled Turkey Breast
kind
dinner
calories
484
proteinGrams
31.1
carbsGrams
72.5
fatGrams
7.7
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 922,
  "userId": 225,
  "name": "Grilled Turkey Breast",
  "kind": "dinner",
  "calories": 484,
  "proteinGrams": 31.1,
  "carbsGrams": 72.5,
  "fatGrams": 7.7,
  "eatenAt": "2026-02-05T11:40:43.363Z",
  "createdAt": "2026-02-05T12:05:47.783Z"
}