String Cheese
- userId
-
Maryam Kunze @maryam_kunze
- name
- String Cheese
- kind
- snack
- calories
- 526
- proteinGrams
- 23.9
- carbsGrams
- 45.8
- fatGrams
- 27.5
- eatenAt
- createdAt
Overview
meals / #808
String Cheese
#808
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/808" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/808" ); 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/808"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/808"
)
meal = res.json() Response
{
"id": 808,
"userId": 195,
"name": "String Cheese",
"kind": "snack",
"calories": 526,
"proteinGrams": 23.9,
"carbsGrams": 45.8,
"fatGrams": 27.5,
"eatenAt": "2025-06-16T11:49:56.349Z",
"createdAt": "2025-06-16T11:52:41.486Z"
}