# AllRecipes Ingredient, Nutrition & Diet Tag Extractor (`vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag`) Actor

Search AllRecipes by keyword, cuisine, meal type, and diet, browse a category page, or fetch specific recipe URLs. Returns ingredients, instructions, nutrition, ratings, and dietary tags.

- **URL**: https://apify.com/vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Automation, Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AllRecipes Ingredient, Nutrition & Diet Tag Extractor

Pull full recipe data from [AllRecipes.com](https://www.allrecipes.com), a recipe site with over 100,000 tested and reviewed recipes. Search by keyword with cuisine, meal-type, and diet filters, browse a category page, or fetch specific recipe URLs directly — and get ingredients, instructions, nutrition, and ratings for each one.

### What this actor does

- Searches AllRecipes by keyword, with optional cuisine, meal-type, and dietary filters, sorted by relevance, rating, newest, or quickest.
- Browses any of 14 preset AllRecipes category pages (desserts, main dish, breakfast, and more).
- Fetches specific recipe pages directly by URL.
- Detects dietary labels (e.g. vegetarian, vegan) from each recipe's own keywords and categories.
- Empty fields are omitted from records — a recipe with no listed calories or author simply won't carry that key.

### Output per recipe

- `title` — recipe name
- `url`, `sourceUrl` — the recipe page link
- `description` — recipe summary
- `imageUrl` — featured photo
- `rating`, `ratingCount`, `reviewCount` — average star rating and how many ratings/reviews it's based on
- `prepTime`, `cookTime`, `totalTime` — as published on the recipe
- `servings` — yield, e.g. `8 servings`
- `calories` — calories per serving, when nutrition data is published
- `ingredients[]` — full ingredient list as written
- `instructions[]` — step-by-step instructions
- `author`, `authorUrl` — recipe author and their profile page
- `cuisine[]`, `mealType[]` — cuisine and meal-type tags from the recipe's own categorization
- `tags[]` — recipe keywords
- `dietaryInfo[]` — dietary labels (e.g. `Vegetarian`, `Vegan`) detected from the recipe's keywords and categories
- `recordType: "recipe"`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `byCategory`, or `byUrl`. |
| `searchQuery` | string | `pasta` | Keyword to search for (mode `search`). |
| `cuisine` | string | – | Filter by cuisine: `italian`, `mexican`, `chinese`, `japanese`, `indian`, `french`, `greek`, `thai`, `mediterranean`, `american`, `korean`, `middle-eastern`, `spanish`, `vietnamese`, `german`, or `british`. |
| `mealType` | string | – | Filter by meal: `breakfast`, `lunch`, `dinner`, `dessert`, `appetizer`, `snack`, `drink`, `soup`, `salad`, or `side-dish`. |
| `diet` | string | – | Filter by dietary need: `vegetarian`, `vegan`, `gluten-free`, `dairy-free`, `keto`, `paleo`, `low-carb`, `nut-free`, or `low-sodium`. |
| `sortBy` | string | `relevance` | `relevance`, `rating`, `newest`, or `quick` (mode `search`). |
| `category` | string | – | One of 14 preset AllRecipes category paths, e.g. `recipes/79/desserts` (mode `byCategory`). |
| `recipeUrls` | array | `[]` | Specific recipe URLs to fetch (mode `byUrl`). |
| `minRating` | integer | – | Keep only recipes rated at least this high (1–5). |
| `maxItems` | integer | `10` | Maximum recipes to return (1–500). |

#### Example: Italian dinner recipes, highest rated first

```json
{
  "mode": "search",
  "searchQuery": "pasta",
  "cuisine": "italian",
  "mealType": "dinner",
  "sortBy": "rating",
  "maxItems": 20
}
```

#### Example: browse the desserts category

```json
{
  "mode": "byCategory",
  "category": "recipes/79/desserts",
  "maxItems": 20
}
```

#### Example: fetch a specific recipe

```json
{
  "mode": "byUrl",
  "recipeUrls": [
    "https://www.allrecipes.com/recipe/11691/classic-spaghetti-sauce-for-spaghetti/"
  ]
}
```

### Use cases

- **Recipe apps and meal planners** importing structured ingredients and instructions for a given cuisine or diet.
- **Nutrition databases** collecting calorie counts across a category or search term.
- **Culinary content research** studying which recipes rate highest for a cuisine or meal type.
- **Diet-specific collections** pulling only recipes tagged with a target `diet` filter, e.g. keto or gluten-free.
- **Recommendation engines** feeding cuisine, meal-type, and tag data into a content-matching model.

### FAQ

**Does this need an AllRecipes account or API key?**
No. AllRecipes' recipe pages are publicly accessible without login.

**How many recipes can I get per run?**
Up to 500, set via `maxItems`. For broader coverage across AllRecipes' 100,000+ recipes, run the actor again with different search terms or categories.

**Can I combine cuisine, meal type, and diet filters?**
Yes — `cuisine`, `mealType`, and `diet` all apply together in `search` mode to narrow results to recipes matching all three.

**Where does `dietaryInfo` come from?**
It's inferred from the recipe's own keywords, cuisine, and category tags — AllRecipes doesn't always publish an explicit diet label, so this field is only included when a recognizable dietary term appears in that data.

**Why is `calories` sometimes missing?**
Not every recipe on AllRecipes publishes a nutrition panel; when it's absent, the field is left out rather than estimated.

**What's the difference between `byCategory` and `search`?**
`byCategory` returns everything in one of 14 preset category pages with no keyword needed; `search` matches your `searchQuery` text, optionally narrowed by cuisine, meal type, and diet.

**Is this affiliated with AllRecipes?**
No. This is an independent third-party actor and is not affiliated with AllRecipes.

# Actor input Schema

## `mode` (type: `string`):

How to find recipes: search by keyword, browse by category, or scrape specific recipe URLs.

## `searchQuery` (type: `string`):

Recipe search keyword (e.g. pasta, chicken tikka masala, vegan brownies). Required for mode=search.

## `cuisine` (type: `string`):

Filter by cuisine type (works with search mode).

## `mealType` (type: `string`):

Filter by meal type.

## `diet` (type: `string`):

Filter by dietary requirement.

## `sortBy` (type: `string`):

Result ordering for search mode.

## `category` (type: `string`):

AllRecipes category path, e.g. `recipes/76/appetizers-and-snacks` or `recipes/17562/dinner`. Used only in byCategory mode.

## `recipeUrls` (type: `array`):

List of specific AllRecipes recipe URLs to scrape. Used only in byUrl mode.

## `minRating` (type: `integer`):

Only include recipes with rating at or above this value (1–5).

## `maxItems` (type: `integer`):

Maximum number of recipes to return.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "pasta",
  "sortBy": "relevance",
  "recipeUrls": [],
  "maxItems": 10
}
```

# Actor output Schema

## `recipes` (type: `string`):

Dataset containing all scraped recipe records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "pasta",
    "sortBy": "relevance",
    "recipeUrls": [],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "pasta",
    "sortBy": "relevance",
    "recipeUrls": [],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "pasta",
  "sortBy": "relevance",
  "recipeUrls": [],
  "maxItems": 10
}' |
apify call vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/allrecipes-ingredient-nutrition-and-diet-tag"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cqioRQciQzmdCAOsJ/builds/w8MuSp4ELmM0nURAN/openapi.json
