ingredients
ingredients
Page 6 of 9.
Lime
Orange
Apple
Banana
Strawberries
Blueberries
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": 121,
"name": "Lime",
"slug": "lime-121",
"foodCategoryId": null,
"unit": "piece",
"defaultPricePerUnit": 22.31,
"currency": "USD"
},
{
"id": 122,
"name": "Orange",
"slug": "orange-122",
"foodCategoryId": 5,
"unit": "piece",
"defaultPricePerUnit": 1.86,
"currency": "USD"
},
{
"id": 123,
"name": "Apple",
"slug": "apple-123",
"foodCategoryId": 2,
"unit": "piece",
"defaultPricePerUnit": 15.29,
"currency": "USD"
}
],
"meta": {
"page": 6,
"limit": 24,
"total": 200,
"totalPages": 9
},
"links": {
"self": "/api/v1/ingredients?page=6",
"next": "/api/v1/ingredients?page=7",
"prev": "/api/v1/ingredients?page=5"
}
}