# HelloFresh Recipe Scraper (`thescrapelab/hellofresh-recipe-scraper`) Actor

Scrape HelloFresh recipes, ingredient quantities, instructions, published nutrition and dated weekly menus from the US, UK, Canada and Australia.

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

## Pricing

from $1.50 / 1,000 recipe records

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

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

## HelloFresh Recipe Scraper

Collect recipes and observed weekly menus from the public **HelloFresh websites for the United States, United Kingdom, Canada and Australia**. Export ingredient quantities for every published serving option, ordered cooking instructions, published nutrition, allergens and source links. Menu results include HelloFresh's week code, displayed date label and observation timestamp.

Use it to populate recipe-app databases, export serving-specific grocery ingredients, and track which meals appear in published weekly menus. Unlike a keyword-only recipe search, each menu record retains the observed country, source week code, displayed dates and recipe identity. Public website availability and your permitted use of the content determine coverage. This Actor does not provide a content license or an official HelloFresh integration.

### Quick start

1. Choose **Country**.
2. Set **Maximum recipes** (10 is a useful first run).
3. Press **Start**. Leave URLs empty to collect that country's current menu.

| Main input | What to enter |
| --- | --- |
| Country | United States, United Kingdom, Canada (English site), or Australia |
| Maximum recipes | How many recipe records to return; default 10 |
| Recipe or menu URLs (optional) | Paste URLs from one supported country, or leave empty for its current menu |

```json
{
  "country": "GB",
  "maxResults": 10
}
```

| Country | API value | Website |
| --- | --- | --- |
| United States | `US` | hellofresh.com |
| United Kingdom | `GB` | hellofresh.co.uk |
| Canada | `CA` | hellofresh.ca |
| Australia | `AU` | hellofresh.com.au |

When URLs are supplied, the country is detected from those URLs and takes precedence over the Country choice. Use one country per run; start another run for a different country. Existing URL-only requests continue to work.

```json
{
  "startUrls": [
    "https://www.hellofresh.com/recipes/crispy-maple-mustard-chicken-66f2e4ee1e86f3e65846fa93"
  ],
  "maxResults": 1
}
```

For dated-menu research, open **Advanced: specific weeks** and enter HelloFresh's published week codes:

```json
{
  "country": "GB",
  "weeks": ["2026-W46", "2026-W47"],
  "maxResults": 100
}
```

Only weeks that the public site actually returns are supported. A week code is HelloFresh's own label; it is not used to calculate an ISO date range. If HelloFresh returns a different week, the Actor reports `WEEK_MISMATCH`. Weeks are added to any supplied URLs; leave URLs empty to request only those weeks.

### Output

Each row describes a recipe, with optional membership in an observed weekly menu. These selected fields come from an observed recipe; the complete output also contains all available ingredients and instructions:

```json
{
  "recordKey": "US:2026-W46:66f2e4ee1e86f3e65846fa93",
  "recipeId": "66f2e4ee1e86f3e65846fa93",
  "title": "Crispy Maple-Mustard Chicken",
  "country": "US",
  "menuWeek": "2026-W46",
  "menuDateLabel": "Menu for Nov 07 - 13",
  "totalTime": "PT35M",
  "activeTime": "PT10M",
  "servingOptions": [2, 3, 4, 6],
  "sourceUrl": "https://www.hellofresh.com/menus",
  "recipeUrl": "https://www.hellofresh.com/recipes/crispy-maple-mustard-chicken-66f2e4ee1e86f3e65846fa93"
}
```

| Field | Meaning |
| --- | --- |
| `recipeId`, `sourceUrl`, `recipeUrl` | Recipe identity, the actual public page used for collection, and the recipe link published by HelloFresh |
| `country` | Source country: `US`, `GB`, `CA` or `AU` |
| `menuWeek`, `menuDateLabel`, `menuObservedAt` | Source week code, displayed date label and time the menu was fetched; null for standalone recipe requests |
| `menuPosition`, `isSoldOut` | Published menu position and availability flag, when supplied |
| `servingOptions` | The serving sizes with published ingredient quantities |
| `ingredients` | Ingredient ID, name, delivery/pantry flag, published allergens and quantity/unit pairs for each serving option |
| `instructions` | Ordered steps with `stepNumber` and source instruction text |
| `nutrition`, `nutritionBasis` | Source-published nutrient names, amounts and units; serving or portion basis, including a published portion weight when displayed |
| `totalTime`, `activeTime` | ISO 8601 durations matched to displayed Total, Preparation Time and Active labels; null if the mapping cannot be checked |
| `sourceTimeFields` | Original HelloFresh time values retained because their raw field names are counterintuitive |
| `allergens`, `tags`, `cuisines`, `utensils` | Published recipe attributes |
| `recipeCardUrl` | Public recipe-card PDF link when supplied; the PDF itself is not downloaded |
| `createdAt`, `modifiedAt`, `scrapedAt` | Source record creation/update times and collection time; creation is not claimed to be a publication date |

Ingredients retain all published quantity variants. The Actor does not scale amounts, convert units or infer missing quantities. HelloFresh may use a raw zero for an unquantified pantry ingredient; it is preserved as source data and must not be interpreted as an instruction to omit the ingredient. Nutrition is never calculated or estimated, and allergen labels are not a dietary-safety guarantee.

One recipe may appear in several requested weeks. Each recipe/week combination is a separate legitimate result, identified by `recordKey`. Keys include the country to keep markets separate. Standalone recipe rows use a separate key and have no asserted menu membership. Duplicate keys are not exported twice within the run.

### Coverage and limits

- Public recipe detail pages and dated/current menus for the four listed countries. Other countries, category/search crawling, customer accounts, personal meal selections and historical archives are outside this version. Source text and units are retained as published; the Actor does not translate recipes or convert between metric and US units.
- Menu discovery opens each recipe's public detail view because menu summaries omit ingredients and steps. Some standalone recipe links redirect to a different variant; menu collection keeps the original listed recipe ID, quantities and nutrition. A standalone request that redirects to another recipe is reported as a mismatch. Some future-menu recipe links return 404 on the separate recipe page while their menu detail data remains available; use a menu URL for those entries.
- The result limit counts delivered rows, including separate membership rows for different weeks. Fewer rows may be returned if sources fail or fewer complete recipes are available.
- Browser rendering is necessary for the access method tested. Cloudflare and website changes can still block runs. No CAPTCHA solver, login bypass, paid proxy or third-party recipe-data provider is used.
- Missing optional values remain null or empty arrays. Pages without ingredients and instructions are reported as failures and do not become successful recipe rows or billable results. Australian menus can include entries without published steps; these are skipped and listed in the summary.
- The run summary identifies failed pages and whether the result limit was reached. A run with no complete recipes fails; a mixed run can deliver partial results and list failures.
- Collection stores only the current run's results. It creates no recurring monitoring schedule or separate historical archive.

### Running costs

**$2 per 1,000 complete recipe records at the standard tier ($0.002 each).** Eligible Apify plan discounts lower this to $1.80, $1.60 or $1.50 per 1,000 records. The Pricing tab shows the price for your plan. Platform usage is included in the event price. There is no startup fee, paid proxy, recipe-data subscription or runtime AI charge.

A charge is triggered only when a complete recipe record is written to the default dataset. Missing pages, entries without ingredients/instructions and duplicate record keys are not charged. When one recipe appears in two requested weeks, the two dated membership records count as two results and two charges.

Set the native Apify run spending limit to control costs. The Actor stops before requesting another recipe when the remaining limit cannot cover one record, and reports `BUDGET_LIMIT` in the run summary. Results already delivered remain available. Apify may reject a starting budget below one record before creating a run. If the remaining budget drops below one record during collection, the Actor stops before requesting another recipe.

Use the configured 2 GB of memory. Allow several minutes for larger menus: the browser opens recipe details serially, and a five-minute limit was insufficient for 100 recipes in cloud testing. The default timeout is 15 minutes. The scraper stops before the platform timeout when possible so that it can save a partial-result summary. The 1,000-result limit is a safety ceiling; a 1,000-recipe run has not been verified.

### API usage

The Actor ID is `yg8ZGpqGdBqkIjdaj`. Run it with your Apify API token from Apify Console or the API. Your native per-run spending limit applies.

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("yg8ZGpqGdBqkIjdaj").call(
    run_input={
        "country": "GB",
        "maxResults": 10,
    },
    max_total_charge_usd=0.10,
)
for recipe in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(recipe["title"], recipe["menuWeek"], recipe["sourceUrl"])
```

Temporary navigation and recipe-response failures are retried once after a short delay when time remains. Source restrictions and incomplete recipes still fail clearly. The run summary includes sanitized failure stages and attempt counts.

### Troubleshooting

`ROBOTS_UNAVAILABLE` means the site did not return readable crawl rules; collection stops. `SOURCE_BLOCKED` means a public page stayed challenged. `WEEK_MISMATCH` means the source returned another week. A request mixing URLs from different countries is rejected before collection. `INCOMPLETE_RECIPE` means the detail page lacks essential content. These failures do not trigger fallback to snapshots, example recipes or another website.

### Support

Use the **Issues** tab on this Actor’s Apify Store page for support. Include the run link, selected country and a public source URL, plus the field or behavior you expected. This is an independent scraper, with no affiliation to HelloFresh.

# Actor input Schema

## `country` (type: `string`):

Country to scrape when URLs are empty. Recipe or menu URLs automatically select their own country. Use one country per run.

## `maxResults` (type: `integer`):

Stop after this many recipe records. Start with 10. If a recipe appears in two requested menus, each weekly entry counts as one record.

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

Leave empty to scrape the selected country’s current menu. Or paste HelloFresh recipe/menu URLs from one supported country; the country is detected from the URLs.

## `weeks` (type: `array`):

Usually leave empty. For published dated menus, enter HelloFresh week codes such as 2026-W46. These are the source’s own labels. Only menus still returned by the public website are available.

## Actor input object example

```json
{
  "country": "US",
  "maxResults": 10,
  "startUrls": []
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "country": "US",
    "maxResults": 10,
    "startUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("thescrapelab/hellofresh-recipe-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 = {
    "country": "US",
    "maxResults": 10,
    "startUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("thescrapelab/hellofresh-recipe-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 '{
  "country": "US",
  "maxResults": 10,
  "startUrls": []
}' |
apify call thescrapelab/hellofresh-recipe-scraper --silent --output-dataset

```

## MCP server setup

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