example-data.com
Menu
Browse docs and collections

Overview

meals / #737

Baked Salmon

userId
Lamont Schroeder @lamont.schroeder89
name
Baked Salmon
kind
dinner
calories
574
proteinGrams
54.2
carbsGrams
48.2
fatGrams
18.3
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 737,
  "userId": 180,
  "name": "Baked Salmon",
  "kind": "dinner",
  "calories": 574,
  "proteinGrams": 54.2,
  "carbsGrams": 48.2,
  "fatGrams": 18.3,
  "eatenAt": "2026-03-22T00:05:54.558Z",
  "createdAt": "2026-03-22T00:17:43.339Z"
}