A REST API for retrieving information about food products with three ingredients or fewer.
Status: Early development
Base URL:
https://simple-food-api.tonysancez.dev/api/v1
Example request:
GET /foods
Typical usage:
/foods?category=poultry – Filter by category/foods?brand=Nestle – Filter by brand/foods?page=2&limit=50 – Paginate resultsGET /foods{
"data": [
{
"id": 1,
"name": "Plain Yogurt",
"brand": "Chobani",
"ingredients": ["Milk", "Cultures"]
}
],
"page": 1,
"total": 1
}
GET /foods/:id{
"id": 1,
"name": "Plain Yogurt",
"brand": "Chobani",
"ingredients": ["Milk", "Cultures"]
}
The API returns standard HTTP status codes:
200 OK – Successful request400 Bad Request – Invalid parameters404 Not Found – Resource not found500 Server Error – Internal issueExample error response:
{
"error": "Food not found"
}
Check the server health programmatically via the endpoint or view a visual dashboard.
GET /health
{
"uptime": "13 minutes, 31 seconds",
"message": "OK",
"timestamp": "Monday, October 13th, 2025 at 6:34:14 AM"
}
Displays uptime, status message, and timestamp in a simple dashboard.
For examples of pagination implementation, you can view the static page: Pagination Example Page
This page demonstrates how paginated results are handled and displayed in the UI.