# Substack Sponsorship Tracker (`nightshiftdata/substack-sponsorship-tracker`) Actor

Find newsletters that disclose sponsors, which brands pay them, and estimated placement rates.

- **URL**: https://apify.com/nightshiftdata/substack-sponsorship-tracker.md
- **Developed by:** [Nightshift Data](https://apify.com/nightshiftdata) (community)
- **Categories:** Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 sponsorships

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

## Substack Sponsorship Tracker

Find newsletters that disclose sponsors, which brands are paying them, and what a placement likely costs — using Substack's public API, no browser and no proxies.

### What it does

Give it publication domains, a search query, or a list of newsletter URLs. It reads the most recent posts from each publication, extracts **disclosed sponsorships**, and returns three record types: one row per sponsor × publication pair, one row per publication scanned, and one run summary with coverage and failures.

Only explicit disclosures count — "this issue is sponsored by", "brought to you by", "sponsored by" after a sentence break, and linked `#ad` / `#sponsored` tags. In a labelled sample of 250 posts, explicit disclosures scored 85–100% precision; UTM-only and discount-code-only signals scored 0 out of 22. Those signals are not used.

### Output

#### `sponsorship` — one row per sponsor × publication pair

```json
{
  "recordType": "sponsorship",
  "publication": {
    "name": "The Pragmatic Engineer",
    "domain": "newsletter.pragmaticengineer.com",
    "subscriberCount": 1100000,
    "isLowerBound": true
  },
  "sponsor": {
    "name": "turbopuffer",
    "domain": "turbopuffer.com",
    "placement": "top",
    "disclosureText": "Brought to You by • turbopuffer",
    "evidenceSnippet": "Brought to You by • turbopuffer – a ridiculously scalable, fast and cheap hybrid search engine...",
    "confidence": 0.9
  },
  "postCount": 1,
  "postUrls": ["https://newsletter.pragmaticengineer.com/p/software-engineering-after-code-becomes"],
  "firstSeenAt": "2026-11-16",
  "lastSeenAt": "2026-11-16",
  "estimate": {
    "lowUsd": 8800,
    "highUsd": 22000,
    "basis": "subscribers x 40% open rate x $20-50 CPM",
    "isEstimate": true
  },
  "scrapedAt": "2026-11-17T23:56:02.208351+00:00"
}
```

`confidence` is `0.9` when the sponsor's domain was resolved from a link, `0.7` when only the name could be extracted. `postUrls` keeps up to five links per sponsor, and a disclosure naming more than six brands keeps the first six.

#### `publication` — one row per publication scanned

```json
{
  "recordType": "publication",
  "name": "The Pragmatic Engineer",
  "domain": "newsletter.pragmaticengineer.com",
  "subscriberCount": 1100000,
  "subscriberCountRaw": "Over 1,100,000 subscribers",
  "isLowerBound": true,
  "lastPostAt": "2026-11-17",
  "postsScanned": 3,
  "avgReactions": 86,
  "avgComments": 2,
  "sponsorCount": 1,
  "estimatedRateCard": {"lowUsd": 8800, "highUsd": 22000, "basis": "subscribers x 40% open rate x $20-50 CPM", "isEstimate": true},
  "contact": null,
  "scrapedAt": "2026-11-17T23:56:02.208351+00:00"
}
```

#### `run-summary` — one row per run

```json
{
  "recordType": "run-summary",
  "publicationsAttempted": 36,
  "publicationsScanned": 30,
  "publicationsFailed": 4,
  "publicationsSkipped": 2,
  "publicationsAccounted": 36,
  "failures": [
    {"domain": "readtrung.com", "error": "SSLError: handshake failure"},
    {"domain": "startupriders.com", "error": "HTTPError: 404 Not Found"}
  ],
  "skips": [
    {"domain": "quietletter.substack.com", "reason": "no posts on or after 2026-10-01"}
  ],
  "stoppedReason": null,
  "scrapedAt": "2026-11-17T23:59:17.598026+00:00"
}
```

Requested publications that cannot be scanned no longer disappear silently. Exceptions are listed in
`failures`; deliberate skips (below `minSubscriberCount`, or no posts on or after `sinceDate`) are
listed in `skips` with the reason. `publicationsAccounted` is scanned + failed + skipped;
`stoppedReason` records `"charge_limit"` when the run stopped early, and `publicationsAccounted`
shows how many publications were reached. The summary is written on every run, including runs that
stop at the charge limit.

### How detection works

- **Anchor first.** If the disclosure is followed by a linked brand name, the actor takes both the name and the domain from that link.
- **Disclosure phrase second.** Without a link, the name is parsed from the disclosure itself: "Brought to you by A, B, and C" returns three sponsors; "Sponsored by Fearn, hosted by Flux" returns Fearn.
- **Plausibility filter.** Sentence fragments, CTAs, and prose are rejected: "This post is about…", "the latest AI-enabled tool", "Open an Account Today", "Argos presents its campaign…". CTA anchors fall back to the domain's brand name (a link labelled "Open an Account Today" pointing at `ledn.io` becomes **Ledn**).
- **House and affiliate exclusion.** The publication's own shop or product is not a sponsor; neither are `shop my` / affiliate disclosures. Event-platform links (Luma, Eventbrite, Meetup) are not treated as sponsor domains.
- **Hashtag disclosures need a link.** A bare `#ad` in prose is ignored; `#ad` with a linked brand counts.

Placement is `top` (first 25% of the post), `mid`, `footer` (last 15%), or `ps` (after "P.S.").

### Rate estimates

```
readers = subscriber floor × open-rate assumption (default 0.4)
rate    = readers × CPM band (default $20–50) / 1000
```

Every estimate carries its assumptions and `isEstimate: true`. Estimates need a subscriber floor of at least 1,000; below that `estimate` is null. It is a range for comparison, never the publisher's quoted rate.

### Inputs

| Input | Default | Notes |
|---|---|---|
| `publicationUrls` | 5 example publications | Domains or full URLs, one per line |
| `searchQuery` | — | Used only when `publicationUrls` is empty |
| `maxPublications` | 5 | 1–200; caps the list after parsing |
| `maxPostsPerPublication` | 3 | 1–20 |
| `sinceDate` | — | `YYYY-MM-DD`; filters posts |
| `minSubscriberCount` | 0 | Drops smaller publications |
| `sponsorDomain` | — | Reverse lookup: only rows matching this domain |
| `includeContacts` | false | Extracts a public `mailto:` contact when present |
| `estimateRates` | true | Adds the rate range |
| `openRateAssumption` | 0.4 | Used only for estimates |
| `cpmLow` / `cpmHigh` | 20 / 50 | Used only for estimates |

### Pricing

Pay per event. Prices are set on the actor; the Store shows the primary event.

| Event | Price | Charged when |
|---|---|---|
| Sponsorship | **$0.05** | Once per sponsor × publication pair |
| Publication | **$0.01** | Once per publication successfully scanned, including zero-sponsor publications |
| Contact | **$0.003** | Once per publication when `includeContacts` finds an email |
| Actor start | **$0.00005** | Charged by Apify per GB of memory at start (minimum one event); $0.00005 at 1 GB |

Keep the generic dataset-item event disabled so rows are not billed twice.

A 36-publication list that scans 30 publications and returns 45 sponsors costs **≈ $2.55** (45 × $0.05 + 30 × $0.01 + start). A 200-publication scan with no sponsors costs **≈ $2.00** in scan charges — you pay for coverage, not only for hits.

### Coverage and limits

- Sponsor density is low: about 2.7% of active established newsletters run disclosed sponsors. A 200-publication scan typically returns 5–10 sponsor-bearing publications. The product is the filter, not the volume.
- Three posts per publication is the default because sponsor-running newsletters sponsor most issues; a test with 8 posts surfaced no additional publications. Raise it if you want deeper history.
- The actor only reads what Substack's API returns publicly. Paid posts often return an empty `body_html`; when that happens it falls back to `truncated_body_text` and may miss a sponsor that appears only behind the paywall.
- Subscriber counts are public display floors ("Over X subscribers") and are flagged with `isLowerBound: true`.
- Detection is heuristic; every row ships with a disclosure excerpt and a 300-character evidence snippet.
- Substack's API is unofficial and may change without notice.
- Requests are paced at ~0.35 s with jitter, retry up to 5 times, and back off adaptively on HTTP 429 using `Retry-After`. A 36-publication run takes roughly 2–3 minutes; a 200-publication run takes 12–15 minutes at the default post count.
- Dead or non-Substack domains are reported in `run-summary.failures` rather than silently skipped.

### FAQ

**Does it find affiliate links or promo codes?**
No. That is a different dataset; this actor stays on disclosed sponsorships.

**Can I track one brand across every newsletter?**
Yes. Set `sponsorDomain`, for example `notion.so`.

**Why did fewer publications scan than I listed?**
Check the `run-summary` row. Dead domains and non-Substack domains are in `failures`; publications below `minSubscriberCount` or with no posts in the date range are in `skips`, each with its reason. Rate-limit failures are retried; permanent failures are listed with their error.

**Does it need a browser or proxy?**
No. It uses Substack's public JSON endpoints over plain HTTP.

**Does it work for non-Substack newsletters?**
No. Publications must be hosted on Substack or a custom domain that serves Substack's API.

**Why is a sponsor missing?**
The disclosure may be unlinked and phrased unusually, the post may be paid-only, or the brand may have been filtered as a house promotion or affiliate mention. The evidence snippet on nearby rows shows what the parser saw.

**Are subscriber counts exact?**
No. They are the public "Over X subscribers" floors, flagged as lower bounds.

### Related

For affiliate links, promo codes, and house promotions, use **Substack Monetization Signals** — same engine, different output class.

### Changelog

**0.1** — Initial release. Paced requests with adaptive 429 backoff; `run-summary` with failure reporting; multi-brand disclosure parsing; CTA and sentence filtering; house/affiliate exclusion.

# Actor input Schema

## `publicationUrls` (type: `array`):

Substack domains or full URLs, one per line.

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

Used only when Publications is empty.

## `maxPublications` (type: `integer`):

Caps the parsed list.

## `maxPostsPerPublication` (type: `integer`):

Recent posts to read per publication.

## `sinceDate` (type: `string`):

YYYY-MM-DD. Older posts are skipped.

## `minSubscriberCount` (type: `integer`):

Drop smaller publications.

## `sponsorDomain` (type: `string`):

Reverse lookup: only rows matching this domain.

## `includeContacts` (type: `boolean`):

Extract a public contact email when present.

## `estimateRates` (type: `boolean`):

Add a rate range based on subscribers and CPM assumptions.

## `openRateAssumption` (type: `number`):

Used only for estimates.

## `cpmLow` (type: `number`):

Used only for estimates.

## `cpmHigh` (type: `number`):

Used only for estimates.

## Actor input object example

```json
{
  "publicationUrls": [
    "newsletter.pragmaticengineer.com",
    "www.news.aakashg.com",
    "becauseofmarketing.substack.com",
    "thebrandwaves.substack.com",
    "newsletter.mkt1.co"
  ],
  "maxPublications": 5,
  "maxPostsPerPublication": 3,
  "minSubscriberCount": 0,
  "includeContacts": false,
  "estimateRates": true,
  "openRateAssumption": 0.4,
  "cpmLow": 20,
  "cpmHigh": 50
}
```

# Actor output Schema

## `results` (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 = {
    "publicationUrls": [
        "newsletter.pragmaticengineer.com",
        "www.news.aakashg.com",
        "becauseofmarketing.substack.com",
        "thebrandwaves.substack.com",
        "newsletter.mkt1.co"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nightshiftdata/substack-sponsorship-tracker").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 = { "publicationUrls": [
        "newsletter.pragmaticengineer.com",
        "www.news.aakashg.com",
        "becauseofmarketing.substack.com",
        "thebrandwaves.substack.com",
        "newsletter.mkt1.co",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nightshiftdata/substack-sponsorship-tracker").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 '{
  "publicationUrls": [
    "newsletter.pragmaticengineer.com",
    "www.news.aakashg.com",
    "becauseofmarketing.substack.com",
    "thebrandwaves.substack.com",
    "newsletter.mkt1.co"
  ]
}' |
apify call nightshiftdata/substack-sponsorship-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nightshiftdata/substack-sponsorship-tracker"
        }
    }
}
```

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/V4Hky4swxbwzJsifE/builds/S2F6cFC8OlwV2cPD7/openapi.json
