example-data.com
Menu
Browse docs and collections

Overview

meals / #713

Roasted Chicken

userId
Aylin Sanford @aylin.sanford
name
Roasted Chicken
kind
dinner
calories
640
proteinGrams
35.8
carbsGrams
49.9
fatGrams
33
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 713,
  "userId": 173,
  "name": "Roasted Chicken",
  "kind": "dinner",
  "calories": 640,
  "proteinGrams": 35.8,
  "carbsGrams": 49.9,
  "fatGrams": 33,
  "eatenAt": "2025-12-24T23:23:51.139Z",
  "createdAt": "2025-12-24T23:31:40.906Z"
}