This are unofficial http interface to Fat Secret food databases. The API will show you information related about the food you're looking for. Remember that this are unofficial. Please report if something broken.
Here are some feature that this API offers you
Some food are only available on your language, since Fat Secret had many languages I tried to implement it as multi lang. However it still need some work. Since I only speak English and Indonesia for now it only support those two. You can make a pull request support your language!
To search food, you can do this:
GET api/:lang/search?query=tempe&page=0
# query: name of your food
# page: go to current page
Print the detail of food that you're looking for
GET api/:lang/detail
To make your language plugin you could add to the settings here let me explain whare are those config
{
lang: 'specify your language abbreviation',
menuUrl: 'home page menu for foods',
searchUrl: 'search url for fat secret',
otherSizes: 'this are text that you will find 2 lines under the food name after you search food'
}
$ npm i -g vercel
$ vercel start