Skip to content
Listener.comDevelopers

Partner integrations

Connect your platform to Listener end to end, for example a podcast host. OAuth sign-in, a connection per show, account verification, automatic clusters, webhooks, cluster metrics and embeddable cards.

11 min read

This guide walks your platform through a complete Listener integration, for example a podcast host that wants its creators to see how every episode travels across YouTube, Instagram, TikTok and the rest. The main path is eight steps; per-show endpoints for finer control are under Advanced.

Partner integration sequence between the creator, your platform and ListenerCreatorYour platformListenerClicks “Connect Listener”1GET /oauth/authorize (PKCE)2Signs in or signs up, approves3Redirect with code4POST /oauth/token5POST /v1/connections (discover)6GET /v1/connections/{id}/accounts7Sends creator to onboarding_url8Verifies accounts, signs in to platforms9PUT auto-build · POST /v1/cluster-builds10POST /v1/webhook-endpoints11cluster.created · cluster.updated12GET /v1/episodes · GET /v1/clusters/{id}13GET /v1/clusters/{id}/metrics14Shows the card (embed_url)15
Solid arrows are requests; dashed arrows are redirects, responses and webhooks.

Before you start

#
  • An OAuth app. Create one under Settings → Developers → OAuth apps with your redirect URI. See OAuth 2.0.
  • Scopes. The main path uses shows:write episodes:read clusters:write webhooks:write offline_access. Each :write scope includes its :read twin. Add refresh:write to refresh cluster numbers on demand, and campaigns:write to push ad-server delivery. Ask only for what you use; see Scopes.
  • One connection per workspace. A token belongs to one Listener workspace: a creator’s show, or a network with many shows. Store tokens per workspace, keyed by workspace.id from the token response.

1. Connect Listener

#

Add a “Connect Listener” button. When the creator clicks it, send them to Listener’s authorization endpoint with PKCE. account=creator opens the Listener creator app directly; leave it out to let people choose between Listener and Listener Networks.

Node.js
import crypto from 'node:crypto';

export function connectListenerUrl(session) {
  const verifier = crypto.randomBytes(32).toString('base64url');
  const state = crypto.randomBytes(16).toString('base64url');
  session.listener = { verifier, state };
  const params = new URLSearchParams({
    response_type: 'code',
    client_id: process.env.LISTENER_CLIENT_ID,
    redirect_uri: 'https://your-platform.example/integrations/listener/callback',
    scope: 'shows:write episodes:read clusters:write webhooks:write offline_access',
    state,
    code_challenge: crypto.createHash('sha256').update(verifier).digest('base64url'),
    code_challenge_method: 'S256',
    account: 'creator',
  });
  return `https://api.listener.com/oauth/authorize?${params}`;
}

The creator signs in to Listener. Someone without an account can sign up on the same screen and comes straight back to the consent screen, which names your app, the workspace being shared and every scope. Listener then redirects to your callback with code and state; exchange the code:

Node.js
const res = await fetch('https://api.listener.com/oauth/token', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
    Authorization: 'Basic ' + Buffer.from(`${process.env.LISTENER_CLIENT_ID}:${process.env.LISTENER_CLIENT_SECRET}`).toString('base64'),
  },
  body: new URLSearchParams({
    grant_type: 'authorization_code',
    code: query.code,
    redirect_uri: 'https://your-platform.example/integrations/listener/callback',
    code_verifier: session.listener.verifier,
  }),
});
const tokens = await res.json();
// tokens.workspace = { id, name, kind }; store access_token, refresh_token and expiry per workspace

Every request below sends Authorization: Bearer lat_…. Refresh the access token before it expires after one hour (see Refreshing tokens).

2. Create a connection

#

A connection links a show on your platform to its Listener show. Send your show id (simplecast_show_id, a UUID) and its RSS feed URL. For a creator’s own workspace the show is matched automatically; on a network, also send the Listener show_id (from GET /v1/shows), because networks only add shows in the Listener app.

curl
curl https://api.listener.com/v1/connections \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{
    "show_id": "8sQe1v0x2kTq",
    "simplecast_show_id": "0f9e8d7c-6b5a-4c3d-8e2f-1a0b9c8d7e6f",
    "feed_url": "https://feeds.your-platform.example/the-long-game.xml",
    "discover": true,
    "confirm": true
  }'

The connection:

  • sets the show’s podcast identity (your id and feed URL);
  • fills an empty creator profile from the feed;
  • imports the feed’s episodes, so GET /v1/shows/{show_id}/episodes and GET /v1/episodes find them right away. episodes_imported and episode_import report the counts. Episodes Listener already has (for example from Spotify) are linked by your episode id, guid, or title and day, never replaced. Each show has a storage budget for episodes, so on very large back catalogues the oldest episodes may not be imported; the response counts how many were skipped. Send import_episodes: false to skip the import;
  • with discover: true, starts account discovery, which searches for the show’s YouTube, Instagram, TikTok, X, Facebook, Threads and LinkedIn accounts. Discovery is metered, so it needs confirm: true. A show that already has a result gets it back; add force: true to search again from scratch (at most once per show per hour).

Sending the same show and id again updates the existing connection instead of creating another.

The response is the connection: its id (conn_…), status, onboarding_url (the verify-accounts screen in the right Listener app) and accounts_url. If no show matches, the API answers 404 and says what to do.

statusMeaning
pendingConnected, no platform account verified yet.
verifiedAt least one platform account is connected.
activeYour platform and at least one other account are connected.

GET /v1/connections lists them; DELETE /v1/connections/{connection_id} removes the connection record only (the show, its podcast identity and its integrations stay).

3. Review the accounts found

#
curl
curl https://api.listener.com/v1/connections/$CONNECTION_ID/accounts \
  -H "Authorization: Bearer $LAT"

Each account has a platform, handle, profile URL, follower count, a confidence (high, medium, low) and a status: verified (connected) or pending (found, not connected yet). meta.discovery_status says whether discovery is still running; read again a minute later if it is. Show the list in your product so the creator knows what Listener found.

4. Have the creator verify

#

Send the creator to the connection’s onboarding_url. There they confirm or correct each account and sign in where a platform requires it: YouTube and Instagram professional accounts through Google or Meta sign-in, Spotify and Apple Podcasts through the Listener browser extension. Those sign-ins can’t happen through the API.

Each account the creator connects in the Listener app sends an integration.connected webhook with source: "app" within about five minutes, naming the show, the platform and the account (data.object.details.username, profile_url, channel_id or podcast_id when known). Accounts you connect through the API send one with source: "api", never a second one from the app. You can also read GET /v1/connections/{connection_id}/accounts (or GET /v1/connections) when the creator returns to your product, and watch accounts turn verified and the connection move to verified and then active. To connect an account that doesn’t need a sign-in without sending the creator anywhere, see Connect platforms directly.

5. Build clusters automatically, or review them

#

An episode cluster groups an episode with every clip and post made from it. Turn on auto-build and Listener’s hourly run builds clusters for new episodes from the last 14 days:

curl
curl -X PUT https://api.listener.com/v1/shows/$SHOW_ID/auto-build \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{"mode": "auto"}'
  • auto adds the posts Listener is sure about straight to the episode’s cluster.
  • suggest records what it found for the creator to review in the Listener app first.

To build the moment you publish instead of waiting for the hourly run, start a build for that episode (GET /v1/shows/{show_id}/auto-build shows recent statuses):

curl
curl https://api.listener.com/v1/cluster-builds \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{"show_id": "'$SHOW_ID'", "scope": "episodes", "episode_ids": ["'$EPISODE_ID'"], "mode": "auto"}'

6. Subscribe to webhooks

#

Create an endpoint in the creator’s workspace with their token. Listener checks the URL when you save it, so use your real, publicly resolvable endpoint.

curl
curl https://api.listener.com/v1/webhook-endpoints \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://your-platform.example/webhooks/listener",
    "enabled_events": [
      "cluster.created", "cluster.updated", "cluster_build.completed",
      "integration.connected", "integration.disconnected", "integration.stale"
    ],
    "description": "Your platform"
  }'
  • cluster.created: a cluster exists for an episode. Its global id is {show_id}_{id} from data.object; use it in step 7.
  • cluster.updated: the cluster changed, including when its numbers moved after a refresh. Number changes list metrics.<name> in data.changed_fields, with the new totals in data.object.metrics and the old ones in data.previous_attributes.metrics. Changes close together are combined, so you get one event per refresh rather than one per post.
  • integration.*: an account was connected (in the Listener app, source: "app", or through the API, source: "api"; once per connection, and again after a reconnect), disconnected, or stopped updating for more than 36 hours.

Store the returned secret per workspace and verify every delivery. Changes made in the Listener apps reach you within about five minutes; changes made through the API, within seconds.

7. Read the cluster

#

Map your episode to Listener with your own episode id, across every show the workspace has:

curl
curl -G https://api.listener.com/v1/episodes \
  -H "Authorization: Bearer $LAT" \
  --data-urlencode "guid=your-platform-episode-8a1f3c2e"

Send simplecast_episode_id, the RSS guid, apple_episode_id, spotify_episode_id, or title with published_on. Your episode id resolves through the episodes Listener stores, your analytics, or the show’s RSS feed (match.by is then rss_guid or rss_enclosure; up to 10 feeds are read per request). best is set only for one unambiguous exact or high-confidence match; its cluster.id is the global cluster id. Store it next to your episode.

Then read what the cluster contains and how it performs:

curl
curl https://api.listener.com/v1/clusters/$CLUSTER_REF \
  -H "Authorization: Bearer $LAT"

curl https://api.listener.com/v1/clusters/$CLUSTER_REF/metrics \
  -H "Authorization: Bearer $LAT"
  • GET /v1/clusters/{id} maps the cluster: every linked episode, clip and post with its platform, URL, format (episode, long, short, post), title and publish date.
  • GET /v1/clusters/{id}/metrics returns the numbers at level: "cluster" (the cluster’s own posts, not account analytics): totals for YouTube, audio and social, then per platform and per item views, likes, comments and post_count. Each figure has last_refreshed_at and a source: stored (saved by the last refresh), history (imported or set by hand) or live (fetched for this request). warnings flags accounts that aren’t connected, posts that returned no data and figures older than 36 hours; definitions says in one line what each metric counts (for example YouTube public views, not engaged views). Show both next to the numbers.

Cluster numbers refresh when the cluster’s public page is viewed and when you ask. POST /v1/clusters/{id}/refresh with confirm: true re-fetches every post now; it needs the refresh:write scope and spends one data-provider call per post, and cluster.updated tells you when the numbers moved. See Data sources, freshness & retention.

8. Share and embed

#

Every cluster has a public page (public_url) the creator can share, and an embed_url: a compact card with the episode’s reach and its top clips, built to sit inside your own dashboard. It shows the same data as the public page and needs no token.

OptionValues
themelight, dark or auto (default; follows the viewer’s system setting)
accentA hex colour without #, for example accent=776ae3. Listener darkens or lightens it when needed so links stay readable.
compact1 for a shorter card with three clips instead of six

The card posts { type: "listener:embed:resize", height } to your page whenever its height changes. Add the listener once per page; it only trusts messages from https://listener.com and only resizes the iframe that sent them, so several cards on one page work.

HTML
<iframe
  src="https://listener.com/embed/cluster/SHOW_ID_CLUSTER_ID?theme=auto&accent=776ae3&compact=1"
  title="Episode reach on Listener"
  width="100%" height="420" loading="lazy"
  style="border:0;width:100%;max-width:800px;min-width:300px"></iframe>
<script>
  window.addEventListener('message', function (e) {
    if (e.origin !== 'https://listener.com' || !e.data || e.data.type !== 'listener:embed:resize') return;
    document.querySelectorAll('iframe').forEach(function (f) {
      if (f.contentWindow === e.source) f.style.height = Math.ceil(e.data.height) + 'px';
    });
  });
</script>

Use embed_url as returned rather than building the URL yourself. Without the script the card keeps its starting height (420 px compact, 560 px full) and scrolls inside the frame.

To show your brand next to the show’s on the public page and the card, set a co-brand on the cluster (clusters:write):

curl
curl -X PATCH https://api.listener.com/v1/shows/$SHOW_ID/clusters/$CLUSTER_ID \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{"customization": {"co_brand": {"name": "Your Platform", "logo_url": "https://your-platform.example/logo.png", "href": "https://your-platform.example"}}}'

name is required (1 to 80 characters); logo_url and href must be https://. Send "co_brand": null to remove it.

Advanced: per-show endpoints

#

The connection flow covers most integrations. These endpoints give finer control over one show.

Podcast identity

#

PUT /v1/shows/{show_id}/podcast sets the listing ids that identify a show (rss_url, apple_podcasts_id, spotify_id, podchaser_id, simplecast_podcast_id); only the fields you send change, and platform URLs are accepted. A connection sets your id and feed URL for you.

curl
curl -X PUT https://api.listener.com/v1/shows/$SHOW_ID/podcast \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{"apple_podcasts_id": "https://podcasts.apple.com/us/podcast/the-long-game/id1580012345"}'

These are references used for matching; they don’t connect Spotify or Apple Podcasts analytics.

Account discovery for one show

#

POST /v1/shows/{show_id}/account-discovery with confirm: true runs discovery (metered, capped per show; force: true clears the stored result and searches again, at most once per show per hour); GET /v1/shows/{show_id}/account-discovery reads the result, with each candidate’s confidence, connection state and connect_via (api or app_sign_in, with a verify_url).

curl
curl -X POST https://api.listener.com/v1/shows/$SHOW_ID/account-discovery \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

Connect platforms directly

#

PUT /v1/shows/{show_id}/integrations/{platform} connects an account without sending the creator anywhere, then runs its first refresh and emits integration.connected (source: "api", once). DELETE with confirm=true disconnects one and emits integration.disconnected.

Node.js
async function connectAccount(showId, platform, account) {
  const res = await fetch(`https://api.listener.com/v1/shows/${showId}/integrations/${platform}`, {
    method: 'PUT',
    headers: { Authorization: `Bearer ${lat}`, 'Content-Type': 'application/json' },
    body: JSON.stringify(account), // { handle: 'thelonggame' } or { url: 'https://www.linkedin.com/company/…' }
  });
  const body = await res.json();
  if (res.status === 400 && body.error.code === 'oauth_required') {
    return { needsCreator: true, url: body.error.connect_url };
  }
  if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
  return body;
}
PlatformHow it connects
instagram, tiktok, twitter, facebook, threadshandle or profile url
linkedinprofile url
simplecastapi_key, optionally podcast_id. The key is never returned.
podigeeapi_key (a Podigee REST API token, pdg_pat_…, Read scope; Podigee’s Scale plan or higher) and podcast_id (the Podigee podcast id; needed when the token sees more than one podcast, otherwise the API answers 409 show_choice_required with the list). A plan without API access answers 502 provider_error saying so. The token is stored encrypted and never returned.
youtube, instagram_business, facebook_business, spotify, apple_podcastsSign-in only. The API answers 400 oauth_required with connect_url; send the creator there. facebook_business is the Facebook Page connected with Facebook sign-in; once it is connected, connecting facebook by handle answers 409 until the sign-in is removed.

Episode lookup within one show

#

GET /v1/shows/{show_id}/episodes/lookup takes the same identifiers as GET /v1/episodes but searches one show, and returns cluster_embed_url with each match.

curl
curl -G https://api.listener.com/v1/shows/$SHOW_ID/episodes/lookup \
  -H "Authorization: Bearer $LAT" \
  --data-urlencode "guid=your-platform-episode-8a1f3c2e" \
  --data-urlencode "published_on=2026-10-14"

Full cluster canvas

#

GET /v1/shows/{show_id}/clusters/{cluster_id} returns the whole cluster: every node with its platform numbers, edges, tag rollups, EMV, linked campaigns and freshness.

curl
curl https://api.listener.com/v1/shows/$SHOW_ID/clusters/$CLUSTER_ID \
  -H "Authorization: Bearer $LAT"

Audience geography

#

GET /v1/shows/{show_id}/audience/geography reports where a show’s audience is, one platform and one metric at a time (for example Spotify’s share of plays, YouTube views, Apple unique devices). Show each platform separately and label it with metric_description: shares and counts must not be added together. For a network, GET /v1/analytics/geography combines shows per platform. See Audience geography.

curl
curl -G https://api.listener.com/v1/shows/$SHOW_ID/audience/geography \
  -H "Authorization: Bearer $LAT"

Ad-server delivery on campaigns

#

If your platform serves ads, record delivered impressions (and optionally listeners) on the creator’s Listener campaigns, per day or period, per slot or show (campaigns:write):

curl
curl https://api.listener.com/v1/campaigns/$CAMPAIGN_ID/external-delivery \
  -H "Authorization: Bearer $LAT" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: delivery-$CAMPAIGN_ID-2026-10-14" \
  -d '{
    "rows": [
      { "source": "other", "label": "The Long Game mid-roll", "show_id": "'$SHOW_ID'", "date": "2026-10-14", "impressions": 18250, "listeners": 11900 }
    ]
  }'
  • source is one of the values the API accepts: adswizz, audioserve or other.
  • Send either date or start_date and end_date.
  • Re-sending the same source, slot, show and day (or period) updates that row instead of adding a duplicate.
  • Up to 500 rows per request and 2,000 per campaign. GET /v1/campaigns/{campaign_id}/external-delivery reads them back with totals per source.

Ad-server counts stay separate: they are shown next to Listener’s numbers and never added to Listener reach, impressions or EMV.

What data is aggregate-only

#

Listener works with aggregate counts: per platform, per day, per post or per episode. The API never returns listener-level data: no individual plays or listen events, IP addresses, device ids or user agents. External delivery takes aggregates too (impressions and listeners per day or period); don’t send per-listener records.

Limits and versioning

#
  • Rate limits apply per OAuth connection, so every creator who connects gets their own budget: 120 requests a minute, 30 writes a minute, 10 in flight; analytics calls count double and batch reads cost one request per 10 items. One credential syncing many shows can be moved to the partner tier (1,200 a minute). See Rate limits.
  • Thousands of shows: backfill with batch reads (100 episode lookups or 100 clusters’ metrics per request) and stay in sync with webhooks. See Syncing at scale.
  • Metered calls: account discovery and cluster or platform refreshes spend credits, need confirm: true and may be capped. Don’t run them on a timer for every show; react to webhooks instead.
  • Retries: send an Idempotency-Key on writes so a retried request never applies twice. See Idempotency.
  • Version: send Listener-Version: 2026-10-14 on every request so new versions never change behaviour under you. See Versioning.
  • Test safely: every write accepts dry_run: true. See Testing with dry_run.
  • Disconnects: when a creator removes your app under Authorized apps, calls start failing with 401 credential_revoked. Treat that as a disconnect and stop syncing that workspace.