Message Boards » Website Suggestions/Feedback

TOPIC: API

« Prev 1
« Prev 1
 
Ic_disabled_photos
Topic has been inactive for 30 days or more and images have been disabled.
Display All Images
April 17, 2012 1:57 PM
Where can I find information on the API for MFP?

I've remember reading in a forum thread an MFP employee stating that they had an open API but I can't find any indication of that on the website.
April 18, 2012 7:10 AM
Nobody? Maybe I should post on a different board?
April 23, 2012 8:43 AM
Hello - Sorry for any confusion but currently the MyFitnessPal API has not been publicly released.
April 23, 2012 2:44 PM
Okay thanks, was sure I read that on these forums somewhere. Any word on when/if it will be?
April 27, 2012 8:55 PM
Nothing as of right now but we will let every know if we do.
May 20, 2012 7:18 AM
Hi,

I'd also like to use the food database to build an application to track allergy symptoms against foods. A public API would be really great.

Thanks,
Sam
May 22, 2012 8:15 AM
Agreed, an API would be fantastic. I'd love to embed a little competitive visuals into my website, just for starters!
May 22, 2012 8:18 AM
+1
May 22, 2012 8:42 AM
+1
May 28, 2012 5:01 PM
+1
May 29, 2012 1:08 AM
+1
Edited by 50lan On May 29, 2012 1:09 AM
May 29, 2012 7:09 PM
+1
June 5, 2012 11:42 PM
+1!
June 6, 2012 1:18 PM
Just the ability to:
1) Post weight
2) Pull reports (weight, calories, carbs, etc.) would be huge (and very simple to develop).

#1 Would allow me to have my WiThings scale automatically send info to MFP.
#2 Would allow me to run reports on my progress. Frankly, I'm hesitant now to put all of my valuable data into something I'll never be able to retrieve it from. At minimum let us download the data we've put in (via spreadsheet or something).

You've already put #1 in place for FitBit (http://www.fitbit.com/start). Limiting access to only people that have purchased FitBit products is kinda not cool. Also not smart for your company's longevity...think being a platform that services can link into and share data with (facebook, google apps, foursqaure, xboxlive, etc.), not a closed, standalone service (myspace, gowalla).
Edited by ShakyPants On June 6, 2012 1:21 PM
July 5, 2012 2:21 PM
+1000000
July 6, 2012 7:23 PM
Thanks for the all input and +1 - We see that is a very popular request!
July 13, 2012 8:57 AM
I agree, an API for this would be outstanding! Keep us posted :-)
  24428318
July 15, 2012 2:24 PM
Yes please!! I have a great app idea that would directly benefit and strengthen the community at MFP!
  6556578
July 26, 2012 4:03 AM
You should certainly make the API public. MyFitnessPal has been instrumental in my weight loss in the past, and now that I'm writing my own app to mash up all my health & fitness data, I would hate to leave MFP for a competitor tool with a more open approach to sharing data.

Don't let your users-developers go!!! Make the API public, please :)
July 26, 2012 7:53 AM
I would like this just to make addition of recipes easier. I have a few sites that I use a lot and I'd love to be able to automatically parse their recipe and use the MFP database to create an MFP recipe.
August 2, 2012 12:01 PM
smokin I too wish to use the api to aggregate data collected about myself and my wife and use it various ways that will only draw more traffic to the myfitnesspal community.

+1

For those that can't wait for an API I might suggest you try using get-http commands in your various languages and then parsing the HTML fields to get the data you want. Sure it's a pain, and it's also often overlooked by developers that are REALLY desperate for the information, plus it's fun to build a parser for random HTML data, until they add a new field or they use dynamic resizing ads lol :)

Don't message me looking for example because I haven't done any for MFP .. yet .. I may though and if I do I'll make sure to bookmark this thread to come back to :P

harvesting the data with a http-get shouldn't violate any terms of use policies if used in context of the user wihch it has to be to have the correct data to harvest.... so I don't see any problems here. The dev can comment on the idea perhaps? It's a good way to tide those developers over before they lose interest :)

Rob
August 6, 2012 5:23 PM
+1
August 25, 2012 3:26 PM
+1
  13678396
August 26, 2012 6:13 AM
QUOTE:

Yes please!! I have a great app idea that would directly benefit and strengthen the community at MFP!


Me too! I hope yours isn't the same as mine. Ha.

Come on, guys, open up that API already!
August 28, 2012 3:53 PM
If you view page source on the reports section of the website, you will find the URLs where the charts get their data from. It's prettymuch a basic REST API. That being said, I'm sure it's subject to change without notice since it is not a public API. In all cases, the last number is the number of days of history you want to pull. Write a parser for the XML, and you've at least got access to your data.

Progress
Weight: http://www.myfitnesspal.com/reports/results/progress/1/7
Weight: http://www.myfitnesspal.com/reports/results/progress/2/7
Neck: http://www.myfitnesspal.com/reports/results/progress/3/7
Hips: http://www.myfitnesspal.com/reports/results/progress/4/7

Fitness:
http://www.myfitnesspal.com/reports/results/fitness/Calories%20Burned/7
http://www.myfitnesspal.com/reports/results/fitness/Exercise%20Minutes/7

Nutrition:
http://www.myfitnesspal.com/reports/results/nutrition/Calories/7
http://www.myfitnesspal.com/reports/results/nutrition/Net%20Calories/7
http://www.myfitnesspal.com/reports/results/nutrition/Carbs/7
http://www.myfitnesspal.com/reports/results/nutrition/Fat/7
http://www.myfitnesspal.com/reports/results/nutrition/Protein/7
http://www.myfitnesspal.com/reports/results/nutrition/Saturated%20Fat/7
http://www.myfitnesspal.com/reports/results/nutrition/Polyunsaturated%20Fat/7
http://www.myfitnesspal.com/reports/results/nutrition/Monounsaturated%20Fat/7
http://www.myfitnesspal.com/reports/results/nutrition/Trans%20Fat/7
http://www.myfitnesspal.com/reports/results/nutrition/Cholesterol/7
http://www.myfitnesspal.com/reports/results/nutrition/Sodium/7
http://www.myfitnesspal.com/reports/results/nutrition/Potassium/7
http://www.myfitnesspal.com/reports/results/nutrition/Fiber/7
http://www.myfitnesspal.com/reports/results/nutrition/Sugar/7
http://www.myfitnesspal.com/reports/results/nutrition/Vitamin%20A/7
http://www.myfitnesspal.com/reports/results/nutrition/Vitamin%20C/7
http://www.myfitnesspal.com/reports/results/nutrition/Iron/7
http://www.myfitnesspal.com/reports/results/nutrition/Calcium/7

Reply

Message Boards » Website Suggestions/Feedback

Posts by members, moderators and admins should not be considered medical advice and no guarantee is made against accuracy.