ingredients
ingredients
Page 7 of 9.
Mustard
Dijon Mustard
Mayonnaise
Oyster Sauce
Hoisin Sauce
Teriyaki Sauce
Showing first 6 of 24 on this page.
curl -sS \
"https://example-data.com/api/v1/ingredients?limit=25"const res = await fetch(
"https://example-data.com/api/v1/ingredients?limit=25"
);
const { data, meta } = await res.json();import type { Ingredient, ListEnvelope } from "https://example-data.com/types/ingredients.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/ingredients?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Ingredient>;import requests
res = requests.get(
"https://example-data.com/api/v1/ingredients",
params={"limit": 25},
)
data = res.json() {
"data": [
{
"id": 145,
"name": "Mustard",
"slug": "mustard-145",
"foodCategoryId": null,
"unit": "ml",
"defaultPricePerUnit": 16.13,
"currency": "USD"
},
{
"id": 146,
"name": "Dijon Mustard",
"slug": "dijon-mustard-146",
"foodCategoryId": 20,
"unit": "ml",
"defaultPricePerUnit": 14.45,
"currency": "USD"
},
{
"id": 147,
"name": "Mayonnaise",
"slug": "mayonnaise-147",
"foodCategoryId": null,
"unit": "ml",
"defaultPricePerUnit": 14.33,
"currency": "USD"
}
],
"meta": {
"page": 7,
"limit": 24,
"total": 200,
"totalPages": 9
},
"links": {
"self": "/api/v1/ingredients?page=7",
"next": "/api/v1/ingredients?page=8",
"prev": "/api/v1/ingredients?page=6"
}
}