Read the Label with the CalorieKing API

John Musser, February 24th, 2009

CalorieKingCalorieKing has launched “a Web service which enables other developers of weight management applications to readily incorporate CalorieKing’s more than 65,000-item food database”. The CalorieKing database is the primary source of the well-known book “The CalorieKing Calorie, Fat and Carbohydrate Counter”. Initial API details at our new CalorieKing API profile.

calorieking

CalorieKing currently offers a complete search of the database at their site, along with software and subscription programs to help consumers monitor their intake. With the web service CalorieKing hopes to give “third-party developers and others a low-investment opportunity to include an externally managed database that is continuously and consistently improved, and which enjoys an excellent reputation for accuracy and quality.” They envision integration into new mobile and online applications.

Through their site you can search for any individual food, packaged meal, or chain restaurant offering. It was informative to use it and learn that a jumbo corn dog only satisfies 30% of my minimum daily saturated fat requirements, while the Fettucini Alfredo at the Olive Garden takes care of 128% of my daily cholesterol needs.

The web service offers two read methods – search for food using the same algorithm as on the web site (up to 30 matches at a time), and read the nutrient and serving information for any one food that’s returned by a search result. Here for example is part of the XML returned from a REST request for a Kids Chicken McNuggets Happy Meal:

caloriekingxml

And here is Original Crust pizza by the slice, the pie, the ounce, and the gram.

Much like the new Yahoo BOSS pricing model, the CalorieKing API offers a tiered pricing program to encourage experimentation. It starts out at free for up to 20,000 queries per month, then $500/mo for 100,000 queries, with many increments up to $5000/mo for 1 million queries. The CalorieKing estimate is that each user of a weight management program based on this data would on average generate 100 queries a month, which works out to a monthly cost estimated at $0.50 per user. All paid options include a service level agreement and priority email.

Step-by-step tutorials and examples are available for three environments: SOAP API optimized for .NET (Visual Basic and C# examples) and Java (JSP with NetBeans example), REST/XML service for any language with XML support, and ASP.NET data control library designed for ASP.NET 2.0 Web Forms.

Both comments and pings are currently closed.

5 Responses to “Read the Label with the CalorieKing API”

February 24th, 2009
at 11:15 am
Comment by: Blog: Programmable Web | Bscopes Feeds

[...] Blog: Programmable Web tagged with: web-2.0 Outils Post: http://blog.programmableweb.com/2009/02/24/read-the-label-with-the-calorieking-api/ [...]

May 1st, 2011
at 6:55 am
Comment by: james deleuze

all i want is a site to find the calorie count of food items without joining any program.

November 30th, 2011
at 9:42 am
Comment by: Bonbuenviaje

Will this program allow other websites for their API program?

December 8th, 2011
at 8:38 pm
Comment by: 5 mistakes

Your site is pretty cool to me and your topics are very relevant. I was browsing around and came across something you might find interesting. I was guilty of 3 of them with my sites. “99% of site managers are committing these 5 errors”. http://bit.ly/sNpfy8 You will be suprised how easy they are to fix.

September 19th, 2012
at 10:19 am
Comment by: Gonzalo

If you want to grow your experience simply keep visiting this web site and be updated with the hottest gossip posted here.

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.