# Really Good Emails Gallery Scraper (`adam-frank/reallygoodemails-gallery`) Actor

Extracts brand, subject line, category tags, screenshot, and publish date for email design examples from reallygoodemails.com category and tag pages, priced pay-per-result.

- **URL**: https://apify.com/adam-frank/reallygoodemails-gallery.md
- **Developed by:** [Adam Schepis](https://apify.com/adam-frank) (community)
- **Categories:** Marketing, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 results

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

## Really Good Emails Gallery Scraper

Extracts brand, subject line, category tags, screenshot, and publish date for email design examples from [reallygoodemails.com](https://reallygoodemails.com) category and tag listing pages.

### What you get

- Structured data for every email card shown on a Really Good Emails category or tag page — no scraper to build or maintain yourself.
- Pay only for results: $0.004 per item, nothing for failed or empty runs.
- Runs on Apify's infrastructure with automatic proxy rotation and retries.

### Input

| Field | Type | Required | Description |
|---|---|---|---|
| `startUrls` | array of URLs | yes | Really Good Emails category or tag listing pages, e.g. `https://reallygoodemails.com/categories/black-friday`. |
| `maxResults` | integer | no (default 100) | Stops the run once this many email records have been produced. |

Example input:

```json
{
    "startUrls": [
        { "url": "https://reallygoodemails.com/categories/black-friday" },
        { "url": "https://reallygoodemails.com/categories/birthday" }
    ],
    "maxResults": 100
}
```

**Important pagination note:** each category/tag page ships its first batch of email cards (currently 50 — the site's own page size) embedded directly in the page. Loading more requires the site's own `/api/` endpoint, which its `robots.txt` disallows for anonymous crawlers, so this Actor does not follow it. To collect more than ~50 records, pass more start URLs (more categories/tags) rather than expecting one URL to paginate. Company/brand pages under `/companies/` are also out of scope — `robots.txt` disallows them.

### Output example

```json
{
    "brand": "Counter Culture Coffee",
    "title": "Black Friday Deals are here 🖤",
    "categories": ["Beverage", "Black Friday", "GIF"],
    "url": "https://reallygoodemails.com/emails/black-friday-deals-are-here-counter-culture",
    "screenshotUrl": "https://pro-really-good-emails.s3.eu-west-1.amazonaws.com/emails/black-friday-deals-are-here-counter-culture.png",
    "publishedAt": "2025-12-04T20:29:14.617Z",
    "scrapedAt": "2026-09-08T23:47:05.593Z"
}
```

Every dataset item has the same shape. Download results as JSON, CSV, Excel, or via the Apify API.

### Pricing

This Actor uses [pay-per-event pricing](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event). You are charged only for the `result` event, once per extracted email record, up to `maxResults`; the exact per-event price is set in Apify Console at publish time and shown on the Actor's Store page before you run it.

| Event | When it's charged |
|---|---|
| `result` | Once per extracted email record, up to `maxResults` |

### Why this actor

Really Good Emails is one of the most-referenced email design galleries on the web, but there's no official export or API for its catalog. This Actor turns any category or tag page into structured records — brand, subject line, tags, screenshot, and publish date — ready for design research, competitive analysis, or building your own searchable swipe file.

### Notes

- reallygoodemails.com is a Next.js app; category/tag pages don't render email cards as plain HTML. This Actor reads the same data the page itself uses to render — a JSON block embedded in a React Server Component payload (`self.__next_f.push(...)`) — rather than screen-scraping visible markup.
- `robots.txt` (fetched 2026-09-08) disallows: `/api/`, `/admin`, `/library`, `/upload`, `/app/login`, `/app/signup`, `/companies/`. This Actor fetches and honors this list at the start of every run and skips any start URL under a disallowed path.
- `maxConcurrency` is capped at 3, matching house policy for polite crawling.
- Built with [Crawlee](https://crawlee.dev) and the [Apify SDK for JavaScript](https://docs.apify.com/sdk/js/).

### Reference docs used to build this Actor

- Apify SDK for JS: https://docs.apify.com/sdk/js/
- Pay-per-event monetization overview: https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event
- Pay-per-event SDK guide (`Actor.charge`, `ChargingManager`, local test mode): https://docs.apify.com/sdk/js/docs/concepts/pay-per-event
- `Actor.charge` API reference: https://docs.apify.com/sdk/js/reference/class/Actor
- `.actor/actor.json` reference: https://docs.apify.com/platform/actors/development/actor-definition/actor-json

# Actor input Schema

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

Really Good Emails category or tag listing pages, e.g. https://reallygoodemails.com/categories/black-friday. Each page's first batch of email cards (currently 50, the site's own page size) is extracted. Company/brand pages under /companies/ are out of scope - robots.txt disallows them.

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

Stops the run (and pay-per-event charging) once this many email records have been produced. Each start URL can contribute at most ~50 records (the site's own first-page batch size) since deeper pagination is loaded from an endpoint robots.txt disallows.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://reallygoodemails.com/categories/black-friday"
    },
    {
      "url": "https://reallygoodemails.com/categories/birthday"
    }
  ],
  "maxResults": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped 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 = {
    "startUrls": [
        {
            "url": "https://reallygoodemails.com/categories/black-friday"
        },
        {
            "url": "https://reallygoodemails.com/categories/birthday"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("adam-frank/reallygoodemails-gallery").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://reallygoodemails.com/categories/black-friday" },
        { "url": "https://reallygoodemails.com/categories/birthday" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("adam-frank/reallygoodemails-gallery").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://reallygoodemails.com/categories/black-friday"
    },
    {
      "url": "https://reallygoodemails.com/categories/birthday"
    }
  ]
}' |
apify call adam-frank/reallygoodemails-gallery --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,adam-frank/reallygoodemails-gallery"
        }
    }
}
```

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/RgsOMbOulWxUpDXP3/builds/48bRUd1Go54lap0G7/openapi.json
