example-data.com
Menu
Browse docs and collections

Overview

meals / #134

Sushi Roll

userId
Kariane Schmitt @kariane.schmitt97
name
Sushi Roll
kind
lunch
calories
297
proteinGrams
10.3
carbsGrams
18
fatGrams
20.4
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 134,
  "userId": 32,
  "name": "Sushi Roll",
  "kind": "lunch",
  "calories": 297,
  "proteinGrams": 10.3,
  "carbsGrams": 18,
  "fatGrams": 20.4,
  "eatenAt": "2026-02-17T23:49:45.654Z",
  "createdAt": "2026-02-17T23:55:37.929Z"
}