ruoka-mp4
is an API for mayk.fi's food menu and a video generator. It creates a video with Remotion using Node.js in an Instagram-like format.
/api
endpoint
There you can find the API in a JSON format. This is what it would look like:
{
"status_code": 200,
"status_message": null,
"time_now": 1648581930492,
"url": "https://www.mayk.fi/tietoa-meista/ruokailu/",
"data": {
"menu": {
"food": {
"date": ["Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai"],
"normal": [
"monday meal",
"tuesday meal",
"wednesday meal",
"thursday meal",
"friday meal"
],
"vege": [
"vegan monday meal",
"vegan tuesday meal",
"vegan wednesday meal",
"vegan thursday meal",
"vegan friday meal"
]
}
},
"menu_today": {
"food": {
"num_date": 1,
"today_date_full": "maaliskuu 29. 2022, 10:25:30 pm",
"today_date": "29.3.2022",
"current_week": "13",
"date": "Tiistai",
"normal": "tuesday meal",
"vege": "vegan tuesday meal"
}
}
}
}
/video
endpoint
When the video is rendered, it is sent to /video
as a video in .mp4
format. Here is an example: