Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

API Suggestions

Talha Ozdogan edited this page Sep 30, 2025 · 3 revisions

Endpoints (WORK IN PROGRESS)

  • /info/allergens

Get information about allergen materials that the specified ingredient/meal (via body data or a parameter) may have.

  • /info/nutrition

Get nutrition info of an ingredient/meal, e.g the amount of protein, fiber, calories.

  • /info/is-vegan

Check if the specified ingredient/meal is vegan or not.

  • /info/image

Get the image (P18) of an ingredient/meal.

  • /info/search-meal

Get the list of meals whose names contain a specified keyword.

  • /info/get-ingredients

Get the list of ingredients of a meal.

  • /info/origin

Get the origin of a meal, e.g from which country/cuisine it comes from.

  • /info/course

Get the course of a meal, e.g appetizer, main course, sweet.

  • /info/category

Get the category of an ingredient, e.g fruit, vegetable, spice. Related property: P279 (subclass of)

Notes

  • Wikidata API can be accessed at https://www.wikidata.org/w/api.php URL. There are pretty useful help pages on the main page. (especially useful are the wbgetentites, wbgetclaims and wbsearchentites actions).

  • requests library of python is useful for making HTTP requests and maintaining cookies/local storage while doing so.

  • In Wikidata results, the results we want are associated with claims in the entity objects, claims consist of entities also. For example, P31 is "instance of" property, and its datavalue field contains the id of the class our entity belongs to. Or the signature (P109) datavalue may contain the name of the image file that is stored in https://commons.wikimedia.org/wiki

  • You can try the examples at the end of each help page. It might help you understand the structure.

Other suggestions

You can put your own suggestions here. We can use other API's as well.

💬 Communication Plan

📚 Archives

👥 Team Members

📌 Milestone Report

💬 Communication Plan

📋 Meeting Agendas

📅 Meeting Notes

📂 Backend Subgroup Meeting Notes

📂 Frontend Subgroup Meeting Notes

📂 Mobile Subgroup Meeting Notes

📚 Lecture Notes

🛠️ Team Best Practices

✍️ Guidance

❗ Issues

🚀 Project

🧱 Diagrams

👩‍💼 User Scenarios

Click to Expand ⬇️

🗂️ Templates

Clone this wiki locally