example-data.com
Menu
Browse docs and collections

Overview

meals / #917

Turkey Sandwich

userId
Simeon Heathcote @simeon_heathcote75
name
Turkey Sandwich
kind
lunch
calories
687
proteinGrams
25.1
carbsGrams
65.1
fatGrams
36.2
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 917,
  "userId": 224,
  "name": "Turkey Sandwich",
  "kind": "lunch",
  "calories": 687,
  "proteinGrams": 25.1,
  "carbsGrams": 65.1,
  "fatGrams": 36.2,
  "eatenAt": "2026-03-02T08:17:55.016Z",
  "createdAt": "2026-03-02T08:22:29.284Z"
}