example-data.com
Menu
Browse docs and collections

Overview

meals / #874

Grilled Steak

userId
Mia Renner @mia.renner47
name
Grilled Steak
kind
dinner
calories
212
proteinGrams
34.7
carbsGrams
7.6
fatGrams
4.7
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 874,
  "userId": 212,
  "name": "Grilled Steak",
  "kind": "dinner",
  "calories": 212,
  "proteinGrams": 34.7,
  "carbsGrams": 7.6,
  "fatGrams": 4.7,
  "eatenAt": "2025-10-15T09:14:31.967Z",
  "createdAt": "2025-10-15T09:30:48.425Z"
}