Profile: has-videos

Profile Schema

The has-videos profile designates a document that contains videos. While any document can contain videos without the has-videos profile, clients looking for video within a document will likely target the videos array provided by this profile, so it is highly recommended that a document with video lists a has-videos profile.

Structure

has-videos specifies one required attribute: videos. videos is an array of links to video used by this document.

The videos array must contain one or more links; all links must be asset links that begin with #/.

Example has-videos document

{
    "id": "12345",
    "profiles": [
        {
            "href": "/v1/profiles/has-videos",
            "rels": ["interface"]
        },
        {
            "href": "/v1/profiles/document"
        }
    ],

    "videos": [
        {
            "href": "#/assets/5678"
        }
    ],

    "assets": {
        "5678": {
            "id": "5678",
            "title": "",
            "caption": "",
            "producer": "",
            "provider": "NPR",
            "displaySize": "large",
            "isRestrictedToAuthorizedOrgServiceIds": true,
            "isAvailable": true,
            "isEmbeddable": true,
            "duration": 172,
            "enclosures": [
                {
                    "href": "https://cdn.jwplayer.com/manifests/uWSE0niN.m3u8",
                    "type": "hls",
                    "rels": ["hls"]
                },
                {
                    "href": "https://ondemand.npr.org/npr/ascvid/2017/03/20170317_ascvid_sxswlizzo2-n-600000.mp4",
                    "type": "mp4",
                    "rels": ["mp4-low"]
                },
                {
                    "href": "https://ondemand.npr.org/npr/ascvid/2017/03/20170317_ascvid_sxswlizzo2-n-1200000.mp4",
                    "type": "mp4",
                    "rels": ["mp4-high"]
                }
            ],
            "profiles": [
                {
                    "href": "/v1/profiles/player-video",
                    "rels": ["type"]
                },
                {
                    "href": "/v1/profiles/document"
                }
            ]
        }
    }
}

© 2025 npr