Some Bits: Nelson's log

MyFitnessPal data exfiltration

I’m mad about the food tracking app MyFitnessPal for various reasons, it’s a badly designed product. But I’ve been a user of it for a long time and I’d like to get a copy of all the data I laboriously entered. They won’t give it to me.

MFP has a data export feature. But it requires you pay an eye-watering $20/mo to get access to it and it seems limited to exporting 90 days of data.

They have a basic report feature that will show you a graph of calories consumed by day for the last 90 days. That’s the main thing I care about although it’s nowhere near complete. Anyway that’s backed by an XHR for the URL https://www.myfitnesspal.com/api/services/reports/results/nutrition/Calories/90?report_name=Calories which gives you a simple JSON time series. Unfortunately changing that “90” to “365” or “180” results in a server error (after a long delay) so I don’t think you can trick it into giving you more data.

They also have a printable diary report type which gives you line items for every food item you’ve entered. There’s no limit in the UI on how long that report goes for, but the webapp seems to error out (after a long delay) if you get more than about a month of data. Perhaps scanning more than 500 rows in a database is too much Big Data for their system architecture. That data is coming from a POST XHR to https://www.myfitnesspal.com/api/services/diary/report and you can capture a detailed JSON response in browser developer tools. I was able to use this to tediously get my data a month at a time.

I couldn’t find an easy way to get the recipes, meals, etc I’d custom created for myself. I don’t really use those features much so I didn’t try very hard. There’s a lot of other data they collect too, it’d sure be nice to have a comprehensive “download all data” option for what is, essentially, a data recording app.