String Cheese
- userId
-
Everett Yundt @everett_yundt11
- name
- String Cheese
- kind
- snack
- calories
- 608
- proteinGrams
- 41.3
- carbsGrams
- 71
- fatGrams
- 17.6
- eatenAt
- createdAt
Overview
meals / #178
String Cheese
#178
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/178" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/178" ); 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/178"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/178"
)
meal = res.json() Response
{
"id": 178,
"userId": 44,
"name": "String Cheese",
"kind": "snack",
"calories": 608,
"proteinGrams": 41.3,
"carbsGrams": 71,
"fatGrams": 17.6,
"eatenAt": "2026-01-14T21:48:10.926Z",
"createdAt": "2026-01-14T22:15:59.057Z"
}