Premier Only
Please note: This API call is available for Premier clients only
Conducts a search of the food database using the search expression specified. The results are paginated according to a
zero-based "page" offset. Successive pages of results may be retrieved by specifying a starting page offset value. For
instance, specifying a
max_results of 10 and
page_number of 4 will return results numbered 41-50.
Returns detailed nutritional information for the specified food. Use this call to display nutrition values for a food to users.
The only
storable values returned by this call are the
food_id unique identifier and the one or more
serving_id unique serving size identifier values.
Why are we introducing version 2?
We are introducing version 2 to allow the content from the
food.get.v2
api to respond directly from a food search. This will negate requirements to issue any subsequent calls to the food.get.v2 api.
Including Sub Categories:
An additional optional parameter named
include_sub_categories is available.
This parameter, of type
Boolean should be specified as “true” in order to enable this feature.
When this parameter is included, the response will include the names of all sub categories associated with the food.
Flag Default Serving:
An additional optional parameter named
flag_default_serving is available.
This parameter, of type
Boolean should be specified as “true” in order to enable this feature.
When this parameter is included, the response will flag one of the servings as the default serving (the suggested or most commonly chosen option).
Localization:
Two additional optional parameters named
region and
language are available. More information can be found
in the
Localization guide.