example-data.com
Menu
Browse docs and collections

Overview

meals / #710

Roasted Chicken

userId
Aylin Sanford @aylin.sanford
name
Roasted Chicken
kind
dinner
calories
514
proteinGrams
26.8
carbsGrams
65.7
fatGrams
16
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 710,
  "userId": 173,
  "name": "Roasted Chicken",
  "kind": "dinner",
  "calories": 514,
  "proteinGrams": 26.8,
  "carbsGrams": 65.7,
  "fatGrams": 16,
  "eatenAt": "2026-04-17T04:50:18.329Z",
  "createdAt": "2026-04-17T05:13:45.562Z"
}