Frequently Asked Questions (FAQs)
  • 2 Minutes to read
  • Dark
    Light

Frequently Asked Questions (FAQs)

  • Dark
    Light

Article summary

Some of the frequently asked questions and responses can be seen here.

Images

How do you get an image for each returned food?

POST: https://trackapi.nutritionix.com/v2/natural/nutrients and look for the "photo.thumb" object.
nutritionix-faq
Check out our natural demo page to see what the photos look like.



What are the dimensions of images that are returned from the API?

All images returned by the API will be constrained to a specific width, and slightly varying height that will not exceed the width.  In the client, you should plan to scale down images proportionally, and vertically center the images in your UI to ensure they always look uniform.

For /search/instant endpoint:

  • Small thumbnails of CPG products and common foods
  • 150px width, variable height up to 150px

For /natural/nutrient & /natural/exercise endpoints:

  • Small thumbnails and large images of foods and exercises.
  • small: 150px width, variable height up to 150px
  • large: 1080px width, up to 1080px height

Here are 5 example sets of images from this natural language query:



Am I allowed to cache data from the Nutritionix API?

The only pre-approved scenario in which we allow caching API data is for the purpose of recording a historical user food log transaction.  For example, if your app allows users to track their food intake, you can cache the nutrients related to that food for the purpose of serving up calculations and history to that specific user.

We do not allow cached data requested by one user to be displayed to another user, or any similar types of caching that would circumvent the need to hit the Nutritionix API for every end user lookup for nutrition data.

If your app requires caching for any reason not listed here, please contact us at support@nutritionix.com to discuss Premium Add-On caching options.

For help, please direct inquires to our support form (be sure to select Wellness or Nutritionix.com > Other). Thank you!



How do I submit foods to the Nutritionix database?

To submit a grocery food that is not found in the database, please submit product photos here support form.

The photos requirement include:

  • Photo 1: Photo of the products barcode (that would get scanned at checkout counter at grocery store).
  • Photo 2: Photo of the front of the package (so we can determine the name of product)
  • Photo 3: Photo of the nutrition label.

Please note, that a clear version of all three of these photos will be needed in order to get the product added to our database.  Generally, it will take 7-10 days to get the product added after submitting the photos. Thank you!



How do I get a list of the restaurant brands available in the API?

You can use this endpoint (production-ready) to get a list of available restaurant brands with the brand ID:
https://d1gvlspmcma3iu.cloudfront.net/restaurants-3d-party.json.gz


Was this article helpful?
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence