String Cheese
- userId
-
Phyllis Hyatt @phyllis_hyatt83
- name
- String Cheese
- kind
- snack
- calories
- 694
- proteinGrams
- 31.8
- carbsGrams
- 68.7
- fatGrams
- 32.4
- eatenAt
- createdAt
Overview
meals / #354
String Cheese
#354
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/354" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/354" ); 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/354"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/354"
)
meal = res.json() Response
{
"id": 354,
"userId": 84,
"name": "String Cheese",
"kind": "snack",
"calories": 694,
"proteinGrams": 31.8,
"carbsGrams": 68.7,
"fatGrams": 32.4,
"eatenAt": "2025-12-11T21:22:26.195Z",
"createdAt": "2025-12-11T21:42:58.041Z"
}