Sign in | Sign up

Trying to use the Swagger UI Page

Tagged:

Currently contains 3 posts

Avatar

November 29, 2016 04:43

FireMMDC

https://trackapi.nutritionix.com/docs/#/default

The page appears to be broken for some of the API calls
https://online.swagger.io/validator/debug?url=https://trackapi.nutritionix.com/docs/trackDocs.yaml

That link appears when you click on the error button at the bottom of the page.

Additionally I want to use this API for a school project and I’m very interested in using /v2/search/instant for auto-completing food names and /v2/search/item for the nutritional information about the foods.

To get the JSON back from the API is the x-app-id, x-app-key, x-remote-user-id, and query of either a food name or the Id of a food item all that is required?

Avatar

November 29, 2016 14:35

mattsilv

We do not currently support the in-page API calls on that docs page, but thank you for the heads up, we are going to eventually get that working,

The x-app-id, x-app-key, and query are required for the API endpoint, but the x-remote-user-id is not required.

Avatar

November 29, 2016 15:05

FireMMDC

Thanks for the quick response.

Reply to thread