Sushi Roll
- userId
-
Margaretta Barrows @margaretta_barrows41
- name
- Sushi Roll
- kind
- lunch
- calories
- 391
- proteinGrams
- 37.4
- carbsGrams
- 9.1
- fatGrams
- 22.8
- eatenAt
- createdAt
Overview
meals / #160
Sushi Roll
#160
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/160" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/160" ); 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/160"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/160"
)
meal = res.json() Response
{
"id": 160,
"userId": 39,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 391,
"proteinGrams": 37.4,
"carbsGrams": 9.1,
"fatGrams": 22.8,
"eatenAt": "2026-04-20T22:57:48.770Z",
"createdAt": "2026-04-20T23:08:50.753Z"
}