DEV Community

Ben Barazandeh
Ben Barazandeh

Posted on

How I find podcasts to pitch, with contact emails, using Apple's free search API and RSS

Disclosure: I'm Ben, and I built the Apify tool I mention near the end. It charges per result. The DIY part below works with free stuff only.

Getting booked on podcasts is one of the better ways to get in front of the right people. The annoying part is building the list. You search Apple Podcasts, open each show, hunt for a website, then hunt for an email, then check if the show is even still alive. After 20 shows you have a headache and a messy sheet.

Turns out most of that info is already public and easy to get with code.

Step 1: search shows with Apple's iTunes Search API

Apple has a free search API. No key, no login.

curl "https://itunes.apple.com/search?term=b2b%20marketing&media=podcast&entity=podcast&limit=200"
Enter fullscreen mode Exit fullscreen mode

Each result has the show name, the author, the Apple Podcasts link, the category, the episode count (trackCount), the date of the newest episode (releaseDate) and, the important bit, the feedUrl.

Two things I learned the hard way:

  • You can ask for 200 results, but in my tests Apple gave back about 100. Today b2b marketing returned 100 and true crime returned 99.
  • It is rate limited to roughly 20 calls a minute, so add a small pause between searches and retry on 403 or 429.

Step 2: read the RSS feed

Every podcast lives on an RSS feed, and podcasters fill in a few fields so directories like Apple can reach them. The useful ones:

  • itunes:owner with itunes:name and itunes:email
  • link, which is usually the show website
  • language
  • the pubDate of each episode

Here is a tiny Node example using fast-xml-parser:

import { XMLParser } from 'fast-xml-parser';

const xml = await (await fetch(feedUrl)).text();
const ch = new XMLParser({ ignoreAttributes: false }).parse(xml).rss.channel;

const owner = ch['itunes:owner'] || {};
const dates = [].concat(ch.item || [])
  .map(i => Date.parse(i.pubDate))
  .filter(Boolean)
  .sort((a, b) => b - a);

console.log({
  ownerName: owner['itunes:name'],
  ownerEmail: owner['itunes:email'],
  website: ch.link,
  lastEpisode: new Date(dates[0]).toISOString(),
});
Enter fullscreen mode Exit fullscreen mode

From the episode dates you can also work out how often the show publishes. I take the last 10 or so episodes and average the gap. A show that posts every 7 days is a much better pitch than one that posted twice in 2023.

Step 3: filter before you pitch

This is where the list gets good:

  • Active only. Drop shows with no episode in the last 30 to 60 days. Dead shows never reply.
  • Has an email. Skip shows with no owner email, or you will be filling contact forms all day.
  • Watch out for hosting addresses. Some feeds have the hosting company's own address in the owner email field (I hit this with a SoundCloud feed). That is not the host, so throw those out.
  • Size. Episode count is a decent proxy. Fewer than 20 episodes can mean a newer show, which may be more open to guests.

What a real run looked like

I ran this for b2b marketing, kept shows with an episode in the last 60 days, and stopped at 20. Apple returned 100 shows, 20 were saved, all 20 had a website and 11 of the 20 had a real owner email. Some examples from that run: The B2B Marketing Gap Podcast (70 episodes, about one every 26 days), B2B Marketing Futures (169 episodes, about every 14 days) and Channel Marketing Champs (32 episodes, about every 31 days). The whole thing took about 10 seconds.

A heads up on the emails: they are public because podcasters put them there for directories, not for blasts. Pitch one show at a time, mention a real episode, and follow CAN-SPAM and GDPR. A short pitch that proves you listened beats 500 copy paste emails every time.

The one click version

I got tired of rebuilding this, so I turned it into a tool on Apify: Podcast Leads Finder. You give it search terms (or Apple Podcasts links), pick a category if you want, set "active within days" and "only with email", and it gives you a table with the show, author, owner email, website, episode count, days since the last episode and average days between episodes. It costs $3 per 1,000 podcasts, shows that your filters remove are free, and new Apify accounts get $5 of free usage every month, so a test run costs nothing.

If you are an AI agent person, it also works as an MCP tool through Apify's MCP server.

If you try either the DIY way or the tool and something looks off, tell me in the comments and I will fix it.

Top comments (0)