Get started

    API Endpoint

        https://lunchaimjardevi.com/api/v1/
                

The Luncha I Mjärdevi API can be used to get the raw data of what food is being served in Mjärdevi today. It is provided as is with no guarantee that it will always be up to date.

If you use the API for anything a link would be very much appriciated but is not required, I would also love to hear about it!

For any questions or suggestions you can contact me at luncha@ptjwebben.se

get restaurants


# Here is a curl example
curl \
-X GET https://lunchaimjardevi.com/api/v1/getRestaurants
                

To get a list of restaurants you need to make a GET/POST call to the following url :
https://lunchaimjardevi.com/api/v1/getRestaurants

If the restaurant has a static menu it will be provided in HTML format here



Result example :

{
	"error": "none",
	"restaurants": [{
		"id": "1",
		"name": "Br\u00f6dernas K\u00f6k",
		"isFoodtruck": false,
		"website": "https:\/\/www.brodernaskok.se\/meny",
		"lastUpdate": "1628805981",
		"coordLat": "58.39423",
		"coordLong": "15.55948",
		"parserNeedsUpdate": "0",
		"static": "<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\"><b>S\u00e4songens meny<\/b><\/span><\/li>\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Lax Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\t\u00d6rtslungad potatis, gravad lax, kokt \u00e4gg, rostad beta, gr\u00f6na \u00e4rtor, picklad r\u00f6dl\u00f6k, r\u00e4disa, f\u00e4rsk persilja & dilldressing.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Br\u00f6dernas Caesar<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tBulgur, kyckling, knaperstekt bacon, riven parmesanost, hemgjorda krutonger & k\u00f6rsb\u00e4rstomater.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Ch\u00e8vre Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tCh\u00e8vre, rostad beta, quinoa, gr\u00f6nk\u00e5l, r\u00e4disa, rostade n\u00f6tter, picklad r\u00f6dl\u00f6k, f\u00e4rsk persilja & honungsvin\u00e4grett.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Veg Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tQuinoa, hummus, gr\u00f6nk\u00e5l, l\u00f6k&tomatsallad, \u00f6rtslungad potatis, gr\u00f6na \u00e4rtor, rostade fr\u00f6n & pestokr\u00e4m.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Medi Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tBulgur, falafel, hummus, l\u00f6k&tomatsallad, ugnsrostade gr\u00f6nsaker, picklad r\u00f6dk\u00e5l, rostade fr\u00f6n & myntayoghurt.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Kyckling Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tGrillad kyckling, bulgur, gr\u00f6nk\u00e5l, vattenmelon, k\u00f6rsb\u00e4rstomater, f\u00e4rsk basilika, picklad r\u00f6dl\u00f6k & fetaostkr\u00e4m.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Primi Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tPasta, serranoskinka, tomat, mozzarella, oliver, ugnsrostade gr\u00f6nsaker, gr\u00f6na \u00e4rtor, f\u00e4rsk basilika & pestokr\u00e4m.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">R\u00e4k&Nudel Bowl<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tHandskalade r\u00e4kor (MSC-m\u00e4rkta), nudlar, sojab\u00f6nor, broccoli, r\u00e4disa, f\u00e4rsk koriander, krossade jordn\u00f6tter & sesamdressing.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n\r\n<li class=\"mdl-list__item\"><span class=\"mdl-list__item-primary-content\">Grilltallrik (Varmr\u00e4tt)<\/span><\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tGrillad kyckling, varm bulgur, tzatziki m. gr\u00f6nsallad, majs, k\u00f6rb\u00e4rstomater & en vitl\u00f6kstoast.\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n"
	}, {
		"id": "2",
		"name": "Chili & Lime",
		"isFoodtruck": false,
		"website": "http:\/\/chili-lime.se\/",
		"lastUpdate": "1628805982",
		"coordLat": "58.39423",
		"coordLong": "15.55948",
		"parserNeedsUpdate": "0",
		"static": ""
	}, {
		"id": "4",
		"name": "Husman",
		"isFoodtruck": false,
		"website": "https:\/\/restauranghusman.se\/",
		"lastUpdate": "1628813188",
		"coordLat": "58.394943",
		"coordLong": "15.561091",
		"parserNeedsUpdate": "0",
		"static": ""
	}, {
		"id": "19",
		"name": "Sukaldari",
		"isFoodtruck": true,
		"website": "https:\/\/www.facebook.com\/Sukaldari.se\/",
		"lastUpdate": "0",
		"coordLat": "58.394139260932896",
		"coordLong": "15.556225412015065",
		"parserNeedsUpdate": "0",
		"static": "<li class=\"mdl-list__item\">\r\n\t<span class=\"mdl-list__item-primary-content\">Sukaldari finns fram till v35 p\u00e5 Innerg\u00e5rden, Apotekaregatan 14.\r\nVanligvis s\u00e5 finns vagnen annars i Mj\u00e4rdevi Tisdag, Onsdag och Fredag<\/span><\/li>\r\n\r\n\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">Sukaldari<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tH\u00f6grev, tryffelmajon\u00e4s, picklad l\u00f6k, brieost, isbergssallad, brioche br\u00f6d\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">Sant Elm<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tH\u00f6grev, mozzarella, bl\u00e5m\u00f6gelost, cheddarost, bacon, picklad l\u00f6k, sm\u00f6rg\u00e5sgurka, isbergssallad, tomat, hamburgardressing, brioche br\u00f6d\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">La Mejicana - Vegetarisk<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tHalloumi isbergssallad, paprika, avokador\u00f6ra, salsa brava, picklad l\u00f6k, tomat, brioche br\u00f6d\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">PN8<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tH\u00f6grev, tortillachips, cheddarost, mozzarella, tomatsalsa, salsa brava, jalape\u00f1os, isbergssallad, picklad l\u00f6k, avokador\u00f6ra, brioche br\u00f6d\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">Iron Mike - Vegan<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tTomatsalsa, tortillachips, vegansk dressing, paprika, tomat, picklad l\u00f6k, isbergssallad, avokador\u00f6ra\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>\r\n\r\n<li class=\"mdl-list__item\" style=\"padding-bottom: 5px;\">\r\n\t<span class=\"mdl-list__item-primary-content\">Halloumi Sallad<\/span>\r\n<\/li>\r\n<li class=\"mdl-list__item\" style=\"padding-top:0px;>\r\n\t<span class=\"mdl-list__item-primary-content\">\r\n\t\t<i style=\"color:#777; padding-left:5px;\">\r\n\t\t\tHalloumi, cocktailtomat, picklad r\u00f6dl\u00f6k, oliver, salladsmix, avokado, paprika, valn\u00f6tter, olivolja, pumpafr\u00f6n. Serveras med vinaigrette vid sidan av\r\n\t\t<\/i>\r\n\t<\/span>\r\n<\/li>"
	}]
}
                

QUERY PARAMETERS

Field Type Required Description
None

get menu


# Here is a curl example
curl \
-X GET https://lunchaimjardevi.com/api/v1/getMenu?id=2
                

The method of getting todays menu for a restaurant will be different depending on if it is an automatically updated menu or a static one.
The static menu is included in getRestaurants. If the static value is empty it is an automatically updated menu and this is the endpoint you should use.
https://lunchaimjardevi.com/api/v1/getMenu



Result example :

{
	"error": "none",
	"menuItems": ["Kycklingkebab-tallrik (eller falafel) & (sallad, gurka, tomat, pommes & kebabs\u00e5s)", "Halstrad f\u00e4rsk laxfil\u00e9 med roms\u00e5s, serveras med f\u00e4nk\u00e5lsallad & kokt f\u00e4rskpotatis (\u00c4,L)", "Chicken nirali", "Mixed beans masala", "POKE BOWL - vietnamesisk \/ japansk \/ kinesisk", "Asiatisk lunchbuff\u00e9", "Wokade gr\u00f6nsaker med cashewn\u00f6tter", "Wokade \u00e4ggnudlar med gr\u00f6nsaker, samt v\u00e5rrulle & jordn\u00f6tss\u00e5s (G)", "Kycklingspett med wokade gr\u00f6nsaker & jordn\u00f6tss\u00e5s"]
}
                

QUERY PARAMETERS

Field Type Required Description
id integer yes The id of the restaurant, you can get it by calling getRestaurants

Errors

The API uses the following error codes:

Error Code Meaning
none There was no error
invalidId No restaurant with the specified ID exist
needsNewParser The website has been updated so the automatic parser no longer works. If you get this error I am aware that it has broken and will fix it as soon as possible
staticMenu This restaurant has a static menu, to see it use getRestaurants
noMenuForTodayYet This is a generic error that can have multiple reasons.
Luncha I Mjärdevi will try to get the menu once every hour between 00 and 13 on weekdays.
The error can happen for the following reasons:
  • The restaurants website has not been updated with todays menu yet
  • The menu for the restaurant is static
  • The design of the restaurants website has been updated so it needs a new parser and I have not marked it as such yet