example-data.com
Menu
Browse docs and collections

Overview

meals / #823

Roasted Chicken

userId
Consuelo Borer @consuelo.borer
name
Roasted Chicken
kind
dinner
calories
576
proteinGrams
7.6
carbsGrams
53.8
fatGrams
36.7
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 823,
  "userId": 200,
  "name": "Roasted Chicken",
  "kind": "dinner",
  "calories": 576,
  "proteinGrams": 7.6,
  "carbsGrams": 53.8,
  "fatGrams": 36.7,
  "eatenAt": "2026-01-31T23:39:41.361Z",
  "createdAt": "2026-02-01T00:07:29.645Z"
}