Allrecipes Advanced Scraper avatar
Allrecipes Advanced Scraper
Try for free

3 days trial then $35.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 $35.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 mode

Node.js

Python

curl

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "search": "cucumber",
11    "startUrls": [
12        "https://www.allrecipes.com/cook/onewholesomemeal",
13        "https://www.allrecipes.com/cook/foodwisheswithchefjohn/collection/bookmarks_5e9f2dfb-c75b-8640-f3ff-7897a9ed3897",
14        "https://www.allrecipes.com/search/results/?search=cucumber",
15        "https://www.allrecipes.com/gallery/butter-rich-recipes/",
16        "https://www.allrecipes.com/author/melanie-fincher/",
17        "https://www.allrecipes.com/article/how-to-clean-air-fryer/",
18        "https://www.allrecipes.com/recipe/261911/chef-johns-croissants/"
19    ],
20    "maxItems": 20,
21    "endPage": 1,
22    "extendOutputFunction": ($) => { return {} },
23    "customMapFunction": (object) => { return {...object} },
24    "proxy": {
25        "useApifyProxy": true
26    }
27};
28
29(async () => {
30    // Run the Actor and wait for it to finish
31    const run = await client.actor("epctex/allrecipes-advanced-scraper").call(input);
32
33    // Fetch and print Actor results from the run's dataset (if any)
34    console.log('Results from dataset');
35    const { items } = await client.dataset(run.defaultDatasetId).listItems();
36    items.forEach((item) => {
37        console.dir(item);
38    });
39})();
Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 100.0% runs succeeded
  • Created in May 2022
  • Modified about 3 hours ago
Categories