String Cheese
- userId
-
Conner Bernhard @conner.bernhard33
- name
- String Cheese
- kind
- snack
- calories
- 464
- proteinGrams
- 12
- carbsGrams
- 40.8
- fatGrams
- 28.1
- eatenAt
- createdAt
Overview
meals / #10
String Cheese
#10
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/10" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/10" ); 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/10"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/10"
)
meal = res.json() Response
{
"id": 10,
"userId": 3,
"name": "String Cheese",
"kind": "snack",
"calories": 464,
"proteinGrams": 12,
"carbsGrams": 40.8,
"fatGrams": 28.1,
"eatenAt": "2025-10-28T15:52:31.611Z",
"createdAt": "2025-10-28T15:59:45.500Z"
}