Skip to content

Spotify Namespace Reference

The Spotify namespace provides podcast-specific metadata for Spotify's podcast platform, including episode limits and country targeting information.

Namespace URIhttp://www.spotify.com/ns/rss
SpecificationSpotify Podcast Delivery Specification
Prefix<spotify:*>
Available inRSS
Propertyspotify

Types

INFO

For details on type parameters (TStrict) and Requirable<T> markers, see TypeScript Reference.

ts
export namespace SpotifyNs {
  export type Limit = {
    recentCount?: number
  }

  export type Partner<TStrict extends boolean = false> = Strict<
    {
      id: Requirable<string> // Required in spec.
    },
    TStrict
  >

  export type Sandbox<TStrict extends boolean = false> = Strict<
    {
      enabled: Requirable<boolean> // Required in spec.
    },
    TStrict
  >

  export type FeedAccess<TStrict extends boolean = false> = {
    partner?: Partner<TStrict>
    sandbox?: Sandbox<TStrict>
  }

  export type Entitlement<TStrict extends boolean = false> = Strict<
    {
      name: Requirable<string> // Required in spec.
    },
    TStrict
  >

  export type ItemAccess<TStrict extends boolean = false> = {
    entitlement?: Entitlement<TStrict>
  }

  export type Feed<TStrict extends boolean = false> = {
    limit?: Limit
    countryOfOrigin?: string
    access?: FeedAccess<TStrict>
  }

  export type Item<TStrict extends boolean = false> = {
    access?: ItemAccess<TStrict>
  }
}