example-data.com
Menu
Browse docs and collections

Overview

meals / #845

Protein Shake

userId
Jaylon Conroy @jaylon_conroy22
name
Protein Shake
kind
breakfast
calories
719
proteinGrams
36.2
carbsGrams
58.6
fatGrams
37.7
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 845,
  "userId": 205,
  "name": "Protein Shake",
  "kind": "breakfast",
  "calories": 719,
  "proteinGrams": 36.2,
  "carbsGrams": 58.6,
  "fatGrams": 37.7,
  "eatenAt": "2026-05-07T18:46:54.818Z",
  "createdAt": "2026-05-07T19:09:40.632Z"
}