Shrimp and Veggies
- userId
-
Cayla Farrell @cayla_farrell
- name
- Shrimp and Veggies
- kind
- dinner
- calories
- 432
- proteinGrams
- 50.7
- carbsGrams
- 9.3
- fatGrams
- 21.3
- eatenAt
- createdAt
Overview
meals / #17
Shrimp and Veggies
#17
Request
curl example
curl -sS \ "https://example-data.com/api/v1/meals/17" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/meals/17" ); 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/17"
);
const meal = (await res.json()) as Meal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/meals/17"
)
meal = res.json() Response
{
"id": 17,
"userId": 4,
"name": "Shrimp and Veggies",
"kind": "dinner",
"calories": 432,
"proteinGrams": 50.7,
"carbsGrams": 9.3,
"fatGrams": 21.3,
"eatenAt": "2026-05-05T13:17:50.027Z",
"createdAt": "2026-05-05T13:27:11.960Z"
}