Content API Documents > Initialize API

Content API Documents

Initialize API

The Initialize API is the first step to get the content created by SubPLY


This API call will return a TOC (Table-Of-Contents) of available Subtitles or captions for your video.

This API can be called in 2 ways:

  • STATIC - call is made to a cloud base static file which is updated each time a language is added, removed or modified for a specific video
  • DYNAMIC - call is made to our CDN's cache-based dynamic server which is updated on a 60 seconds interval

STATIC REST Interface:

http://static.plymedia.com.s3.amazonaws.com/initialize/{encodedURL}=?nocache={uniqueId}

Parameters:

URL - A Base 64 encoded lower case URL as sent to SubPLY in order to produce the Captions/Subtitles

uniqueId - Any unique number, Guid or string to make sure you get the latest non-cached response

Example:

http://static.plymedia.com.s3.amazonaws.com/initialize/cnrtcdovl3dzai5my29klmxsbndklm5ldc9hmtmxoc9vmjgvdmlkzw8vmjaxmta1mjavmduxotexahvizxh0cmfsaxn0aw5ncy8wnte5mtfodwjlehryywxpc3rpbmdz?nocache=632281

DYNAMIC REST Interface:

http://content.plymedia.com/initialize?video={URL}

Parameters:

URL - The URL as sent to SubPLY in order to produce the Captions/Subtitles


Example:

http://content.plymedia.com/initialize?video=http%3a%2f%2fwww.youtube.com%2fwatch%3fv%3dhrixBl5PgNg

Result:

A XML result in the requested format. Following is the result from the above example:

The response XML is built as follows:

    Video Section
  • VideoID - SubPLY unique video identifier
  • Domain - Customer domain name
  • Duration - Video duration in seconds
  • URL - SubPLY unique URL video identifier
  • Title - Video title
  • Description - Video description
    Content Section (under the Subtitles node)
  • language - SubPLY language code (click here for a list of Language Code).
  • url - static link to the publish XML based content (see content API)
  • id - SubPLY content unique guid identifier

About SubPLY
With billions of video being viewed online across the globe, with viewers increasing their demand for quality content in their local language, with websites trying to improve their SEO results and with new regulations requiring online video to be hearing-impaired accessible (section 508), the creation of quality transcripts, captions and subtitles has become a must.

SubPLY is the leader in the creation, management and service in providing transcripts, captions and subtitles for both on-demand and live streaming videos.
Professional Services
SubPLY specializes in the provision of professionally-created content, tools and services for your online content.
Live Captions
Live, professionally created captions by certified stenographers in 6 languages: English, Spanish, French, German, Swedish and Mandarin
Online service
Order online - Transcripts, Captions and Subtitles for your videos in 3 easy steps.

Learn more on linking/upload a file to SubPLY and SubPLY’s standard of service.








PLYmedia Inc. 2006-2012 All Rights Reserved - Terms | Policy