MyFitnessPal icon

MyFitnessPal

Interact with MyFitnessPal API

Overview

This node integrates with the MyFitnessPal API to retrieve detailed information about a specific food item using its unique identifier. It is useful for users who want to access nutritional data or other details of foods tracked in MyFitnessPal, enabling workflows that require precise food information such as diet tracking, meal planning, or nutritional analysis.

For example, a user can input a Food Item ID to fetch comprehensive data about that food, which can then be used to log meals, analyze calorie intake, or integrate with other health and fitness applications.

Properties

Name Meaning
Food Item ID Unique identifier of the food item to retrieve

Output

The node outputs a JSON object containing detailed information about the requested food item. This typically includes nutritional values, serving sizes, brand information, and other metadata provided by the MyFitnessPal API for that food item.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the MyFitnessPal API.
  • The node needs an API authentication token configured in n8n credentials to authorize requests.
  • Network access to https://api.myfitnesspal.com is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Food Item ID will result in errors or empty responses.
    • Authentication failures if the API key/token is incorrect or expired.
    • Network connectivity problems may cause request timeouts or failures.
  • Error messages:

    • Errors returned from the API (e.g., "Food item not found") indicate invalid IDs or unavailable items.
    • Authentication errors suggest checking the API credential configuration.
  • Resolutions:

    • Verify the Food Item ID is correct and exists in MyFitnessPal.
    • Ensure the API authentication token is valid and has required permissions.
    • Check network connectivity and firewall settings.

Links and References

Discussion