String Cheese
- userId
-
Amari Koch @amari.koch
- name
- String Cheese
- kind
- snack
- calories
- 524
- proteinGrams
- 44.8
- carbsGrams
- 5.1
- fatGrams
- 36
- eatenAt
- createdAt
Overview
meals / #546
String Cheese
#546
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/546" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/546" ); 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/546"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/546"
)
meal = res.json() Response
{
"id": 546,
"userId": 130,
"name": "String Cheese",
"kind": "snack",
"calories": 524,
"proteinGrams": 44.8,
"carbsGrams": 5.1,
"fatGrams": 36,
"eatenAt": "2025-07-13T19:03:14.739Z",
"createdAt": "2025-07-13T19:20:50.166Z"
}