We’ve just made live a couple of new API endpoints that have been requested by you guys, we’d love you to give them a try and test them out.
- USDA Ingredients - Search by Name
- USDA Ingredients - Get by ID
- Simple Ingredients - Search by Name
- Simple Ingredients - Get by ID
All of these endpoints support both the User Scope (Oauth Bearer Token) and Application Scope (Valid App ID & Client Secret) auth methods.
Here’s an example using curl:
# Bearer token auth method curl "https://api.nuapi.co/v3/simple_ingredients.json?name=chocolate" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer 17c17cThis17cIs17cWhere17cYour17cToken17cGoes17c17c" \ # Application ID & Secret auth method curl "https://api.nuapi.co/v3/simple_ingredients.json?name=chocolate" \ -H "Content-Type: application/json" \ -H "Authorization: application_id 7050fa3cc27a056697263ec0221492a1a044ab, client_secret 1fdd7d268039eb5c0c622b3a382c80" \
Just replace your appID or client secret and paste into your terminal to try the request.
What can I do with these endpoints?
The ingredients endpoints are really useful for anything to do with Nutrition.
You could use them in a Recipe app to ensure your recipes have nutrition information.
You could use them to help Users with their Nutrition tracking.
You could use them to predict the presence of allergens in certain foods.
You could use them for adding nutrition information to restaurant menus.
What else can you do? We’d love to know what you come up with.
What are Simple Ingredients?
Simple Ingredients are a curated set of ingredients that Nuwe team created along with qualified nutritionists, in order to simplify the ingredients selection process for users. Read about it further in our Docs
See it in action in the Nuwe iOS App