# Budget Bytes Scraper (`thescrapelab/budget-bytes-scraper`) Actor

Search Budget Bytes recipes with published costs, ingredients, steps and nutrition. Include up to 20 reader comments, ratings and replies per recipe. Export JSON or CSV.

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

## Pricing

$0.50 / 1,000 recipes

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

## Budget Bytes Scraper

Scrape **Budget Bytes recipes with published recipe costs, cost per serving and ingredient costs**. Get structured ingredients, ordered instructions, servings, cooking times and nutrition by keyword or from recipe URLs, categories or post sitemaps. Optionally include up to 20 reader comments per recipe page, with individual ratings and replies. Download recipe, ingredient and comment CSVs or use the JSON datasets in your application.

This is an independent scraper. Costs are the publisher's historical estimates for ingredient quantities used, not current local grocery prices or full-package checkout totals.

### Use cases

- **Budget meal-planning apps:** import recipes with portions, ingredient quantities and the publisher's affordability estimates.
- **Food-affordability research:** collect source-attributed recipe and serving costs across recipe categories.
- **Recipe and grocery-list tools:** access structured ingredient amounts, units, notes and cooking steps without writing a site-specific parser.

### Why use this Budget Bytes scraper?

Recipe, serving and ingredient prices are collected from the displayed recipe content, including pages where the total appears in the page header. Serving-only prices remain serving-only: a missing recipe total stays null. Ingredient quantities preserve fractions and source wording.

Each recipe's displayed ingredients and instructions are checked against its structured data before delivery. Overlapping starting URLs are deduplicated by canonical URL and recipe-card identity. Every row includes its source URL, stable `recordKey` and retrieval timestamp.

When the publisher permanently moves a recipe to another Budget Bytes recipe URL, the Actor follows that move and exports the final recipe URL. The original URL and redirect chain remain in `RUN_SUMMARY`; overlapping old and new URLs produce one recipe. Temporary redirects and moves outside the supported site paths are rejected.

### Pricing

**$0.50 per 1,000 delivered recipes** ($0.0005 each), with no startup fee or Actor subscription. Up to 20 optional reader comments per recipe page are included at no additional charge. The same flat recipe price applies across Apify account tiers. One validated unique recipe saved to the default dataset is one billable result.

| Recipes delivered | Recipe charge |
| --- | --- |
| 10 | $0.005 |
| 100 | $0.05 |
| 1,000 | $0.50 |

Standard-run compute, storage and optional native datacenter fallback are included. Failed URLs, search/discovery pages and duplicate skips do not create recipe charges. Recipe and ingredient CSV exports do not create additional recipe events. A source-limited or interrupted run is charged only for recipes already delivered.

Set **Maximum recipes** and a maximum run charge in Apify Console. The Actor stops collecting when the remaining allowance cannot pay for another recipe. A maximum run charge below $0.0005 cannot purchase one recipe and may be rejected by Apify before the run starts. During a run, an exhausted recipe allowance reports `SPENDING_LIMIT`. There is no minimum billed bundle. Your Apify account plan and services outside this Actor are separate.

### Quick start

1. Open **Input** in Apify Console and enter keywords in **Search recipes**, or keep the example recipe or paste your own Budget Bytes URLs.
2. Choose **Maximum recipes** and press **Start**.
3. Open **Output** to preview recipes and published costs, recipe details or nutrition.
4. Download the **recipe costs CSV** or **ingredient costs CSV**, or export the complete dataset as JSON, CSV or Excel.

```json
{
  "startUrls": [{"url": "https://www.budgetbytes.com/vegetable-fried-rice/"}],
  "maxRecipes": 10,
  "useDatacenterProxy": true
}
```

The example collects one recipe. A result limit is a ceiling, not a minimum. To collect a category, replace the URL with `https://www.budgetbytes.com/category/recipes/vegetarian/`.

### Search recipes by keyword

Provide a query without any starting URLs:

```json
{
  "searchQuery": "chicken soup",
  "maxRecipes": 10,
  "useDatacenterProxy": true
}
```

A non-empty `searchQuery` takes priority over all starting URLs, including the prefilled example recipe. Leave it blank to use URL collection. Search accepts up to 200 characters and automatically follows successive result pages until the recipe limit, source exhaustion or a stopping condition.

Search uses Budget Bytes' public WordPress search API. Matching may include words in post content, and ordering can differ from the interactive website search. Search results can include articles or roundups; only pages with a valid, checked recipe card are exported. A post match count is not a count of valid recipes. A query with no valid recipe cards fails clearly with `NO_SEARCH_RESULTS` and an empty dataset; it never returns dummy rows.

### Reader comments, reviews and replies

Set **Comments per recipe** to 1–20 to include the newest public comments. Leave it at 0 to collect recipes only. For example:

```json
{
  "startUrls": [{"url": "https://www.budgetbytes.com/vegetable-fried-rice/"}],
  "maxRecipes": 1,
  "maxCommentsPerRecipe": 20
}
```

Comments are stored separately under **Output → Reader comments and ratings**, with a **Download comments CSV** link. The default dataset remains one row per recipe. The Comments dataset belongs to its run; independent runs do not share comment records.

Each comment contains `recordKey`, `commentId`, `recipeUrl`, `commentUrl`, `authorName`, `text`, `datePublished`, `ratingValue`, `parentCommentId` and `scrapedAt`. Dates use the source's supplied GMT timestamp. Individual ratings are 1–5 when supplied and null otherwise. The recipe's overall rating is separate: not every comment is a rated review.

Excerpt from a real comment (the dataset retains the complete text):

```json
{
  "commentId": "705570",
  "recipeUrl": "https://www.budgetbytes.com/vegetable-fried-rice/",
  "authorName": "Brooke",
  "text": "This is so good and so easy! …",
  "datePublished": "2026-10-19T00:25:04Z",
  "ratingValue": 5,
  "parentCommentId": null
}
```

Replies count toward the limit. Newest results may reference a parent outside the selected window; `parentCommentId` is preserved. The cap applies once per recipe page, including when multiple recipe cards share a page. Emails, IP addresses, avatars and private account data are not exported. Comment voting counts are not included.

Collection uses Budget Bytes' public WordPress comments API and current robots rules. Zero comments is valid; blocked or malformed responses appear as comment errors and partial coverage in `RUN_SUMMARY.comments`. Source availability, time and spending limits can leave fewer than the selected number of comments. Already delivered recipes remain useful when comment collection is incomplete. Interrupted pending comment deliveries are reconciled on resuming the same run.

### Inputs and supported URLs

| Input | What to provide |
| --- | --- |
| `searchQuery` | Optional keyword search, such as `chicken soup`. Overrides starting URLs when non-empty; blank preserves URL mode. |
| `startUrls` | One or more Budget Bytes recipe, category or post sitemap URLs. Trailing slashes and tracking parameters are normalized. Defaults to the example recipe when search is blank. |
| `maxRecipes` | Maximum unique recipes across all starting URLs, from 1 to 1,000. Defaults to 10. |
| `maxCommentsPerRecipe` | Optional integer 0–20. Default 0 disables comments; positive values include newest comments and replies per recipe page. Included in recipe pricing. |
| `useDatacenterProxy` | Optional native Apify datacenter fallback after HTTP 403/429. The Console example enables it; API omission defaults to false. Its platform usage is included in standard-run recipe pricing. |

Category pagination follows successive pages automatically. Sitemap discovery accepts `https://www.budgetbytes.com/sitemap_index.xml` and `post-sitemap.xml` / numbered post sitemaps. Unsupported posts are skipped. The normal website `/search/` and `?s=` URLs remain unsupported. Login pages, paid content and other websites are unsupported.

Start with batches of 100 and allow cooldowns between large jobs. The default timeout is five minutes with 1 GB memory. For large collections, use a 15-minute timeout. Source availability and rate limits affect how many recipes can be collected; a complete site archive is not guaranteed. Allow a cooldown between large jobs.

### Sample output

Selected fields from Vegetable Fried Rice are shown below. The full JSON includes all ingredient and instruction objects, nutrition, ratings, categories, media links and source dates where available.

```json
{
  "recordKey": "https://www.budgetbytes.com/vegetable-fried-rice/#63791",
  "url": "https://www.budgetbytes.com/vegetable-fried-rice/",
  "recipeId": "63791",
  "title": "Vegetable Fried Rice",
  "author": "Beth Moncel",
  "servings": 4,
  "prepMinutes": 15,
  "cookMinutes": 12,
  "totalMinutes": 27,
  "recipeCost": 4.22,
  "servingCost": 1.06,
  "currencySymbol": "$",
  "currency": null,
  "costBasis": "published_estimate"
}
```

An ingredient object from that recipe:

```json
{
  "raw": "2 garlic cloves (minced, $0.12)",
  "amount": "2",
  "unit": null,
  "name": "garlic cloves",
  "notes": "(minced, $0.12)",
  "section": null,
  "cost": 0.12
}
```

| Field | Meaning |
| --- | --- |
| `ingredients` | Ordered objects with raw text, amount, unit, name, notes, section and published ingredient cost. |
| `instructions` | Ordered objects with position, instruction text and section. |
| `recipeCost`, `servingCost` | Numeric values explicitly published for the recipe and serving; null when absent. |
| `costText` | Original displayed price wording. |
| `currencySymbol`, `currency` | Published symbol; ISO code stays null when the page does not establish it. |
| `nutrition`, `nutritionBasis` | Published nutrition text with source units and serving basis. |
| `author` | Published author, including names linked within the same page's structured data. |
| `scrapedAt` | Retrieval time, not a grocery-price observation date. |

The ingredient CSV contains one row per ingredient, with recipe identity, title, URL and servings repeated. It is an export of the same collected recipes; the underlying default dataset contains one row per recipe. Use JSON to preserve complete nested ingredients and instructions.

### Python API example

Use Python 3.11+ with `apify-client` 3.x and set `APIFY_TOKEN` in your environment. Run the Actor, then read the recipe and optional comments datasets:

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("thescrapelab/budget-bytes-scraper").call(
    run_input={
        "startUrls": [{"url": "https://www.budgetbytes.com/vegetable-fried-rice/"}],
        "maxRecipes": 10,
        "useDatacenterProxy": True,
        "maxCommentsPerRecipe": 20,
    }
)
if run is None or run.status != "SUCCEEDED":
    raise RuntimeError("Collection did not finish successfully; inspect the run log.")
for recipe in client.dataset(run.default_dataset_id).iterate_items():
    print(recipe["title"], recipe["servingCost"], recipe["url"])
summary_record = client.key_value_store(run.default_key_value_store_id).get_record("RUN_SUMMARY")
if summary_record is not None and "comments" in summary_record["value"]:
    comments_id = summary_record["value"]["comments"]["datasetId"]
    for comment in client.dataset(comments_id).iterate_items():
        print(comment["authorName"], comment["ratingValue"], comment["text"])
```

Check `RUN_SUMMARY` for source errors or partial coverage even when the platform run succeeds. Keyword runs also record the query, source post match count and search-page provenance in `RUN_SUMMARY.search`. A successful partial run can contain useful recipes while some URLs remain unavailable.

### Cost interpretation and limitations

- Published estimates allocate the quantity of each ingredient consumed. Buying full packages may cost more. Prices vary by location, store and date.
- A recipe edit date does not establish when every price was refreshed. Rounding can make ingredient costs and displayed totals differ; both are preserved.
- Dynamic serving adjustments are not applied. The original serving count and quantities are retained.
- Missing fields stay null. Nutrition is not calculated. Images and videos are linked rather than downloaded.
- Collection respects robots rules. Native datacenter fallback is opt-in; residential proxies, external scraping providers and CAPTCHA solving are excluded.

### Troubleshooting and FAQs

**Why did my search return no recipes?** Try a broader keyword or a specific recipe URL. Search may match non-recipe articles, and source matching can differ from the website interface. Check `RUN_SUMMARY` for `NO_SEARCH_RESULTS` or source errors.

**Why did I get fewer recipes than the limit?** The sources may be exhausted, some posts may not contain a valid recipe, or collection may stop at a timeout, spending limit or source restriction. Inspect the run's `RUN_SUMMARY` for the stopping reason and failed URLs.

**Why is a cost null?** It was not explicitly published in the supported recipe content. The Actor does not derive missing totals or retrieve current shop prices.

**What should I do after HTTP 429?** Let the source cool down, use a smaller batch, or explicitly enable the native datacenter fallback. Access recovery is not guaranteed. A run with no valid recipes fails clearly; failed URLs never become recipe rows.

Report reproducible issues through the Actor's **Issues** tab with the run URL and a public source URL. Use and redistribute content within your applicable permission and licensing terms.

# Actor input Schema

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

Enter keywords such as chicken soup. Uses Budget Bytes public WordPress search. A non-empty query takes priority over all starting URLs, including the example recipe. Leave blank for URL collection.

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

Budget Bytes HTTPS recipe, category or post sitemap URLs. Used when Search recipes is blank. Categories and post sitemaps are followed automatically; normal website search URLs remain unsupported.

## `maxRecipes` (type: `integer`):

Maximum unique valid recipes across the keyword search or starting URLs. Start with batches of 100. For larger collections increase the timeout to 15 minutes and allow cooldowns; source rate limits may stop collection early.

## `useDatacenterProxy` (type: `boolean`):

Explicitly enable native Apify datacenter fallback after a direct HTTP 403/429. Its platform usage is included in standard-run recipe pricing. Enabled in the Console example; API omission stays direct-only. No residential proxy or external provider.

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

0 disables comments. Choose 1–20 newest comments per recipe page, including replies, at no extra recipe charge. A limited window may omit reply parents.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.budgetbytes.com/vegetable-fried-rice/"
    }
  ],
  "maxRecipes": 10,
  "useDatacenterProxy": true,
  "maxCommentsPerRecipe": 0
}
```

# Actor output Schema

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

No description

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

No description

## `recipeCsv` (type: `string`):

No description

## `ingredientCsv` (type: `string`):

No description

## `comments` (type: `string`):

No description

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

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.budgetbytes.com/vegetable-fried-rice/"
        }
    ],
    "maxRecipes": 10,
    "useDatacenterProxy": true,
    "maxCommentsPerRecipe": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/budget-bytes-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 = {
    "startUrls": [{ "url": "https://www.budgetbytes.com/vegetable-fried-rice/" }],
    "maxRecipes": 10,
    "useDatacenterProxy": True,
    "maxCommentsPerRecipe": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/budget-bytes-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 '{
  "startUrls": [
    {
      "url": "https://www.budgetbytes.com/vegetable-fried-rice/"
    }
  ],
  "maxRecipes": 10,
  "useDatacenterProxy": true,
  "maxCommentsPerRecipe": 0
}' |
apify call thescrapelab/budget-bytes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thescrapelab/budget-bytes-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/7kvjnWaWmCRJQhOo0/builds/uHCpW9pH8Nv6WrAwd/openapi.json
