API: Shows
In this page
The Show object
A Show is a collection of Episodes owned by a single User called an Author.
A show has several properties. Each API can return a Show model in its entirety or with just a subset. All properties are listed here:
Property | Type | Description |
---|---|---|
show_id |
Numeric | Unique show identifier |
author |
User | The author/owner of the show |
author_id |
Numeric | User ID of the show author |
category_id |
Numeric | Category ID of the show category |
category_2_id |
Numeric | Category ID of the show category 2 |
category_3_id |
Numeric | Category ID of the show category 3 |
category |
Category | Category of the show |
category_2 |
Category | Category 2 of the show |
category_3 |
Category | Category 3 of the show |
description |
String | Show description |
email |
String | Contact email |
facebook_url |
String | Facebook page URL |
itunes_url |
String | iTunes page URL |
image_original_url |
String | Original size image URL |
image_url |
String | 200x200px size image URL |
last_episode_at |
String | Date of a show’s latest published episode |
site_url |
String | Public URL of the show on the Spreaker website |
skype_name |
String | Skype username |
sms_number |
String | Text number |
tel_number |
String | Telephone (voice) number |
title |
String | Show title |
twitter_name |
String | Twitter username |
website_url |
String | Contact website |
language |
String | Show language |
episodes_sorting |
String | Type of episode sorting when getting show episodes |
owner_name |
String | Owner’s name |
author_name |
String | Author’s name |
copyright |
String | Copyright |
Many of the resources on the show APIs are related to a single show. If a request URL includes SHOW-ID
it refers to the numeric Show ID.
Retrieving a Single Show
The returned Show contains most of all its public information, from its title
and description
, to its author
(a User model), to some contact information like the email
, facebook_url
or twitter_name
.
Example
The response body is a JSON object containing all the show fields (and author
public fields).
Updating a Show
Authenticated: yes. Owner: yes
The API POST /v2/shows/SHOW-ID
supports these parameters, none of which are required, as you should specify only the ones you want to update:
Parameter | Type | Description |
---|---|---|
title |
String | Min length: 5, Max length: 40 |
description |
String | - |
email |
String | - |
website_url |
String | - |
twitter_name |
String | A Twitter handle, with or without the initial @, Max length: 15 |
skype_name |
String | Min length: 6, Max length: 32 |
tel_number |
String | Max length: 16 |
sms_number |
String | Max length: 16 |
category_id |
Numeric | See: Categories |
category_2_id |
Numeric | See: Categories |
category_3_id |
Numeric | See: Categories |
language |
String | ISO 639-1 language code. Allowed: sq ar be bg cs zh hr da et fi fr ja el is lt it en mk no nl pl pt ro ru sr sk sl es sv de tr uk hu |
image_file |
File | At least 400x400, Max size: 5MB, Formats: JPG, PNG |
image_crop |
String | Comma-separated coordinates (top left X, top left Y, bottom right X, bottom right Y) are used to crop the image_file . If not specified, the image_file will not be cropped. This parameter is effective only if the request contains an image_file . |
episode_sorting |
String | Type of episode sorting for this show: newest (newest to oldest) or oldest (oldest to newest) |
owner_name |
String | Max length: 255 |
author_name |
String | Max length: 255, used for |
copyright |
String | Max length: 255, used for |
Example
The response body is a JSON object containing all the show fields (and author
public fields).
Deleting a Show
Authenticated: yes
Delete a particular show. This requires the request to be authenticated with the show’s author credentials and the show must have no episodes: if the show you want to delete has any episode, please delete all episodes first.
Example
Creating a Show
Authenticated: yes.
The API POST /v2/shows
creates a new show and supports all the parameters of the Updating a Show API.
The only required parameters are the title
and language
: all other parameters are optional and can be edited later.
Example
The response body is a JSON object containing all the episode fields (and some related data).
Retrieving a User’s Shows
This API returns a paginated list of Shows owned by the USER-ID
. Each has just a subset of Show properties.
Parameter | Type | Description |
---|---|---|
filter |
String | Filters shows by listenable or editable (defaults to listenable ). If you specify filter=editable the request must be authenticated with USER-ID credentials. |
access_level |
String | Fetches the user shows for USER-ID . Allowed values are: AUTHOR (default), SHOW_COLLABORATOR or USER_COLLABORATOR . AUTHOR fetches all of the shows of the user, SHOW_COLLABORATOR fetches the shows where the user is a collaborator and USER_COLLABORATOR fetches the shows of the network the user is a collaborator. You can pass multiple values separated by a comma, e.g. access_level =AUTHOR ,SHOW_COLLABORATOR . |
Example
The response body is a paginated list of Shows.
Adding a Show to Favorites
Authenticated: yes
This API does not have any additional parameters. You can add a show to your Favorites only on your own account, so the USER-ID
parameter must match the owner of the token you’re using to authenticate the request.
Parameter | Type | Description |
---|---|---|
notifications_enabled |
Boolean | Enables or disables mobile push notifications when a new episode is published (defaults to true ). |
Example
The response body is an empty object
Removing a Show from Favorites
Authenticated: yes
This API does not have any additional parameters. You can remove a show from Favorites only on your own account, so the USER-ID
parameter must match the owner of the token you’re using to authenticate the request.
Example
The response body is an empty object
Retrieving Favorited Shows
This API returns a paginated list of Shows favorited by the USER-ID
. Each has just a subset of Show properties.
Example
The response body is a paginated list of Shows.