Skip to content
Listener.comDevelopers

Refresh

Metered actions: platform refreshes and Spotify / Apple data requests.

Refresh a show's platform data

POST/v1/shows/{show_id}/platforms/{platform}/refresh

Refresh one platform's data for one show now and return the status (updated, skipped, requested, error), last update before and after, and the provider-call estimate. Metered scraper platforms (tiktok, twitter, facebook, instagram, threads, linkedin) spend credits and need "confirm": true, except a Facebook Page connected with Facebook sign-in, which refreshes from Meta's API without credits; spotify is asynchronous (requested); applePodcasts cannot be refreshed on demand (use POST /v1/data-requests).

  • Send "dry_run": true to get {"object": "dry_run", "would_write": …} without writing anything.
  • Requires "confirm": true; without it the API answers 409 confirmation_required with the exact preview.

SDKlistener.shows.platforms.refresh()client.shows.platforms.refresh()

Path parameters

  • show_idstringrequired
    A show id in this workspace (see GET /v1/shows).
  • platformstringrequired
    A platform key (e.g. youtube, spotify, apple_podcasts, instagram).
    One ofyoutubeinstagraminstagram_businesstiktoktwitterfacebookfacebook_businessthreadslinkedinbeehiivsubstackkit_newslettersimplecasttransistorart19captivateomnystudiospotifyapple_podcastsbuzzsproutpodigeepodbeanspreaker

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own. GET /v1/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

  • confirmboolean
    Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error

File a Spotify / Apple data request

POST/v1/data-requests

File a Spotify or Apple Podcasts data request with the Listener operations team and return the request written (status pending). Needs "confirm": true because it creates work for a person. show_url defaults to the URL stored on the show; a request already pending for the same show and platform is refused. Follow it in GET /v1/integrations/status.

  • Send "dry_run": true to get {"object": "dry_run", "would_write": …} without writing anything.
  • Requires "confirm": true; without it the API answers 409 confirmation_required with the exact preview.

SDKlistener.dataRequests.create()client.data_requests.create()

Headers

  • X-Listener-Workspacestringmax 200 chars
    Run this request inside one of the network's own subnetworks: its id, handle or name, as GET /v1/subnetworks returns them (names and handles are matched without regard to case). Network credentials only. A subnetwork that is a group of shows (kind: "group") limits the request to those shows: lists, analytics and clusters cover only them, a show outside it answers 404, and a write that names a show outside it is refused; campaigns, reports and the team stay the network's, and requests that change the network itself (the network profile, adding or removing shows, subnetworks, team) answer 400. A subnetwork with its own account (has_login: true) is opened as that account, so every resource is the subnetwork's own. GET /v1/me says which one the request ran in (note). Omit the header, or send network, for the whole network. A value that is not one of this network's subnetworks answers 400 parameter_invalid; a subnetwork or single-show credential cannot select anything. Sent as a header only: there is no workspace query parameter on /v1. Webhook endpoints, events and connections always belong to the credential's own workspace.
  • Idempotency-Keystringmax 255 chars
    Any unique string (≤ 255 chars). Replays within 24 h return the stored response with Idempotent-Replayed: true.

Request body

application/json
  • show_idstringrequired
    A show id in this workspace (see GET /v1/shows).
  • platformstringrequired
    Platform key (e.g. youtube, spotify, apple_podcasts, instagram).
    One ofspotifyapple_podcasts
  • show_urlstring (uri)nullable
  • dry_runboolean
    true returns exactly what would be written without writing anything (the API's test mode).

    Default false

  • confirmboolean
    Must be true to apply destructive or metered changes; without it the API answers 409 with a preview.

    Default false

Returns

200

OK

One of:

WriteResult
DryRun

Errors

400parameter_invalid401credential_invalid403scope_missing404resource_not_found409confirmation_required413body_too_large429rate_limited500internal_error