example-data.com
Menu
Browse docs and collections

Overview

meals / #785

Smoothie Bowl

userId
Wilton Dietrich @wilton.dietrich23
name
Smoothie Bowl
kind
breakfast
calories
699
proteinGrams
46.7
carbsGrams
38.8
fatGrams
39.7
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 785,
  "userId": 190,
  "name": "Smoothie Bowl",
  "kind": "breakfast",
  "calories": 699,
  "proteinGrams": 46.7,
  "carbsGrams": 38.8,
  "fatGrams": 39.7,
  "eatenAt": "2026-03-24T19:35:49.714Z",
  "createdAt": "2026-03-24T19:37:43.290Z"
}