String Cheese
- userId
-
Simeon Heathcote @simeon_heathcote75
- name
- String Cheese
- kind
- snack
- calories
- 381
- proteinGrams
- 32
- carbsGrams
- 30.9
- fatGrams
- 14.4
- eatenAt
- createdAt
Overview
meals / #919
String Cheese
#919
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/919" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/919" ); 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/919"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/919"
)
meal = res.json() Response
{
"id": 919,
"userId": 224,
"name": "String Cheese",
"kind": "snack",
"calories": 381,
"proteinGrams": 32,
"carbsGrams": 30.9,
"fatGrams": 14.4,
"eatenAt": "2025-09-03T14:53:49.416Z",
"createdAt": "2025-09-03T15:22:27.453Z"
}