Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

get content

Returns a piece of content. A user can view a piece of content if:

  • They own the content

  • If they have an appropriate content viewer/editor role

If a user is not allowed to view the content, a 404 is returned.

Time zones

Providing a timezone param will result in returning a piece of content with chapters where:

  • availableFrom is set to a date up to and including today in the provided time zone

  • availableFrom is null or absent

Currently this only applies to podcast content; providing the timezone param for non-podcast content will not affect the chapters returned.

Valid timezone identifiers can be found here. A 400 response will be returned if an invalid time zone is provided. If no timezone param is provided, then chapters are returned based on the UTC timezone.

Responses

200 OK application/json
cardobject
cardIdstring
contentobject
activitystring
chaptersarray
[items]
configobject
editSettingsobject
autoOverlayLabelsstring
editKeysboolean
transcodeAudioUploadsboolean
versionstring
createdAtstring
creatorEmailstring
deletedboolean
metadataobject
categorystring
coverobject
mediaobject
durationnumber
fileSizenumber
hasStreamsboolean
shareLimitnumber
shareLinkCreatedAtstring
slugstring
titlestring
updatedAtstring
userIdstring

Query Parameters

timezone string

Timezone identifier

Example Pacific/Auckland
signingType string

The type of playable signed URLs returned. Use with `playable`.

Example s3
playable string

Return playable signed URLs

Example true

Path Parameters

cardId string Required
GET
/content/{cardId}
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Query Parameters
KEYVALUE
Terminal window
curl "https://api.yotoplay.com/content/{cardId}"
--header "Authorization: Bearer [YOUR_TOKEN]"