example-data.com
Menu
Browse docs and collections

Overview

meals / #722

Protein Shake

userId
Americo Hoppe @americo_hoppe57
name
Protein Shake
kind
breakfast
calories
139
proteinGrams
5.5
carbsGrams
23.5
fatGrams
2.6
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 722,
  "userId": 177,
  "name": "Protein Shake",
  "kind": "breakfast",
  "calories": 139,
  "proteinGrams": 5.5,
  "carbsGrams": 23.5,
  "fatGrams": 2.6,
  "eatenAt": "2026-05-17T05:16:20.419Z",
  "createdAt": "2026-05-17T05:44:53.281Z"
}