example-data.com
Menu
Browse docs and collections

Overview

meals / #586

Chicken Stir-Fry

userId
Chyna Kozey @chyna_kozey80
name
Chicken Stir-Fry
kind
dinner
calories
437
proteinGrams
8.8
carbsGrams
71.1
fatGrams
13.1
eatenAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 586,
  "userId": 140,
  "name": "Chicken Stir-Fry",
  "kind": "dinner",
  "calories": 437,
  "proteinGrams": 8.8,
  "carbsGrams": 71.1,
  "fatGrams": 13.1,
  "eatenAt": "2026-01-08T19:41:01.316Z",
  "createdAt": "2026-01-08T19:52:10.438Z"
}