NYT Cooking Scraper

NYT Cooking Scraper

by harvest

Extract recipe data from NYT Cooking pages. Get ingredients, instructions, cooking time, servings, and nutrition facts for your apps or databases.

261 runs
18 users
Try This Actor

Opens on Apify.com

About NYT Cooking Scraper

Need to pull recipe data from NYT Cooking for a project? I've used this scraper to reliably extract structured data from their recipe pages. It grabs the essentials: recipe name, the full ingredient list, step-by-step instructions, and practical details like total cooking time and serving size. It even pulls the nutrition facts when they're available on the page. I find it super handy for a few specific things. If you're building a personal recipe database or a meal-planning app, this automates the tedious copy-pasting. Developers can use it to populate their own apps with high-quality recipe content. It's also great for food bloggers or researchers who need to analyze trends, compare recipes, or gather data in a clean, JSON format for further processing. You just feed it the URL of a New York Times Cooking recipe, and it handles the rest, parsing the page layout to get you the data you actually need without the clutter.

What does this actor do?

NYT Cooking Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

NYT Cooking Scraper

Overview

This Apify actor scrapes structured recipe data from New York Times Cooking recipe pages. It extracts the core details needed for cooking, automation, or data collection.

Key Features

  • Extracts the recipe title, author, and description.
  • Scrapes the full ingredient list and step-by-step preparation instructions.
  • Captures metadata: cooking time, number of servings, and difficulty level.
  • Retrieves nutrition facts when available on the page.
  • Outputs all data in a structured JSON format.

How to Use

Run the actor with a single NYT Cooking recipe URL. It will process the page and return the scraped data.

Input/Output

Input:
Provide a JSON object with the target recipe URL.

{
  "url": "https://cooking.nytimes.com/recipes/1025701-crispy-gnocchi-with-spinach-and-feta"
}

Output:
The actor returns a detailed JSON object. Key fields include:
* id: The NYT recipe ID.
* Recipe metadata: title, description, author information (within contentAttribution), cookingTime, servings.
* ingredients: A list of ingredients.
* instructions: A list of preparation steps.
* image: An object containing multiple image URLs and credits.
* nutrition: Facts like calories, fat, and carbohydrates, if provided.

Example output snippet:

{
  "contentAttribution": {
    "primaryByline": {
      "prefix": "By",
      "authors": [{"name": "Hetty Lui McKinnon"}]
    }
  },
  "id": 1025701,
  "title": "Crispy Gnocchi with Spinach and Feta",
  "ingredients": [...],
  "instructions": [...],
  "image": {
    "credit": "Julia Gartland for The New York Times.",
    "src": {
      "card": "https://static01.nyt.com/images/...-mediumThreeByTwo440.jpg"
    }
  }
}

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try NYT Cooking Scraper now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
harvest
Pricing
Paid
Total Runs
261
Active Users
18
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support