ingredients
ingredients
Page 2 of 9.
Linguine
Rigatoni
Lasagna Sheets
Chicken Breast
Chicken Thigh
Ground Beef
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": 25,
"name": "Linguine",
"slug": "linguine-25",
"foodCategoryId": null,
"unit": "g",
"defaultPricePerUnit": 18.3,
"currency": "USD"
},
{
"id": 26,
"name": "Rigatoni",
"slug": "rigatoni-26",
"foodCategoryId": null,
"unit": "g",
"defaultPricePerUnit": 18.94,
"currency": "USD"
},
{
"id": 27,
"name": "Lasagna Sheets",
"slug": "lasagna-sheets-27",
"foodCategoryId": 15,
"unit": "piece",
"defaultPricePerUnit": 10.03,
"currency": "USD"
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 200,
"totalPages": 9
},
"links": {
"self": "/api/v1/ingredients?page=2",
"next": "/api/v1/ingredients?page=3",
"prev": "/api/v1/ingredients?page=1"
}
}