String Cheese
- userId
-
Arnaldo Friesen @arnaldo_friesen78
- name
- String Cheese
- kind
- snack
- calories
- 643
- proteinGrams
- 22.9
- carbsGrams
- 48.2
- fatGrams
- 39.8
- eatenAt
- createdAt
Overview
meals / #472
String Cheese
#472
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/472" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/472" ); 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/472"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/472"
)
meal = res.json() Response
{
"id": 472,
"userId": 113,
"name": "String Cheese",
"kind": "snack",
"calories": 643,
"proteinGrams": 22.9,
"carbsGrams": 48.2,
"fatGrams": 39.8,
"eatenAt": "2026-05-04T22:25:26.654Z",
"createdAt": "2026-05-04T22:54:07.791Z"
}