Forum Discussion

ottman's avatar
ottman
Newbie
4 years ago

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.

1 Reply

  • 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"