MyFitnessPal API
myfitnesspal.com
MyFitnessPal - food/calorie logging, weight tracking, nutrition goals, and friends.
- Actions
- 5
- Category
- Health
- Login
- Some actions
- Output
- JSON
Call the MyFitnessPal API
Submit a task, then poll the job until it settles. This example runs mfp_food_diary.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "mfp_food_diary",
"credential_id": "<your-credential-id>",
"params": {
"from_date": "",
"to_date": ""
}
}'5 actions on myfitnesspal.com
Read
Food Diary
mfp_food_diaryreadlogin required1 credit / callReturns the authenticated user's food and optional exercise diary for a date range.
- from_date
- string
- to_date
- string
- include_exercise
- boolean
- include_notes
- boolean
- username
- string
Friends List
mfp_friendsreadlogin required1 credit / callReturns the authenticated user's friends list with total count.
- sort
- string
Nutrition Goals
mfp_nutrition_goalsreadlogin required1 credit / callReturns the authenticated user's daily nutrition goals and display preferences.
Profile
mfp_profilereadlogin required1 credit / callReturns a public profile with age, sex, location, headline, and account preferences.
- username
- string
Progress
mfp_progressreadlogin required1 credit / callReturns measurement progress over a time window plus available measurement types.
- measurement_type
- string
- days
- integer
MyFitnessPal API questions
- Is there an API for MyFitnessPal?
- MyFitnessPal does not offer a public data API for this, but Anakin Wire provides 5 maintained endpoints for myfitnesspal.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape MyFitnessPal data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when myfitnesspal.com changes its markup, Anakin updates the action.
- Do I need a MyFitnessPal account?
- Some MyFitnessPal actions read data that is only visible when signed in, so those need a credential you connect once. Actions marked "read" without a login requirement run anonymously.
- What does the MyFitnessPal API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Health APIs
ACE Fitness
ACE Fitness - exercise library, articles, health calculators, and trainer search.
Amazon Pharmacy
Amazon Pharmacy - medication search, RxPass catalog, and detail pages with pricing.
America's Pharmacy
US pharmacy savings-card marketplace for searching drug prices, comparing local pharmacy discount costs, and retrieving printable coupons.
American Academy of Dermatology
American Academy of Dermatology - skin, hair, and nail conditions, treatments, and care guidance.
Aplaceformom.Com
Search senior living and care communities by location, compare care types, view pricing and amenities, and read community reviews on A Place for Mom.
Apollo 247
Apollo 247 India - medicine and wellness browsing, pricing, promotions, and pincode availability.