eat

URL

http://www.nutritter.com/api/eat

Description

Eat the food specified in the search string

Authentication

Required

Parameters

searchString(required)
Description
The name of the food(s) you\re trying to eat
Type
string
Example Value
fries, 20oz coke

Example

An easy way to try the Nutritter API is to use cURL. Here is an example of a curl command for eat:

Command
Output
 <result>
  <searchresults>
    <searchresult>
      <searchString>fries</searchString>
      <feeditem>
        <feed_id>5287</feed_id>
        <timestamp>2009-07-23 20:21:39</timestamp>
        <quantity>1</quantity>
        <keyword>
          <name>fries</name>
          <ingredients>
            <ingredient>
              <quantity>1</quantity>
              <fooditem>
                <name>fries</name>
                <brand>
                  <name>Generic</name>
                  <avatar>
                    <small>http://www.nutritter.com/img/brands/69ae61b0be8fc1e357ec27fb57f3b058.png</small>
                    <medium>http://www.nutritter.com/img/brands/a2c0e7fedef22ee744c9bb8912106db1.png</medium>
                    <large>http://www.nutritter.com/img/brands/272e4e2bf6374c2e54beea994999dfbe.png</large>
                  </avatar>
                </brand>
                <nutrition_facts>
                  <calories>278</calories>
                  <caloriesFromFat>135</caloriesFromFat>
                  <totalFat>15g</totalFat>
                  <saturatedFat>4g</saturatedFat>
                  <sodium>200mg</sodium>
                  <totalCarbohydrate>31g</totalCarbohydrate>
                  <dietaryFiber>3g</dietaryFiber>
                  <protein>3g</protein>
                </nutrition_facts>
              </fooditem>
            </ingredient>
          </ingredients>
        </keyword>
      </feeditem>
    </searchresult>
    <searchresult>
      <searchString>20oz coke</searchString>
      <feeditem>
        <feed_id>5288</feed_id>
        <timestamp>2009-07-23 20:21:39</timestamp>
        <quantity>1</quantity>
        <keyword>
          <name>20oz coke</name>
          <ingredients>
            <ingredient>
              <quantity>1</quantity>
              <fooditem>
                <name>coke</name>
                <brand>
                  <name>Generic</name>
                  <avatar>
                    <small>http://www.nutritter.com/img/brands/69ae61b0be8fc1e357ec27fb57f3b058.png</small>
                    <medium>http://www.nutritter.com/img/brands/a2c0e7fedef22ee744c9bb8912106db1.png</medium>
                    <large>http://www.nutritter.com/img/brands/272e4e2bf6374c2e54beea994999dfbe.png</large>
                  </avatar>
                </brand>
                <nutrition_facts>
                  <calories>277.2</calories>
                  <sodium>14.4mg</sodium>
                  <totalCarbohydrate>72g</totalCarbohydrate>
                  <sugars>72g</sugars>
                  <calcium>1.8%</calcium>
                  <iron>1.8%</iron>
                </nutrition_facts>
              </fooditem>
            </ingredient>
          </ingredients>
        </keyword>
      </feeditem>
    </searchresult>
  </searchresults>
</result>