Pagination
The myfood24 API uses limit/offset
pagination for all list
endpoints and is limited to 100 items per page.
Query parameters
Key | Default | Description | |
---|---|---|---|
limit | optional | 100 | The number of results per page |
offset | optional | 0 | The 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": [
...
]
}
Key | Description |
---|---|
count | The total number of results across all pages |
next | A link to the next page, or null if there are no more pages |
previous | A link to the previous, or null if there are no more pages |
results | An array of the items in the current page |