Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ottman
Newbie

Episodic example for Roku Search feed 2.0 (JSON)?

Are there any examples of how series/season/episode data should be formatted in the new Roku Search Feed 2.0 JSON format?   The docs list some required asset fields like durationInMilliseconds/durationInSeconds that don't really make sense for series and season assets.  It's also not clear whether any/all of the content.playOptions fields like playId are applicable to series and season assets.

Also, it looks like the schema has numerous fields like asset.tags, asset.sports_type, etc, that aren't reflected in the main doc page.  And the schema itself has some bugs, such as the definition of asset.images.languages not containing an items element.

0 Kudos
1 REPLY 1
CQuay
Newbie

Re: Episodic example for Roku Search feed 2.0 (JSON)?

for a season one can update it as 

{   
            "id": "###########",
            "type": "season",
            "titles": [
                {
                    "value": "#########"
                }
            ],
            "genres": [
                "####"
            ],
            "images": [
                {
                    "type": "main",
                    "url": "####jpeg URL"
                }
            ],
            "seasonInfo": { 
                "seriesId": "###################",
                "seasonNumber": ##
            },
            "releaseDate": "YYYY-MM-DD"
        

 for Series

{   
            "id": "#############",
            "type": "series",
            "titles": [
                {
                    "value": "##########"
                }
            ],
            "genres": [
                "special"
            ],
            "shortDescriptions": [
                {
                    "value": "##########################."
                }
            ],
            "images": [
                {
                    "type": "main",
                    "url": "jpg url #####"
                }
            ],
            "releaseDate": "YYYY-MM-DD"
        
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.