Myfitnesspal Nutrition Scraper
Pricing
Pay per usage
Myfitnesspal Nutrition Scraper
Myfitnesspal Nutrition Scraper. Extract structured data with automatic pagination, proxy rotation, and JSON/CSV export. Pay only for results.
Nutrition Data Scraper
What it does
Nutrition Data Scraper searches and extracts detailed food nutrition information from the Open Food Facts database, one of the largest open-source nutrition databases in the world. For any food item, it retrieves calories, protein, carbohydrates, fat, fiber content, and serving sizes. The actor processes data in paginated batches to handle large result sets efficiently and returns clean, standardized nutrition data.
Why use it
Access to comprehensive nutrition data is essential for dietitians, fitness app developers, meal planning services, food bloggers, health researchers, and anyone building nutrition-related applications. This actor eliminates the need for manual data entry or expensive commercial API subscriptions by leveraging the free Open Food Facts database. Get structured, machine-readable nutrition data that integrates seamlessly into your workflows, databases, or applications.
How it works
- The actor accepts a food search query and maximum result count.
- It queries the Open Food Facts search API with the provided search terms.
- Results are paginated automatically to collect up to the requested number of items.
- Nutrition values are extracted from the nutriments data, normalized to per-100g values.
- Each food item is pushed to the Apify dataset with standardized fields.
- Rate limiting is applied between API calls to respect server guidelines.
Input parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
searchQuery | string | "chicken breast" | Food item to search for |
maxResults | integer | 25 | Maximum number of results (1-200) |
Output fields
| Field | Type | Description |
|---|---|---|
foodName | string | Name of the food product |
calories | number | Calories per serving (kcal) |
protein | number | Protein content in grams |
carbs | number | Carbohydrate content in grams |
fat | number | Fat content in grams |
fiber | number | Fiber content in grams |
servingSize | string | Serving size description |
source | string | Data source (Open Food Facts) |
Cost estimate
The Open Food Facts API is completely free and open-source with no authentication required. The pay-per-event pricing is $0.00075 per result. Collecting 100 food items costs approximately $0.075. Memory usage is minimal at 512 MB default.
Tips
- Use specific food names for more accurate results (e.g., "greek yogurt" instead of just "yogurt").
- Nutrition values are typically per 100g serving unless otherwise noted in servingSize.
- The database contains products from around the world, so results may include international brands.
- For health and fitness data, check out Gym Finder Scraper and Yoga Studio Scraper.
