The food elements returned are those best matching the search expression specified, ordered by their relevancy to the
search expression.
The general information returned is:
- max_results is an Int – the maximum size of a page of results.
- total_results is an Int – the total number of search results matching the search expression.
- page_number is an Int – the zero-based offset into the results for the query.
Each food element contains summary information about the food item as follows:
- food_id – the unique food identifier.
- food_name – the name of the food, not including the brand name. E.G.: "Instant Oatmeal".
- food_type – takes the value "Brand" or "Generic". Indicates whether the food is a brand or generic item – see food_type
- brand_name – the brand name, only when food_type is "Brand". E.G.: "Quaker".
- food_url – URL of this food item on www.fatsecret.com.
- food_description – A summary description of key nutritional values for a nominated serving size.
<?xml version="1.0" encoding="utf-8" ?>
<foods xmlns="http://platform.fatsecret.com/api/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://platform.fatsecret.com/api/1.0/ http://platform.fatsecret.com/api/1.0/fatsecret.xsd">
<max_results>20</max_results>
<total_results>228</total_results>
<page_number>0</page_number>
<food>
<food_id>4384</food_id>
<food_name>Plain French Toast</food_name>
<food_type>Generic</food_type>
<food_url>http://www.fatsecret.com/calories-nutrition/generic/french-toast-plain</food_url>
<food_description>Per 342g - Calories: 835kcal | Fat: 32.28g | Carbs: 105.43g | Protein: 29.41g</food_description>
</food>
</foods>
{ "foods": {"food": {"food_description": "Per 342g - Calories: 835kcal | Fat: 32.28g | Carbs: 105.43g | Protein: 29.41g", "food_id": "4384", "food_name": "Plain French Toast", "food_type": "Generic", "food_url": "http:\/\/www.fatsecret.com\/calories-nutrition\/generic\/french-toast-plain" }, "max_results": "20", "page_number": "0", "total_results": "228" }}