Skip to main content

Pagination

The myfood24 API uses limit/offset pagination for all list endpoints and is limited to 100 items per page.

Query parameters

KeyDefaultDescription
limitoptional100The number of results per page
offsetoptional0The offset, starting from 0

Sample response

{
"count": 4516,
"next": "https://myfood24.org/api/1.0/food_items?limit=100&offset=100&search=cornflakes",
"previous": null,
"results": [
...
]
}
KeyDescription
countThe total number of results across all pages
nextA link to the next page, or null if there are no more pages
previousA link to the previous, or null if there are no more pages
resultsAn array of the items in the current page