{
  "name": "Find Niche Podcast Host Emails & Recent Episodes via Apple Podcasts RSS",
  "nodes": [
    {
      "parameters": {
        "content": "## Niche Podcast Host Email & Show Notes Finder\n\nSearches Apple Podcasts by topic, parses official RSS feeds directly without headless browsers, filters verified show records containing `<itunes:email>`, and outputs CRM-ready outreach rows with recent episode topics.\n\n### Prerequisites\n- **Apify API Token** (`$5` free monthly credits included): https://apify.com/tsun_tsun/apple-podcasts-rss-scraper?fpr=cn0u9m\n\n### Quick Setup\n1. Create a **Header Auth** credential in n8n (`Name`: `Authorization`, `Value`: `Bearer <apify-api-token>`).\n2. Edit `searchTerms` in **Configure Podcast Niche** and attach Google Sheets, Airtable, or Gmail after **Format Outreach Rows**.",
        "height": 220,
        "width": 700,
        "color": 5
      },
      "id": "44444444-4444-4444-8444-444444444001",
      "name": "Sticky Note Overview",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [140, 20]
    },
    {
      "parameters": {
        "content": "## 1. Discover Podcasts & RSS Feeds\nQueries Apple Podcasts for niche keywords and fetches host metadata and episode notes from RSS XML.",
        "height": 220,
        "width": 740,
        "color": 7
      },
      "id": "44444444-4444-4444-8444-444444444002",
      "name": "Sticky Note Search",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [150, 270]
    },
    {
      "parameters": {
        "content": "## 2. Filter Verified Hosts & Format\nKeeps show records with non-empty host emails and formats clean CRM outreach columns.",
        "height": 220,
        "width": 520,
        "color": 7
      },
      "id": "44444444-4444-4444-8444-444444444003",
      "name": "Sticky Note Filter",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [930, 270]
    },
    {
      "parameters": {
        "content": "## Setup Required\nAttach your Apify Header Auth credential (`Authorization: Bearer <TOKEN>`) to **Search Podcasts & RSS** before running.",
        "height": 140,
        "width": 380,
        "color": 3
      },
      "id": "44444444-4444-4444-8444-444444444004",
      "name": "Sticky Note Warning",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [520, 520]
    },
    {
      "parameters": {},
      "id": "44444444-4444-4444-8444-444444444011",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [200, 340]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d4444444-0001-4000-8000-000000000001",
              "name": "searchTerms",
              "value": "={{ [\"b2b saas marketing\", \"artificial intelligence startup\"] }}",
              "type": "array"
            },
            {
              "id": "d4444444-0001-4000-8000-000000000002",
              "name": "country",
              "value": "US",
              "type": "string"
            },
            {
              "id": "d4444444-0001-4000-8000-000000000003",
              "name": "maxPodcastsPerQuery",
              "value": 10,
              "type": "number"
            },
            {
              "id": "d4444444-0001-4000-8000-000000000004",
              "name": "maxEpisodesPerPodcast",
              "value": 3,
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "id": "44444444-4444-4444-8444-444444444012",
      "name": "Configure Podcast Niche",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [460, 340]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/tsun_tsun~apple-podcasts-rss-scraper/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ searchTerms: $json.searchTerms, country: $json.country, includeEpisodes: true, maxPodcastsPerQuery: $json.maxPodcastsPerQuery, maxEpisodesPerPodcast: $json.maxEpisodesPerPodcast, requireHostEmail: true }) }}",
        "options": {}
      },
      "id": "44444444-4444-4444-8444-444444444013",
      "name": "Search Podcasts & RSS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [720, 340]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "c4444444-0001-4000-8000-000000000001",
              "leftValue": "={{ $json.recordType }}",
              "rightValue": "podcast",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "id": "c4444444-0001-4000-8000-000000000002",
              "leftValue": "={{ $json.hostEmail }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "44444444-4444-4444-8444-444444444014",
      "name": "Filter Verified Hosts",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [980, 340]
    },
    {
      "parameters": {
        "jsCode": "return $input.all().map((item) => {\n  const s = item.json || {};\n  const latestEpisodeTitle = Array.isArray(s.recentEpisodes) && s.recentEpisodes.length\n    ? (s.recentEpisodes[0].episodeTitle || s.recentEpisodes[0].title || '')\n    : (s.latestEpisodeTitle || '');\n  return {\n    json: {\n      showTitle: s.title || s.collectionName || '',\n      hostName: s.hostName || s.artistName || '',\n      hostEmail: s.hostEmail || '',\n      latestEpisodeTitle,\n      feedUrl: s.feedUrl || '',\n      appleUrl: s.appleUrl || s.collectionViewUrl || '',\n    },\n  };\n});"
      },
      "id": "44444444-4444-4444-8444-444444444015",
      "name": "Format Outreach Rows",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [1240, 320]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Configure Podcast Niche",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Podcast Niche": {
      "main": [
        [
          {
            "node": "Search Podcasts & RSS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Podcasts & RSS": {
      "main": [
        [
          {
            "node": "Filter Verified Hosts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Verified Hosts": {
      "main": [
        [
          {
            "node": "Format Outreach Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
