Sushi Roll
- userId
-
Cayla Farrell @cayla_farrell
- name
- Sushi Roll
- kind
- lunch
- calories
- 695
- proteinGrams
- 52.4
- carbsGrams
- 56.3
- fatGrams
- 28.9
- eatenAt
- createdAt
Overview
meals / #16
Sushi Roll
#16
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/16" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/16" ); 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/16"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/16"
)
meal = res.json() Response
{
"id": 16,
"userId": 4,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 695,
"proteinGrams": 52.4,
"carbsGrams": 56.3,
"fatGrams": 28.9,
"eatenAt": "2025-10-03T03:23:49.376Z",
"createdAt": "2025-10-03T03:51:47.081Z"
}