# Allrecipes API

> Allrecipes returns recipe search results and full recipe details as a workflow and API.

Search recipes finds recipes by dish or ingredients and returns ratings, photos, and cooking times; optionally set a maximum total time. Get recipe returns ingredients, directions, times, ratings, and nutrition from a recipe name or Allrecipes page link.

- Page: https://fous.com/workflows/allrecipes
- Handle: `@allrecipes`
- Category: [Food](https://fous.com/workflows/category/food)
- Source website: https://allrecipes.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Allrecipes.

## Methods

### Get recipe

Operation `get_recipe`, version 1. 1 credit per call.

Get a full Allrecipes recipe by its name or page link, including ingredients, directions, times, ratings and nutrition. Names select the most-rated close match.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `recipe` | string | yes | `"https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"` | Dish name or Allrecipes recipe page link, for example World's Best Lasagna or https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "recipe"
  ],
  "properties": {
    "recipe": {
      "type": "string",
      "description": "Dish name or Allrecipes recipe page link, for example World's Best Lasagna or https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/.",
      "examples": [
        "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/",
        "World's Best Lasagna",
        "blueberry muffins"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "recipe": "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"
    },
    {
      "recipe": "World's Best Lasagna"
    },
    {
      "recipe": "blueberry muffins"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `steps` | array |  | Directions numbered in recipe order. |
| `title` | string | `"World's Best Lasagna"` |  |
| `author` | string or null | `"John Chandler"` |  |
| `servings` | integer or null | `12` |  |
| `cook_time` | string or null | `"2 hrs 30 mins"` |  |
| `prep_time` | string or null | `"30 mins"` |  |
| `photo_link` | string or null | `"https://www.allrecipes.com/thmb/htylprTl3RuTsFquG9YtbU1pzy0=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/` |  |
| `total_time` | string or null | `"3 hrs 15 mins"` |  |
| `ingredients` | array |  |  |
| `recipe_link` | string | `"https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"` |  |
| `star_rating` | number or null | `4.8` |  |
| `cook_time_minutes` | integer or null | `150` |  |
| `number_of_ratings` | integer or null | `21007` |  |
| `prep_time_minutes` | integer or null | `30` |  |
| `short_description` | string or null | `"This lasagna recipe from John Chandler is our most popular recipe! With sausage, ground beef, basil, and 3 types of che` |  |
| `total_time_minutes` | integer or null | `195` |  |
| `nutrition_per_serving` | object |  |  |
| `nutrition_per_serving.fat_g` | number or null | `21` |  |
| `nutrition_per_serving.calories` | number or null | `448` |  |
| `nutrition_per_serving.protein_g` | number or null | `30` |  |
| `nutrition_per_serving.sodium_mg` | number or null | `1400` |  |
| `nutrition_per_serving.carbohydrates_g` | number or null | `37` |  |

**Example input**

```json
{
  "recipe": "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"
}
```

**Example output**

```json
{
  "steps": [
    "1. Gather all your ingredients.",
    "2. Cook sausage, ground beef, onion, and garlic in a Dutch oven over medium heat until well browned.",
    "3. Stir in crushed tomatoes, tomato sauce, tomato paste, and water. Season with sugar, 2 tablespoons parsley, basil, 1 teaspoon salt, Italian seasoning, fennel seeds, and pepper. Simmer, covered, for …"
  ],
  "title": "World's Best Lasagna",
  "author": "John Chandler",
  "servings": 12,
  "cook_time": "2 hrs 30 mins",
  "prep_time": "30 mins",
  "photo_link": "https://www.allrecipes.com/thmb/htylprTl3RuTsFquG9YtbU1pzy0=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/23600-worlds-best-lasagna-DDMFS-4x3-1196-24c5401652934ffb96d3d94bc9fbe2d7.jpg",
  "total_time": "3 hrs 15 mins",
  "ingredients": [
    "1 pound sweet Italian sausage",
    "¾ pound lean ground beef",
    "½ cup minced onion"
  ],
  "recipe_link": "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/",
  "star_rating": 4.8,
  "cook_time_minutes": 150,
  "number_of_ratings": 21007,
  "prep_time_minutes": 30,
  "short_description": "This lasagna recipe from John Chandler is our most popular recipe! With sausage, ground beef, basil, and 3 types of cheese, it lives up to its name!",
  "total_time_minutes": 195,
  "nutrition_per_serving": {
    "fat_g": 21,
    "calories": 448,
    "protein_g": 30,
    "sodium_mg": 1400,
    "carbohydrates_g": 37
  }
}
```

### Search recipes

Operation `search_recipes`, version 1. 1 credit per call.

Find Allrecipes recipes for a dish or ingredients, in search order, with ratings, photos and total cooking times. Optionally limit results to recipes ready within a chosen number of minutes.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `query` | string | yes | `"chicken broccoli casserole"` | Dish or ingredients to search for, for example chicken broccoli casserole. |
| `max_results` | integer | no | `3` | Maximum number of recipes to return, for example 20. Up to 50. |
| `max_total_minutes` | integer | no | `45` | Only include recipes ready within this many minutes, for example 60. Leave blank for no limit. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Dish or ingredients to search for, for example chicken broccoli casserole.",
      "examples": [
        "chicken broccoli casserole",
        "zxqv 938372 nonsense recipezz",
        "chicken broccoli"
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 50,
      "minimum": 1,
      "description": "Maximum number of recipes to return, for example 20. Up to 50.",
      "x-fous-developer": true,
      "examples": [
        3,
        5,
        4
      ]
    },
    "max_total_minutes": {
      "type": "integer",
      "minimum": 1,
      "description": "Only include recipes ready within this many minutes, for example 60. Leave blank for no limit.",
      "x-fous-developer": false,
      "examples": [
        45
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "query": "chicken broccoli casserole",
      "max_results": 3
    },
    {
      "query": "zxqv 938372 nonsense recipezz",
      "max_results": 5
    },
    {
      "query": "chicken broccoli",
      "max_results": 4,
      "max_total_minutes": 45
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `recipes` | array |  | Matching recipes in Allrecipes search order. |
| `recipes[].title` | string | `"Chicken, Broccoli, and Cheddar Casserole"` |  |
| `recipes[].photo_link` | string or null | `"https://www.allrecipes.com/thmb/XKXdLz5hsm4wyzsLg7jdhSW5IIs=/282x188/filters:no_upscale():max_bytes(150000):strip_icc()` |  |
| `recipes[].total_time` | string or null | `"50 mins"` | Total time as written on the recipe. |
| `recipes[].recipe_link` | string | `"https://www.allrecipes.com/recipe/279848/chicken-broccoli-and-cheddar-casserole/"` |  |
| `recipes[].star_rating` | number or null | `4.7` | Average rating out of five stars. |
| `recipes[].number_of_ratings` | integer | `131` |  |
| `recipes[].total_time_minutes` | integer or null | `50` |  |

**Example input**

```json
{
  "query": "chicken broccoli casserole",
  "max_results": 3
}
```

**Example output**

```json
{
  "recipes": [
    {
      "title": "Chicken, Broccoli, and Cheddar Casserole",
      "photo_link": "https://www.allrecipes.com/thmb/XKXdLz5hsm4wyzsLg7jdhSW5IIs=/282x188/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/9373618-ef00b5a5052346a3b9a671b067d04351.jpg",
      "total_time": "50 mins",
      "recipe_link": "https://www.allrecipes.com/recipe/279848/chicken-broccoli-and-cheddar-casserole/",
      "star_rating": 4.7,
      "number_of_ratings": 131,
      "total_time_minutes": 50
    },
    {
      "title": "Broccoli Chicken Casserole",
      "photo_link": "https://www.allrecipes.com/thmb/jmmvaAT8UFY8u7acw92K-OgMNAA=/282x188/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/8965-broccoli-chicken-casserole-i-DDMFS-4x3-7c100071a13c4226bae46ea…",
      "total_time": "50 mins",
      "recipe_link": "https://www.allrecipes.com/recipe/8965/broccoli-chicken-casserole-i/",
      "star_rating": 4.2,
      "number_of_ratings": 1062,
      "total_time_minutes": 50
    },
    {
      "title": "Curried Chicken and Broccoli Casserole",
      "photo_link": "https://www.allrecipes.com/thmb/QOTW1j1RtIIgqDw_Npta-FeyXRQ=/282x188/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/2161924-curried-chicken-and-broccoli-casserole-Rock_lobster-4x3-1-7…",
      "total_time": "1 hr",
      "recipe_link": "https://www.allrecipes.com/recipe/229036/curried-chicken-and-broccoli-casserole/",
      "star_rating": 4.2,
      "number_of_ratings": 131,
      "total_time_minutes": 60
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@allrecipes",
  "visibility": "public",
  "operation": "get_recipe",
  "version": 1,
  "input": {
    "recipe": "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@allrecipes\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_recipe\",\n  \"version\": 1,\n  \"input\": {\n    \"recipe\": \"https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@allrecipes",
  "visibility": "public",
  "operation": "get_recipe",
  "version": 1,
  "input": {
    "recipe": "https://www.allrecipes.com/recipe/23600/worlds-best-lasagna/"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@allrecipes","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Find recipes using ingredients on hand
- Compare recipe ratings and cooking times
- Get ingredients and directions for a recipe
- Review nutrition details per serving

## FAQ

### Is Fous affiliated with Allrecipes?

No. Fous is not affiliated with Allrecipes. This workflow reads the public allrecipes.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Allrecipes account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from allrecipes.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 29, 2026.

### Which recipes match a dish or ingredients?

Search recipes finds matches from a dish or ingredients query and returns ratings, photos, and cooking times.

### How long does a recipe take?

Search recipes returns total cooking times; Get recipe returns preparation, cooking, and total times for a selected recipe.

### What ingredients and nutrition does a recipe have?

Get recipe returns ingredients and nutrition per serving for a recipe name or Allrecipes page link.

## Related

- [Food Network API](https://fous.com/workflows/food-network.md): Food Network offers recipes, cooking shows, and food inspiration, with searchable recipes and ingredient, direction, rating, and cooking-time details when available.
- [Serious Eats API](https://fous.com/workflows/serious-eats.md): Serious Eats offers recipes, cooking techniques, and food guides, with available ingredients, directions, timing, ratings, and nutrition; some details may be absent.
- [BBC Good Food API](https://fous.com/workflows/bbc-good-food.md): BBC Good Food returns searchable web recipes, excluding app-only recipes, and full recipe ingredients, steps, and per-serving nutrition when available.
- [Open Food Facts API](https://fous.com/workflows/open-food-facts.md): Open Food Facts provides public packaged-food information, including ingredients, allergens, nutrition, and product classifications; coverage varies, and search results favor popular products.
- [DoorDash API](https://fous.com/workflows/doordash.md): DoorDash lists nearby restaurants and menus, prices, ratings, delivery fees, and estimated times; offers, availability, fees, and times can change.
- [McDonald's API](https://fous.com/workflows/mcdonalds.md): McDonald’s provides menu-item food information for US, UK and Canadian items, plus nearby US restaurants and listed hours today, which may miss unexpected closures.
- [Goodreads API](https://fous.com/workflows/goodreads.md): Goodreads returns public book searches, matched-book details with variable editions, popular or newest reviews, author books by popularity or date, and up to 100 quotes.
- [Starbucks API](https://fous.com/workflows/starbucks.md): Starbucks provides menu drinks and food with nutrition, ingredients, allergens, and photos, plus nearby cafés ranked by distance with current open status, local hours, and amenities.
- [All Food workflows](https://fous.com/workflows/category/food)
