# Sally’s Baking Scraper (`thescrapelab/sallys-baking-scraper`) Actor

Search Sally’s Baking and extract recipe data, ingredients, instructions, notes, ratings, comments and replies, dates and media links. Follow recipe-index pages or supply URLs. JSON, CSV and Excel. $1.79 per 1,000 recipes plus $0.005 per start.

- **URL**: https://apify.com/thescrapelab/sallys-baking-scraper.md
- **Developed by:** [Inus Grobler](https://apify.com/thescrapelab) (community)
- **Categories:** Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.79 / 1,000 recipe scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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

## Sally’s Baking Scraper

Find Sally’s Baking recipes by keyword, collect them from the recipe index or a category, or supply your own recipe URLs. Export ingredients, instructions, ingredient groups, make-ahead notes, timings, yields, ratings, public comments and replies as JSON, CSV or Excel.

**Start with 10 recipes for $0.02290**, including one Actor start. Three main inputs are all you need; no proxy configuration or additional service subscription is required.

### Why use this scraper for baking recipes?

- **Find recipes without preparing a URL list.** Search by a keyword such as `chocolate` or follow the recipe index and its pagination.
- **Keep the recipe’s structure.** Ingredient groups, ordered instructions and the recipe card’s notes remain separate fields. Amounts and alternatives stay as written.
- **Preserve useful baking details.** Total time can include chilling and resting. A yield such as “16 XL cookies or 20 medium/large cookies” stays intact instead of becoming an invented serving count.
- **Combine sources without duplicate rows.** Search and supplied URLs share one maximum. Repeated URLs do not create additional recipe rows in the same run.

### Use cases

| Workflow | What to collect |
| --- | --- |
| Recipe app or catalogue | Ingredients, instructions, groups, notes and the original source URL for attribution. |
| Baking research | Keyword results with recipe yields, prep/cook/total minutes and published ratings. |
| Catalogue refresh | Revisit a saved list of recipe URLs and compare the new records with your own stored copy. Deduplication applies within each run. |

Use this Actor when your project focuses on Sally’s Baking and needs search or index discovery alongside recipe details. For a project spanning other publishers, choose a scraper that supports those sources.

### What you can collect

- Ingredients with the source’s US and metric amounts, alternatives and preparation notes.
- Ingredient groups such as cake and buttercream, ordered instructions and recipe notes.
- Preparation, cooking and total times, with original durations and numeric minutes.
- Recipe descriptions, publication and update dates, keywords, cooking method and article categories when published.
- Public comments, rated reviews and staff replies with source IDs, dates, ratings and parent-comment IDs.
- Article tips and FAQs as source text sections, plus image and video links. Media files are not downloaded.
- Descriptive yields, source author, category, cuisine, image URL and collection timestamp.
- Aggregate rating and review count when published, plus nutrition and its serving basis when supplied.

Nutrition varies by recipe: missing information stays null. This Actor does not calculate nutrition or infer servings from cookie or loaf yields.

### Quick start

1. Click **Try for free** and enter a recipe or ingredient keyword, such as `chocolate`.
2. Optionally add Sally’s Baking recipe, recipe-index or category URLs. Clear the search field for URLs only.
3. Choose **Maximum recipes**, then click **Start**.
4. Open **Output** to preview results. Use JSON for complete nested records, Recipes CSV/Excel for recipe details, or Comments CSV/Excel for one comment per row.

### Input

| Input | How to use it |
| --- | --- |
| `searchQuery` | Recipe or ingredient keywords, up to 200 characters. The Console example uses `chocolate`. Clear it for URLs only. |
| `startUrls` | Up to 1,000 recipe, recipe-index, category or public search URLs on `sallysbakingaddiction.com`. Optional when searching. |
| `maxItems` | Maximum unique recipes across all inputs: 1–1,000; default 10. Source availability can produce fewer. |
| `maxCommentsPerRecipe` | Optional, in **Optional comments and reviews**: default 20; 0–500. Counts comments, rated reviews and replies together. Set 0 for recipe details only. |

```json
{
  "searchQuery": "chocolate",
  "startUrls": [],
  "maxItems": 10
}
```

For a specific recipe:

```json
{
  "searchQuery": "",
  "startUrls": [{"url": "https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"}],
  "maxItems": 1
}
```

Use `https://sallysbakingaddiction.com/recipe-index/` to discover recipes across the index. Public site search URLs are supported too. If search and URLs are both supplied, their results are combined and deduplicated under one maximum. A direct recipe URL returns that recipe without following recommendations. Search follows the website’s own results and is not a title-only filter.

For a catalogue collection, clear `searchQuery`, add the recipe-index URL to `startUrls`, and increase `maxItems` together with your spending limit. For example, 100 delivered recipes plus one start costs $0.184, so use a limit of at least $0.19. Collection stops at the maximum, source exhaustion or the spending limit, whichever comes first.

### Output

One row represents one recipe. This excerpt shows fields from the Chewy Chocolate Chip Cookies recipe; complete rows also contain ingredients, groups, instructions, notes, author and media information.

```json
{
  "url": "https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/",
  "recipeId": "https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/#recipe",
  "title": "Chewy Chocolate Chip Cookies",
  "prepTime": "PT15M",
  "cookTime": "PT13M",
  "totalTime": "PT2H45M",
  "prepMinutes": 15,
  "cookMinutes": 13,
  "totalMinutes": 165,
  "yieldText": "16 XL cookies or 20 medium/large cookies",
  "nutrition": null
}
```

| Field | Meaning |
| --- | --- |
| `url`, `recipeId` | Original recipe URL and source recipe identifier. |
| `ingredients`, `instructions`, `notes` | Ordered arrays of source text. |
| `ingredientGroups` | Group names with their ingredient entries. Ungrouped entries have a null group name. |
| `prepTime`, `cookTime`, `totalTime` | Source ISO durations; their `*Minutes` counterparts are normalized numbers. Total time can include chilling or resting. |
| `yieldText` | Original descriptive yield, including size alternatives and ranges. |
| `rating`, `reviewCount` | Aggregate recipe rating and review count, not discussion-comment count. |
| `nutrition` | Published nutrient strings, units and serving basis; null when absent. |
| `imageUrl`, `imageUrls`, `videos` | Main image, additional article images and published video metadata/links. No media files are downloaded. |
| `description`, `datePublished`, `dateModified`, `keywords`, `cookingMethod` | Source recipe and article metadata; missing values remain null or empty arrays. |
| `articleSections` | Source headings and text for article tips, explanations and FAQs outside the recipe card. |
| `commentCount` | Published total discussion-comment count, distinct from aggregate `reviewCount` and the collected array length. |
| `comments` | Public comments, rated reviews and replies. Each includes ID, source permalink, author, date, text, rating when supplied, parent ID and staff marker. |
| `commentsStatus`, `commentsPages`, `commentsNextPageUrl` | Whether bounded comment collection completed, reached its limit, was partial or was not requested; number of pages and an older-page link when available. |
| `scrapedAt` | UTC collection timestamp. |

The dataset has five preview views: **Recipes**, **Baking details**, **Times and ratings**, **Comments and reviews**, and **Source details and media**. JSON preserves nested ingredient groups, comments and nutrient objects; CSV and Excel provide separate recipe and comment exports. Select the fields you need in Apify’s export dialog. The JSON link returns complete nested records. **Recipes (CSV/Excel)** exports recipe details without the nested comment array. **Comments (CSV/Excel)** exports one collected comment per row with its `recipeId` and recipe title, plus the comment permalink and source fields, preserving large comment collections without exceeding spreadsheet column limits. These links are independent of the selected preview.

### Pricing

**$1.79 per 1,000 recipes plus $0.005 per Actor start.** Platform usage is included; no separate proxy or AI subscription is required.

| Delivered recipes | Result fees + one start |
| --- | --- |
| 1 | $0.00679 |
| 10 | $0.02290 |
| 100 | $0.18400 |
| 1,000 | $1.79500 |

Collected comments and replies are included in the recipe price; there is no separate comment charge. One recipe with 20 comments is still one billed recipe. Higher comment limits take longer because more source pages may be needed.

The start fee applies to empty and failed runs too, and another start is charged if a run is resurrected. Result fees apply only to valid unique rows delivered. Set your maximum recipes and spending limit before starting. The Actor stops when the remaining allowance cannot cover another recipe. The live Pricing tab is authoritative.

### Python API example

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/sallys-baking-scraper").call(
    run_input={"searchQuery": "chocolate", "startUrls": [], "maxItems": 10},
    max_total_charge_usd=0.05,
)
if run is None or run["status"] != "SUCCEEDED":
    raise RuntimeError("Recipe collection did not finish successfully")
summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("RUN_SUMMARY")
if summary and summary["value"]["status"] == "PARTIAL":
    print("Partial collection:", summary["value"]["stopReason"])
for recipe in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(recipe["title"], recipe["url"], recipe["yieldText"])
```

For an automation workflow, start the Actor through Apify’s API, wait for completion, then retrieve its `defaultDatasetId`. Use `url` and `recipeId` to join the results to your own catalogue. Check `RUN_SUMMARY` before treating a collection as complete, including when the platform run status is `SUCCEEDED`.

### Limits and troubleshooting

- Only public HTTPS pages on `sallysbakingaddiction.com` are supported. Recipe-index, category and public search pagination are supported. Accounts, internal endpoints and other websites are outside this release.
- The maximum is 1,000 recipes per run, subject to source availability. Index/search results include advice and roundups, which are skipped unless they contain a valid recipe card. A maximum is a ceiling, not a guaranteed count.
- Empty searches return no recipe rows and an `EMPTY` run summary. Source errors, skipped pages and incomplete collection are described in the run summary linked from Output. A run with no recoverable source results fails clearly.
- A page containing multiple distinct Recipe identities remains unsupported and is reported rather than merged. Nested ingredient groups and paragraph instructions within one recipe card are supported.
- Comments are collected from the newest displayed page first, then older pages as needed. Replies count toward the per-recipe limit; `parentId` preserves thread relationships. Complete discussion histories above the 500-comment maximum are outside this release.
- Check `commentsStatus`: `COMPLETE` means no older page remained, `LIMIT_REACHED` means the requested cap was reached, `PARTIAL` means pagination or a source request stopped, and `NOT_REQUESTED` means the limit was zero. An older-page link can be null when the limit cut off within the current page.
- Per-recipe comment collection stops after at most 25 pages; a global request cap and your spending limit also apply. Partial comment errors are recorded in Run summary. Article sections preserve source text rather than generating summaries or inferring dietary claims.
- Source availability and site changes can affect collection. No paid proxy is enabled automatically. Retry temporary failures; report persistent issues through this Actor’s **Issues** tab with a public example URL and run ID.
- This Actor is independently maintained and is not affiliated with Sally’s Baking. Use collected content within the source permission and usage rights applicable to your project.

**Why are there fewer recipes than requested?** The maximum is a ceiling. A search can have fewer matches, non-recipe pages are skipped, and a spending limit can stop collection early. Open **Run summary** for the stop reason and skipped-page errors.

**Why do prep and cook time not add up to total time?** Chilling, resting and other waiting periods may be included in the source’s total time. All three durations are preserved independently.

**Why is nutrition null?** Some recipes do not publish nutrition. Missing values are returned as null rather than estimated.

### Collect more comments and reviews

Use the optional comment limit with a recipe URL:

```json
{
  "searchQuery": "",
  "startUrls": [{"url": "https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/"}],
  "maxItems": 1,
  "maxCommentsPerRecipe": 100
}
```

The `comments` array includes both discussion comments and rated reviews; a non-null `rating` identifies a published star rating. Staff replies are included with `isStaff` and their original `parentId`. The source's total ratings, total discussion count and the number returned in your bounded collection are different measures.

For category collection, use a source URL such as `https://sallysbakingaddiction.com/category/desserts/cookies/` in `startUrls`. The same global recipe maximum and within-run deduplication apply.

**Which export preserves exact comment text?** Use JSON or the flat Comments CSV download for full Unicode text, including emoji. Apify’s native XLSX conversion can remove some emoji characters. The Excel download retains the comment rows and source links; opening the UTF-8 CSV in Excel preserves the complete text.

# Actor input Schema

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

Search Sally’s Baking by recipe or ingredient keywords. Clear this for URLs only. Both inputs are combined when supplied.

## `startUrls` (type: `array`):

Recipe URLs, the recipe index, category pages or public search URLs on Sally’s Baking. Clear Search recipes for URLs only. Direct recipes do not follow recommendations.

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

Maximum unique recipes across all inputs (default 10). Source availability and your spending limit can return fewer. 10 recipes plus one start costs $0.02290; 100 costs $0.18400.

## `maxCommentsPerRecipe` (type: `integer`):

Include public comments, rated reviews and staff replies, newest page first. Default 20; choose 0 for recipes only or up to 500. Replies count toward this limit. Older pages are followed as needed; commentsStatus reports limits or partial collection. Included in the recipe price.

## Actor input object example

```json
{
  "searchQuery": "chocolate",
  "startUrls": [],
  "maxItems": 10,
  "maxCommentsPerRecipe": 20
}
```

# Actor output Schema

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

Full recipe records including ingredient groups, instructions and notes.

## `summary` (type: `string`):

Check status, stopReason and errors to distinguish complete, partial and empty collections.

## `csv` (type: `string`):

Recipe details and metadata without nested comments. Use the separate comment download for all collected comments.

## `excel` (type: `string`):

Recipe details and metadata without nested comments. Use the separate comment download for all collected comments. Native XLSX can remove some emoji; use JSON or UTF-8 CSV for exact Unicode text.

## `commentsCsv` (type: `string`):

One row per collected comment or review, with its recipeId and recipe title plus comment permalink and source fields. Preserves large comment collections without wide-column truncation.

## `commentsExcel` (type: `string`):

One row per collected comment or review, with its recipeId and recipe title plus comment permalink and source fields. Preserves large comment collections without wide-column truncation. Native XLSX can remove some emoji; use JSON or UTF-8 CSV for exact Unicode text.

# 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 = {
    "searchQuery": "chocolate",
    "startUrls": [],
    "maxItems": 10,
    "maxCommentsPerRecipe": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/sallys-baking-scraper").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 = {
    "searchQuery": "chocolate",
    "startUrls": [],
    "maxItems": 10,
    "maxCommentsPerRecipe": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/sallys-baking-scraper").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 '{
  "searchQuery": "chocolate",
  "startUrls": [],
  "maxItems": 10,
  "maxCommentsPerRecipe": 20
}' |
apify call thescrapelab/sallys-baking-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrapelab/sallys-baking-scraper"
        }
    }
}
```

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/2qMaDJ42su2wwjGOB/builds/s758DXLJxcswnejWa/openapi.json
