Skip to content

Fit-n-Bites API is a free light-weight RESTful API providing nutrition facts of common food. πŸ”

License

Notifications You must be signed in to change notification settings

LyapunovJingci/Fit-n-Bites-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Fit-n-Bites API

Status License

πŸ“ Table of Contents

🧐 About

Fit-n-Bites API is a free light-weight RESTful API providing nutrition facts of common food. No redundant information is provided. Perfect for small to medium size projects, especially school demos.

🏁 Getting Started

An API key is necessary to use this API. Please contact landau@fitnbites.com to access API key.

By default, clients must pass their API key via the Authorization header. It must be formatted as follows:

Authorization: Api-Key ********

Example

curl -H 'Authorization: Api-Key ********' www.fitnbites.com/api/v1/foods/

🎈 Usage

/foods

Listing information of all available foods (Calorie, protein, etc.)

/foods/alcoholfree

Listing information of all alcohol free foods

/foods/caffeinefree

Listing information of all caffeine free foods

/food/id

Retrieving information of a specific target

/foods/?keyword=

Retrieving food descriptions with given keyword

/foods/?max=

Retrieving food with a calorie upper bound per 100 gram

/foods/?min=

Retrieving food with a calorie lower bound per 100 gram

Example

/api/v1/foods/alcoholfree/?keyword=cookie&max=300&min=200

πŸ‘¨β€πŸ’» Unit List

Nutrient Unit
Energy kCal
Protein g
Carbohydrate g
Sugar g
Fiber g
Alcohol g
Vitamin C mg
Vitamin A mcg
Vitamin B12 mcg
Vitamin D mcg
Calcium mg
Phosphorus mg
Magnesium mg
Iron mg
Zinc mg
Copper mg
Selenium mcg
Potassium mg
Sodium mg
Theobromine mg
Caffeine mg

⛏️ Built Using

✍️ Authors

About

Fit-n-Bites API is a free light-weight RESTful API providing nutrition facts of common food. πŸ”

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages