String Cheese
- userId
-
Everett Yundt @everett_yundt11
- name
- String Cheese
- kind
- snack
- calories
- 351
- proteinGrams
- 5.1
- carbsGrams
- 17.8
- fatGrams
- 28.8
- eatenAt
- createdAt
Overview
meals / #177
String Cheese
#177
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/177" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/177" ); 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/177"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/177"
)
meal = res.json() Response
{
"id": 177,
"userId": 44,
"name": "String Cheese",
"kind": "snack",
"calories": 351,
"proteinGrams": 5.1,
"carbsGrams": 17.8,
"fatGrams": 28.8,
"eatenAt": "2026-01-24T14:46:32.075Z",
"createdAt": "2026-01-24T15:01:17.106Z"
}