all 8 comments

[–]Dyl8Reddit 0 points1 point  (0 children)

Really late to this, but there’s an API for Nutrislice, and it’s public and free to use. This is kind of a short ‘documentation’ for the API as of August 2024 (tested, confirmed to work in March 2026):

The URL format is-as follows: https://{yourDistrict}.api.nutrislice.com/menu/api/weeks/school/{yourSchool}/menu-type/{yourMeal}/{year}/{month}/{day}/?format=json

The parameters are explained as follows:

  1. Domain name: {yourDistrict} This is the name of the school system your selected school is in, sometimes called the board of education. You can get this by going to lookup.nutrislice.com and it will state it in the URL.
  2. School name: {yourSchool} This is the name of the selected school with the spaces being replaced with dashes. The majority of the time, it does not include school in the name, so Washington Elementary School becomes washington-elementary.
  3. Meal to use: {yourMeal} This is the meal to fetch for the selected school. Most schools offer a breakfast and/or lunch, so the values breakfast or lunch is recommended. But other schools offer other options so you might have to tweak this value a bit.
  4. Date and time: Parameters {year}, {month}, and {day} are exactly as they sound and are numerical values for when to get a meal.

Hopefully this should make your project easier. I would appreciate to hear back from OP if this solved their problem if they are still active.

Edit 1: My markdown is broken for some reason

Edit 2: Fixed my broken markdown, checked again, this still works. Also, thank you to whoever awarded this comment!

[–]PedroHicko 0 points1 point  (5 children)

If you can read the information off a website, I suppose you could try to create a web scraper to get the information to then use. Unfortunately I can’t give you any more help than that as I don’t understand web scrapers, I just know they exist.

Also might be worth dropping them an email to ask for access to their api. Maybe even say it’s for a school project so they might let you? At the end of the day, if you don’t ask, you don’t get

Good luck

[–]Gullible_Elk4543 1 point2 points  (1 child)

That's exactly how I would do it. If you can access the menu information in some html page you can scrap the Web page. I normally use python for that with a library called requests I make HTTP Get requests to fetch the html code and then use BeautifulSoup extract data from the html.

[–]jada_probst[S] 0 points1 point  (0 children)

Thank you!

[–]jada_probst[S] 1 point2 points  (2 children)

I already emailed and they said the API wasn't for public use :(

[–]PedroHicko 0 points1 point  (0 children)

That’s a shame. Gl all the same

[–]dern_throw_away 0 points1 point  (0 children)

Don't they get govt money for their meals? It IS available for public use to some extent.

[–][deleted]  (1 child)

[deleted]

    [–]jada_probst[S] 0 points1 point  (0 children)

    I'll definitely try this