Sushi Roll
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- name
- Sushi Roll
- kind
- lunch
- calories
- 647
- proteinGrams
- 14
- carbsGrams
- 72.9
- fatGrams
- 33.3
- eatenAt
- createdAt
Overview
meals / #404
Sushi Roll
#404
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/404" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/404" ); 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/404"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/404"
)
meal = res.json() Response
{
"id": 404,
"userId": 98,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 647,
"proteinGrams": 14,
"carbsGrams": 72.9,
"fatGrams": 33.3,
"eatenAt": "2025-06-30T09:26:09.310Z",
"createdAt": "2025-06-30T09:54:07.182Z"
}