Shrimp and Veggies
- userId
-
Lenny Howe @lenny.howe
- name
- Shrimp and Veggies
- kind
- dinner
- calories
- 545
- proteinGrams
- 30.6
- carbsGrams
- 30.3
- fatGrams
- 33.5
- eatenAt
- createdAt
Overview
meals / #150
Shrimp and Veggies
#150
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/150" ); 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/150"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/150"
)
meal = res.json() Response
{
"id": 150,
"userId": 37,
"name": "Shrimp and Veggies",
"kind": "dinner",
"calories": 545,
"proteinGrams": 30.6,
"carbsGrams": 30.3,
"fatGrams": 33.5,
"eatenAt": "2025-12-08T16:17:27.497Z",
"createdAt": "2025-12-08T16:47:12.653Z"
}