example-data.com
Menu
Browse docs and collections

Overview

meals / #941

Grilled Turkey Breast

userId
Wallace Batz @wallace_batz
name
Grilled Turkey Breast
kind
dinner
calories
505
proteinGrams
35
carbsGrams
24.1
fatGrams
29.8
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 941,
  "userId": 229,
  "name": "Grilled Turkey Breast",
  "kind": "dinner",
  "calories": 505,
  "proteinGrams": 35,
  "carbsGrams": 24.1,
  "fatGrams": 29.8,
  "eatenAt": "2025-12-23T19:43:55.660Z",
  "createdAt": "2025-12-23T19:50:50.483Z"
}