Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mandaputtra/fatsecret-unofc-api
Food Bank HTTP API, provide you with food information, calorie, fat, etc. Powered by Fat Secret webpage.
https://github.com/mandaputtra/fatsecret-unofc-api
api api-rest food unofficial-library
Last synced: 2 months ago
JSON representation
Food Bank HTTP API, provide you with food information, calorie, fat, etc. Powered by Fat Secret webpage.
- Host: GitHub
- URL: https://github.com/mandaputtra/fatsecret-unofc-api
- Owner: mandaputtra
- Created: 2020-11-09T03:24:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T08:27:36.000Z (about 2 years ago)
- Last Synced: 2024-08-01T21:39:25.566Z (4 months ago)
- Topics: api, api-rest, food, unofficial-library
- Language: TypeScript
- Homepage: https://fatsecret-unofc-api.vercel.app/
- Size: 345 KB
- Stars: 11
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-made-by-indonesian - Fat Secret Unofficial API - `Food Bank HTTP API, provide you with food information, calorie, fat, etc. Powered by Fat Secret webpage` *by [Manda Putra](https://github.com/mandaputtra)* (F)
- made-in-indonesia - Fat Secret Unofficial API - `Food Bank HTTP API, provide you with food information, calorie, fat, etc. Powered by Fat Secret webpage` *by [Manda Putra](https://github.com/mandaputtra)* (F)
README
# Fat Secret Unofficial API
This are unofficial http interface to [Fat Secret](fatsecret.com) 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.
## Features
Here are some feature that this API offers you
### Multi Lang Multi Food
Some food are only available on your language, since Fat Secret had many [languages](https://www.fatsecret.co.id/Default.aspx?pa=sites) 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!
### Search Food
To search food, you can do this:
```http
GET api/:lang/search?query=tempe&page=0# query: name of your food
# page: go to current page
```### Food Detail [WIP]
Print the detail of food that you're looking for
```http
GET api/:lang/detail
```## Contribute
### Contribute to your own language
To make your language _plugin_ you could add to the settings [here](./utils/lang) let me explain whare are those config
```js
{
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'
}
```## Development
```
$ npm i -g vercel
$ vercel start
```