example-data.com
Menu
Browse docs and collections

Overview

meals / #945

Grilled Steak

userId
Gudrun Brakus @gudrun_brakus
name
Grilled Steak
kind
dinner
calories
551
proteinGrams
24.2
carbsGrams
28.1
fatGrams
38
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 945,
  "userId": 230,
  "name": "Grilled Steak",
  "kind": "dinner",
  "calories": 551,
  "proteinGrams": 24.2,
  "carbsGrams": 28.1,
  "fatGrams": 38,
  "eatenAt": "2025-12-09T15:15:42.231Z",
  "createdAt": "2025-12-09T15:16:51.752Z"
}