Your VelvetLadle app now supports multiple web scraping APIs for better recipe extraction!
- Purpose: Recipe-specific extraction and search
- Benefits: AI-powered recipe parsing, nutrition data, cooking times
- Cost: Free tier: 150 requests/day, Paid: $0.008/request
- Setup: Get API key from spoonacular.com/food-api
- Purpose: Handles JavaScript rendering, CAPTCHA, anti-bot measures
- Benefits: Premium proxies, 99.9% success rate, fast
- Cost: Free tier: 1,000 requests/month, Paid: starts at $29/month
- Setup: Get API key from scrapingbee.com
- Purpose: Basic web scraping without JavaScript
- Benefits: Free, simple
- Limitations: CORS restrictions, no JavaScript rendering
- Spoonacular: Sign up at spoonacular.com
- ScrapingBee: Sign up at scrapingbee.com
- Copy
.env.exampleto.env.local:
cp .env.example .env.local- Add your API keys to
.env.local:
EXPO_PUBLIC_SPOONACULAR_KEY=your_actual_spoonacular_key
EXPO_PUBLIC_SCRAPINGBEE_KEY=your_actual_scrapingbee_keyThe app will automatically use APIs when available, falling back to CORS proxy if not configured.
Your app now extracts recipes in this order:
- 🥇 Spoonacular Recipe Extraction - Most reliable for recipe URLs
- 🥈 ScrapingBee + Your Parsing - Handles complex sites with JavaScript
- 🥉 CORS Proxy + Your Parsing - Original fallback method
- 🔧 Manual Entry - User can enter recipe manually
- ✅ Recipe-specific AI - Understands recipe formats
- ✅ Nutrition analysis - Automatic nutritional information
- ✅ Cooking times - Prep, cook, and total time extraction
- ✅ Ingredient parsing - Smart ingredient recognition
- ✅ Recipe search - Find recipes by ingredients/cuisine
- ✅ Image extraction - High-quality recipe photos
- ✅ JavaScript rendering - Handles dynamic content
- ✅ Anti-bot bypassing - Works on protected sites
- ✅ Premium proxies - Reliable access
- ✅ CAPTCHA solving - Automatic CAPTCHA handling
- ✅ Fast response - Optimized for speed
- Spoonacular: 150 requests/day (enough for personal use)
- ScrapingBee: 1,000 requests/month
- CORS Proxy: Unlimited (but limited functionality)
- Spoonacular: $0.008/request (~$2.40 for 300 recipes)
- ScrapingBee: $29/month (50,000 requests)
// The RecipeExtractor automatically uses APIs when available
const recipe = await RecipeExtractor.extractRecipeFromUrl(url);
// Direct API usage
const recipe = await WebScrapingAPIService.extractRecipeSpoonacular(url);
const html = await WebScrapingAPIService.extractWithScrapingBee(url);- Recipe sites with Spoonacular: ~95% success
- General sites with ScrapingBee: ~90% success
- CORS proxy method: ~60% success (due to CORS restrictions)
- AllRecipes.com, Food Network, Epicurious
- Any recipe-focused website
- When you need nutrition data
- Recipe search functionality
- Sites that block CORS requests
- JavaScript-heavy recipe sites
- Sites with anti-bot protection
- When CORS proxy fails
- Simple, static recipe sites
- When APIs are not configured
- As a final fallback
- Higher Success Rate - APIs handle more sites than CORS proxy
- Better Data Quality - AI-powered parsing extracts more complete recipes
- Faster Extraction - APIs are optimized for speed
- More Reliable - Less likely to be blocked or fail
- Additional Features - Nutrition data, recipe search, cooking times
Your VelvetLadle app is now equipped with professional-grade recipe extraction capabilities! 🍳✨