Allrecipes Advanced Scraper avatar
Allrecipes Advanced Scraper
Try for free

3 days trial then $25.00/month - No credit card required now

View all Actors
Allrecipes Advanced Scraper

Allrecipes Advanced Scraper

epctex/allrecipes-advanced-scraper
Try for free

3 days trial then $25.00/month - No credit card required now

Advanced scraping on Allrecipes for data on millions of recipes, articles, galleries, and many more. Crawl Recipes and extract descriptions, images, steps, ingredients, nutrition, and all other properties. You can specify search terms, filters, mappings, and much more.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "search": "cucumber",
8  "startUrls": [
9    "https://www.allrecipes.com/cook/onewholesomemeal",
10    "https://www.allrecipes.com/cook/foodwisheswithchefjohn/collection/bookmarks_5e9f2dfb-c75b-8640-f3ff-7897a9ed3897",
11    "https://www.allrecipes.com/search/results/?search=cucumber",
12    "https://www.allrecipes.com/gallery/butter-rich-recipes/",
13    "https://www.allrecipes.com/author/melanie-fincher/",
14    "https://www.allrecipes.com/article/how-to-clean-air-fryer/",
15    "https://www.allrecipes.com/recipe/261911/chef-johns-croissants/"
16  ],
17  "maxItems": 20,
18  "endPage": 1,
19  "extendOutputFunction": "($) => { return {} }",
20  "customMapFunction": "(object) => { return {...object} }",
21  "proxy": {
22    "useApifyProxy": true
23  }
24}
25EOF
26
27# Run the Actor using an HTTP API
28# See the full API reference at https://docs.apify.com/api/v2
29curl "https://api.apify.com/v2/acts/epctex~allrecipes-advanced-scraper/runs?token=$API_TOKEN" \
30  -X POST \
31  -d @input.json \
32  -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
  • 3 monthly users
  • 1 star
  • 100.0% runs succeeded
  • Created in May 2022
  • Modified about 23 hours ago
Categories