# Buttondown Archive Post & Newsletter Info Extractor (`vexaloom-labs/buttondown-archive-post-and-newsletter-info`) Actor

Extract posts and profile details from any public Buttondown newsletter archive. Browse the full post history, look up specific posts by URL, or pull newsletter name, description and social links.

- **URL**: https://apify.com/vexaloom-labs/buttondown-archive-post-and-newsletter-info.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** News, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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

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

## Buttondown Archive Post & Newsletter Info Extractor

Export the public post history and profile details of any [Buttondown](https://buttondown.com) newsletter. Give it a newsletter slug or URL and get structured posts, full post text, exact dates, authors, images, links, and newsletter metadata — no login, API key, or proxy.

### Modes

| Mode | What it returns |
|---|---|
| `posts` | Walks a newsletter's public archive page by page, newest first. Optional per-post enrichment adds full HTML, exact timestamps, author and social-card fields. |
| `feed` | Reads the newsletter's public RSS feed once and returns full post text for every public item it contains. Fastest way to export a complete archive. |
| `byPostUrls` | Looks up specific public post URLs, including custom-domain and cross-posted links listed in an archive. |
| `newsletterInfo` | Returns the newsletter's name, description, contact email, icon, language/locale, paid tiers, and configured social links. |

Multiple newsletters can be supplied in one run. All public archive layouts are supported (modern cards, teaser lists, and classic dated lists).

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `posts` | `posts`, `feed`, `byPostUrls`, or `newsletterInfo`. |
| `newsletterSlugs` | array | – | One or more newsletter slugs, Buttondown URLs, Buttondown-hosted custom-domain URLs, or static mirror URLs that link to their Buttondown newsletter. Optional for `byPostUrls`; `posts` and `feed` fall back to `buttondown` when omitted (the daily prefill uses `["buttondown"]`). |
| `postUrls` | array | – | Public post URLs for `byPostUrls`, including custom-domain/cross-posted links. |
| `includeFullBody` | boolean | `false` | In `posts` mode, fetch each post page for full HTML, exact timestamps, author info, and social cards. `feed` and `byPostUrls` always return the body. |
| `dateFrom` | string | – | Keep posts published on or after this ISO date (`YYYY-MM-DD`). |
| `dateTo` | string | – | Keep posts published on or before this ISO date (`YYYY-MM-DD`). |
| `keyword` | string | – | Case-insensitive substring match on title and excerpt. |
| `maxItems` | integer | `50` | Hard cap on emitted records, 1–10,000. |

#### Full archive via RSS

```json
{
  "mode": "feed",
  "newsletterSlugs": ["buttondown"],
  "maxItems": 100
}
```

#### Archive with full post bodies

```json
{
  "mode": "posts",
  "newsletterSlugs": ["thesephist"],
  "includeFullBody": true,
  "maxItems": 20
}
```

#### Several newsletters at once

```json
{
  "mode": "posts",
  "newsletterSlugs": ["buttondown", "lightindustry", "thesephist"],
  "maxItems": 50
}
```

#### Posts in a date range

```json
{
  "mode": "posts",
  "newsletterSlugs": ["buttondown"],
  "dateFrom": "2026-01-01",
  "dateTo": "2026-12-31",
  "maxItems": 50
}
```

#### Specific posts, including a custom domain

```json
{
  "mode": "byPostUrls",
  "newsletterSlugs": ["cassidoo"],
  "postUrls": [
    "https://cassidoo.co/newsletter/2026-11-29/",
    "https://buttondown.com/buttondown/archive/updates-from-november-5868/"
  ]
}
```

#### Newsletter profile

```json
{
  "mode": "newsletterInfo",
  "newsletterSlugs": ["buttondown"]
}
```

### Output fields

#### Post records (`recordType: "post"`)

| Field | Description |
|---|---|
| `postId` | `{newsletterSlug}/{postSlug}` composite ID. |
| `newsletterSlug`, `newsletterId`, `postSlug`, `emailId` | Newsletter and post identity when the source publishes it. |
| `title`, `excerpt` | Post title and short summary. |
| `publishedDate` | Publish date (`YYYY-MM-DD`). |
| `publishedAt`, `updatedAt` | Exact ISO timestamps when the post page exposes them. |
| `issueNumber` | Newsletter issue number when the archive template shows one. |
| `featureImage` | Cover/social image URL. |
| `postUrl` | Public post URL (canonical Buttondown URL or the custom-domain/cross-posted URL listed in the archive). |
| `language` | Declared page or feed language (e.g. `en`, `en-us`, `fr`). |
| `html` | Full post HTML body when included. |
| `readableText` | Plain-text version of the body, with scripts/styles removed. |
| `wordCount`, `readingTimeMinutes` | Body length metrics. |
| `imageUrls` | Images found in the body. |
| `linkUrls` | Links found in the body. |
| `isAccessibleForFree` | Whether the post page declares the content free, when reported. |
| `articleSection` | Section/category when the page provides it. |
| `authorName`, `authorUrl`, `authorImage` | Author details when available. |
| `ogTitle`, `ogDescription`, `ogImage` | Social-card metadata when available. |
| `recordType`, `scrapedAt` | Record type and scrape timestamp (UTC ISO). |

#### Newsletter records (`recordType: "newsletter"`)

`newsletterSlug`, `newsletterId`, `newsletterName`, `newsletterDescription`, `contactEmail`, `icon`, `language`, `locale`, `customDomain`, `paidSubscriptionsStatus`, `subscriptionPrices` (`price`, `currency`, `interval`, `description`), `socialLinks` (`platform`, `url`), `newsletterUrl`, `archiveUrl`, `rssUrl`, `recordType`, `scrapedAt`.

Empty fields are omitted at every level; records never contain `null`, empty strings, or empty lists.

### What is public

Buttondown newsletter owners decide which emails appear publicly. This actor reads exactly what a logged-out visitor sees: public archive pages, RSS items, and public post pages. Emails marked disabled, subscriber-only, or paid-only are not visible and are not returned.

### Limitations

- **Public content only.** Private, subscriber-only, and paid-only emails are outside the actor's scope.
- **Feed window.** `feed` mode honors `maxItems` up to 10,000 items. For newsletters with more than 10,000 public RSS items, use `posts` mode to page the archive.
- **Custom-domain newsletters.** Buttondown-hosted custom domains resolve to their newsletter automatically. Static mirrors are resolved through the Buttondown link on the page (signup, RSS or archive); a mirror that links to no Buttondown page is not accepted as newsletter input, but its post URLs work in `byPostUrls` when they link to Buttondown.
- **Tags and comments.** Buttondown does not expose post tags or comment threads on public archive pages, so they are not extracted.
- **External cross-posts.** When an archive links to a non-Buttondown page (for example a company blog), the post URL, body and available social metadata are returned; Buttondown-only fields such as newsletter ID or email ID may be absent. If that page has no semantic article container, the body is taken from its main content and may include breadcrumbs, tags or navigation.

### Use cases

- Back up or migrate a newsletter's public archive.
- Build an LLM-ready corpus with full text, dates, authors, images and links.
- Monitor publishing cadence and topics across several newsletters.
- Pull newsletter profiles, paid tiers and social links for research.

### FAQ

**Do I need a Buttondown account or API key?**
No. The actor reads the same public archive, RSS feed and post pages any visitor can open.

**Which mode should I use for a complete export?**
`feed` is usually fastest: one request returns the full text of every public RSS item. Use `posts` with `includeFullBody` when you need fields that only individual post pages expose, or when the archive is larger than 10,000 items.

**Why do some posts have `publishedDate` but no `publishedAt`?**
The archive listing only shows a date. Enable `includeFullBody` (or use `feed`) to add the exact timestamp when the post page or feed provides it.

**What happens with an invalid or private newsletter?**
The run finishes cleanly with zero records and a clear status message; it does not crash.

**Does this work worldwide?**
Yes. Buttondown has no regional restrictions, and any public newsletter slug or URL can be used.

### Data source

Public Buttondown archive pages, RSS feeds, and individual post pages at buttondown.com. No login, cookie, API key, or proxy is required.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `newsletterSlugs` (type: `array`):

One or more Buttondown newsletter slugs, e.g. `buttondown`, Buttondown URLs, Buttondown-hosted custom-domain URLs, or static mirror URLs that link to their Buttondown newsletter. Multiple entries fetch from several newsletters in one run. Optional for mode=byPostUrls (the post URLs identify the newsletter).

## `postUrls` (type: `array`):

Full public post URLs, including Buttondown archive URLs and custom-domain or cross-posted URLs linked from an archive.

## `includeFullBody` (type: `boolean`):

Fetch each post's individual page for full HTML body, exact timestamps, author info and social-card fields. Slower — one extra request per post. Mode=feed and mode=byPostUrls always include the body.

## `dateFrom` (type: `string`):

ISO date, e.g. `2024-01-01`. Only posts published on or after this date.

## `dateTo` (type: `string`):

ISO date, e.g. `2024-12-31`. Only posts published on or before this date.

## `keyword` (type: `string`):

Case-insensitive substring match against the title and excerpt.

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

Hard cap on emitted records (1–10,000).

## Actor input object example

```json
{
  "mode": "posts",
  "newsletterSlugs": [
    "buttondown"
  ],
  "postUrls": [],
  "includeFullBody": false,
  "dateFrom": "",
  "dateTo": "",
  "keyword": "",
  "maxItems": 3
}
```

# Actor output Schema

## `items` (type: `string`):

Dataset containing all scraped Buttondown newsletter 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 = {
    "mode": "posts",
    "newsletterSlugs": [
        "buttondown"
    ],
    "postUrls": [],
    "includeFullBody": false,
    "dateFrom": "",
    "dateTo": "",
    "keyword": "",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/buttondown-archive-post-and-newsletter-info").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 = {
    "mode": "posts",
    "newsletterSlugs": ["buttondown"],
    "postUrls": [],
    "includeFullBody": False,
    "dateFrom": "",
    "dateTo": "",
    "keyword": "",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/buttondown-archive-post-and-newsletter-info").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 '{
  "mode": "posts",
  "newsletterSlugs": [
    "buttondown"
  ],
  "postUrls": [],
  "includeFullBody": false,
  "dateFrom": "",
  "dateTo": "",
  "keyword": "",
  "maxItems": 3
}' |
apify call vexaloom-labs/buttondown-archive-post-and-newsletter-info --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/buttondown-archive-post-and-newsletter-info"
        }
    }
}
```

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/CZ7o4AkKMEW4v88N2/builds/Oph5fLLbrWMk8H37t/openapi.json
